Soft lockup on arm64
Hello.
We are seeing a possible SMP bug on arm64. When running the attached test program on the 410c board, the following message appears, usually followed by a complete lockup:
Message from syslogd@linaro-developer at Jul 3 18:51:00 ...
kernel:[ 284.102490] NMI watchdog: BUG: soft lockup - CPU#2 stuck for 23s! [xeno_sleep:962]
An important observation is when I set the affinity for the realtime thread to a specific core, the problem goes away. I suspect there is an issue with CPU migration that triggers most often when sleeping for a short interval.
I have not tested this on any other platform, so I am not sure if this is arm64 specific. Any help would be greatly appreciated.
Test setup:
410c/Debian with Jorge's latest ipipe and xenomai trees.
Thanks,
Dmitriy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xeno_sleep.c
Type: text/x-csrc
Size: 1294 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20160202/9960c0e1/attachment.c>