bug alert with CONFIG_XENO_HW_UNLOCKED_SWITCH, >= kernel 3.4
A bad bug has been fixed in the unlocked context switching code for powerpc platforms. This affects all I-pipe patches for 3.4 kernels and above. The typical manifestation of this bug is random segmentation faults in user-space applications (sometimes after hours under stress load), usually the Xenomai-dependent ones.
A work around not to change the kernel code is to disable CONFIG_XENO_HW_UNLOCKED_SWITCH. Patches for fixing this issue are available for 3.5.7 and above:
http://git.xenomai.org/?p=ipipe.git;a=commit;h=614aa59453dacf7693fbb18229c27676c2803dbb
http://git.xenomai.org/?p=ipipe.git;a=commit;h=04ea520ab96a16ec65529a2efed92c9a4a8bda34
You might need this companion patch too: http://git.xenomai.org/?p=ipipe.git;a=commit;h=047a21b3b203a1fbfce21284f01e376a2cf54c19
HTH,
Signature · 1 line
Philippe.
Quoted 7 lines · Philippe Gerum
A bad bug has been fixed in the unlocked context switching code for powerpc platforms. This affects all I-pipe patches for 3.4 kernels and above. The typical manifestation of this bug is random segmentation faults in user-space applications (sometimes after hours under stress load), usually the Xenomai-dependent ones.
Quoted 6 lines
A work around not to change the kernel code is to disable
CONFIG_XENO_HW_UNLOCKED_SWITCH. Patches for fixing this issue are available for 3.5.7 and above:http://git.xenomai.org/?p=ipipe.git;a=commit;h=614aa59453dacf7693fbb18229c27676c2803dbb
http://git.xenomai.org/?p=ipipe.git;a=commit;h=04ea520ab96a16ec65529a2efed92c9a4a8bda34
Well, with these patches, the whole mm switch now runs with irqs off, is this the intended effect?
Signature · 1 line
Gilles.
Quoted 13 lines · Gilles Chanteperdrix
Quoted 11 lines · Philippe Gerum
A bad bug has been fixed in the unlocked context switching code for powerpc platforms. This affects all I-pipe patches for 3.4 kernels and above. The typical manifestation of this bug is random segmentation faults in user-space applications (sometimes after hours under stress load), usually the Xenomai-dependent ones.
A work around not to change the kernel code is to disable
CONFIG_XENO_HW_UNLOCKED_SWITCH. Patches for fixing this issue are available for 3.5.7 and above:
Quoted 7 lines
Quoted 2 lines
http://git.xenomai.org/?p=ipipe.git;a=commit;h=614aa59453dacf7693fbb18229c27676c2803dbb
http://git.xenomai.org/?p=ipipe.git;a=commit;h=04ea520ab96a16ec65529a2efed92c9a4a8bda34Well, with these patches, the whole mm switch now runs with irqs off, is this the intended effect?
Sorry, misread the code.
Signature · 1 line
Gilles.