回复:回复:[Zephyr-devel] Is this a bug? how to guarantee the "atomic semantics access of readyqueue" in "do_swap" function during context switch in SMP mode?
"曹子龙
HI folks: i still belive there are race conditions exist. in "do_swap" function, what would happen if others cpus pick up the "old" thread to run before it do the actual context backup? because if "is_spinlock" set to 1, there are no others condition to prevent others cpus access the readyqueue, how to deal with this? 曹子龙 珠海全志科技股份有限公司 BU1-PSW 地址:广东省珠海市高新区唐家湾镇科技2路9号 TEL:13824125580 Email:caozilong@... 网址: http://www.allwinnertech.com
|
|
Boie, Andrew P
Hi there,
Race conditions for SMP are still under investigation. We found one today where the same thread object was being scheduled on two cores. Additional eyes on this (or patches) are greatly valued, please feel free to join the discussion in https://github.com/zephyrproject-rtos/zephyr/issues/21317 where are are tracking these SMP issues.
Regards, Andrew
From: devel@... <devel@...>
On Behalf Of "???
Sent: Wednesday, January 22, 2020 9:54 PM To: Williams, Jennifer M <jennifer.m.williams@...>; Ross, Andrew J <andrew.j.ross@...>; devel <devel@...> Subject: 回复:回复:[Zephyr-devel] Is this a bug? how to guarantee the "atomic semantics access of readyqueue" in "do_swap" function during context switch in SMP mode?
HI folks:
i still belive there are race conditions exist.
in "do_swap" function, what would happen if others cpus pick up the "old" thread to run before it do the actual context backup? because if "is_spinlock" set to 1, there are no others condition to prevent others cpus access the readyqueue, how to deal with this?
曹子龙 珠海全志科技股份有限公司 BU1-PSW 地址:广东省珠海市高新区唐家湾镇科技2路9号 TEL:13824125580 Email:caozilong@... 网址: http://www.allwinnertech.com
|
|