On Mon, Aug 26, 2024 at 06:52:10PM +0200, Alexandre Ghiti wrote:
As reported in [1], the use of smp_processor_id() inTested-by: Nam Cao <namcao@xxxxxxxxxxxxx>
pmu_sbi_device_probe() must be protected by disabling the preemption, so
simple use get_cpu()/put_cpu() instead.
Reported-by: Nam Cao <namcao@xxxxxxxxxxxxx>
Closes: https://lore.kernel.org/linux-riscv/20240820074925.ReMKUPP3@xxxxxxxxxxxxx/ [1]
Signed-off-by: Alexandre Ghiti <alexghiti@xxxxxxxxxxxx>
I think this also needs:
Fixes: a8625217a054 ("drivers/perf: riscv: Implement SBI PMU snapshot function")
Best regards,
Nam
_______________________________________________
linux-riscv mailing list
linux-riscv@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/linux-riscv