-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Environment:
Board: Linux board
Kernel: 6.1.141 (PREEMPT_RT)
Distro: Yocto
glibc: 2.39 / NPTL 2.39
LTP revision: a05298e (“testcases: realtime: Get rid of autotools”)
Description of the problem:
After updating to commit a05298e, several real-time priority-inheritance tests started failing on our SMP PREEMPT_RT board. In particular, testpi-1, testpi-4 and testpi-5 now fail, whereas they previously passed. Other tests (like testpi-0, testpi-2, testpi-6) still pass.
From the logs, the low-priority thread holding the mutex stays at pthread pol 0 pri 0 for the entire run, while the SCHED_FIFO noise thread at prio 40 loops continuously without being preempted. This indicates that priority inheritance and/or CPU affinity setup is no longer working as expected after the autotools cleanup. These tests assume all threads are on one CPU to observe PI behavior.
Expected result:
On a PREEMPT_RT system with PI support, testpi-1, testpi-4 and testpi-5 should pass; the low-priority thread should be boosted and preempt the high-priority noise thread as the parser expects.
Actual result:
testpi-1 and testpi-4 end with “Result: FAIL”.
testpi-5 ends with “appears to have completed” but no “Result: PASS”.
Best Regards,
Tam