The test script adds a tracing filter:

echo '*lock*' > stack_trace_filter

..that takes a few minutes to apply and during that time we see the RCU
and/or softlockup messages. This is kind of expected since we're blocked
in kernel space updating ftrace points across the kernel which is slow
and expensive on the RISC-V unmatched/unleashed H/W.

One remedy is to do the following:

echo 0 > /proc/sys/kernel/soft_watchdog
echo 1 > /sys/module/rcupdate/parameters/rcu_cpu_stall_suppress

.. run test

echo 0 > /sys/module/rcupdate/parameters/rcu_cpu_stall_suppress
echo 1 > /proc/sys/kernel/soft_watchdog

The long term fix is to make the ftrace stack_trace_filter interface
more yieldy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1940972

Title:
  v5.13 kernel ftrace selftest fails on riscv64 unmatched

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1940972/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to