public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/perf: riscv: BUG: using smp_processor_id() in preemptible
@ 2024-08-20  7:49 Nam Cao
  0 siblings, 0 replies; only message in thread
From: Nam Cao @ 2024-08-20  7:49 UTC (permalink / raw)
  To: Atish Patra, Palmer Dabbelt, Anup Patel, Conor Dooley,
	Andrew Jones, Samuel Holland
  Cc: linux-riscv, linux-kernel

Hi,

I noticed the following issue on 6.11.0-rc4 with CONFIG_DEBUG_PREEMPT=y.

BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
caller is debug_smp_processor_id+0x1c/0x26
CPU: 2 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.11.0-rc4 #2
Hardware name: StarFive VisionFive 2 v1.3B (DT)
Call Trace:
    dump_backtrace+0x1c/0x24
    show_stack+0x2c/0x38
    dump_stack_lvl+0x5a/0x72
    dump_stack+0x14/0x1c
    check_preemption_disabled+0xb6/0xb8
    debug_smp_processor_id+0x1c/0x26
    pmu_sbi_device_probe+0x474/0x570
    platform_probe+0x52/0x96
    really_probe+0x82/0x202
    __driver_probe_device+0x5c/0xd0
    driver_probe_device+0x2c/0xb0
    __device_attach_driver+0x6e/0x8e
    bus_for_each_drv+0x64/0xb8
    __device_attach+0x82/0x144
    device_initial_probe+0xe/0x16
    bus_probe_device+0x86/0x88
    device_add+0x508/0x6ac
    platform_device_add+0xcc/0x1c8
    platform_device_register_full+0xee/0x142
    pmu_sbi_devinit+0xd4/0x11c
    do_one_initcall+0x58/0x19c
    kernel_init_freeable+0x210/0x27a
    kernel_init+0x1e/0x112
    ret_from_fork+0xe/0x1c

If you fix the issue, please add:
Reported-by: Nam Cao <namcao@linutronix.de>

Best regards,
Nam

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-08-20  7:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-20  7:49 drivers/perf: riscv: BUG: using smp_processor_id() in preemptible Nam Cao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox