-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arc_pmu_device_probe: BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1 #92
Comments
Suggested fix located here: http://lists.infradead.org/pipermail/linux-snps-arc/2022-May/005952.html |
@kokas-a could you please rebase your proposed fix on top of the current Linus' |
New link to the fix: http://lists.infradead.org/pipermail/linux-snps-arc/2023-April/007106.html |
I've added this patch to the arc64 branch. |
With enabled
CONFIG_DEBUG_PREEMPT
the following stack-trace gets printed on SMP ARC platforms with performance counters interrupts:That happens because of use of
this_cpu_ptr()
in https://elixir.bootlin.com/linux/v5.17/source/arch/arc/kernel/perf_event.c#L811 without explicitly disabled preemption, see https://www.kernel.org/doc/html/latest/core-api/this_cpu_ops.html#special-operations.We need either to re-work that code so that it uses preemption-agnostic functions or explicitly disable preemption around that code.
The text was updated successfully, but these errors were encountered: