linux-thead/drivers/perf
Guo Ren 9c2dec666f perf: pmu: thead: Fixup warning print.
When enable DEBUG_PREEMPT, it will cause:

[    1.571276] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[    1.579159] caller is debug_smp_processor_id+0x1c/0x26
[    1.584322] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 5.10.82+ #2
[    1.590432] Call Trace:
[    1.592891] [<ffffffe00020378e>] walk_stackframe+0x0/0xaa
[    1.598307] [<ffffffe00085e7a0>] show_stack+0x32/0x3e
[    1.603372] [<ffffffe000861476>] dump_stack+0x78/0x92
[    1.608436] [<ffffffe000864d2c>] check_preemption_disabled+0xa8/0xaa
[    1.614806] [<ffffffe000864d4a>] debug_smp_processor_id+0x1c/0x26
[    1.620915] [<ffffffe000708014>] riscv_pmu_dev_probe+0xec/0x222
[    1.626853] [<ffffffe000617bd6>] platform_drv_probe+0x3e/0x82
[    1.632614] [<ffffffe000615b84>] really_probe+0x9e/0x386
[    1.637941] [<ffffffe000616130>] driver_probe_device+0x40/0x88
[    1.643789] [<ffffffe0006163ba>] device_driver_attach+0x8e/0x92
[    1.649724] [<ffffffe000616422>] __driver_attach+0x64/0xee
[    1.655224] [<ffffffe000613f52>] bus_for_each_dev+0x52/0x8c
[    1.660810] [<ffffffe000615586>] driver_attach+0x1a/0x22
[    1.666136] [<ffffffe000614fd0>] bus_add_driver+0xce/0x180
[    1.671636] [<ffffffe000616da6>] driver_register+0x48/0xd8
[    1.677136] [<ffffffe000617b5c>] __platform_driver_register+0x3a/0x42
[    1.683595] [<ffffffe000023384>] riscv_pmu_v1_probe+0x1a/0x22
[    1.689356] [<ffffffe000200782>] do_one_initcall+0x46/0x1e8
[    1.694943] [<ffffffe000002e2c>] kernel_init_freeable+0x1b4/0x204
[    1.701052] [<ffffffe000864e6e>] kernel_init+0x12/0x100
[    1.706291] [<ffffffe000201b94>] ret_from_exception+0x0/0xc
[    1.712269] [perf] T-HEAD C900 PMU v1 probed

This won't affect real work, but confuse user.

Now fixup it.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
2022-01-10 11:42:43 +08:00
..
hisilicon drivers/perf: hisi: Add missing include of linux/module.h 2020-09-07 14:05:11 +01:00
Kconfig perf: Add Arm CMN-600 PMU driver 2020-09-28 18:50:20 +01:00
Makefile drivers/perf: Add T-HEAD c900_pmu support 2020-12-31 01:35:10 +00:00
arm-cci.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-17 10:51:44 +01:00
arm-ccn.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
arm-cmn.c perf: arm-cmn: Fix conversion specifiers for node type 2020-10-01 22:30:07 +01:00
arm_dsu_pmu.c perf: arm_dsu: Support DSU ACPI devices 2020-09-15 15:51:42 +01:00
arm_pmu.c arm_pmu: arm64: Use NMIs for PMU 2020-09-28 19:00:17 +01:00
arm_pmu_acpi.c drivers/perf: arm_pmu_acpi: Fix incorrect checking of gicc pointer 2020-03-02 12:07:35 +00:00
arm_pmu_platform.c perf: Convert to using %pOFn instead of device_node.name 2018-10-01 11:33:17 +01:00
arm_smmuv3_pmu.c arm64 and cross-arch updates for 5.9: 2020-08-03 14:11:08 -07:00
arm_spe_pmu.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
fsl_imx8_ddr_perf.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-17 10:51:44 +01:00
qcom_l2_pmu.c It looks like a smaller batch of clk updates this time around. In the core 2020-08-07 13:35:51 -07:00
qcom_l3_pmu.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-17 10:51:44 +01:00
thead_c900_pmu.c perf: pmu: thead: Fixup warning print. 2022-01-10 11:42:43 +08:00
thead_c900_pmu_v1.c perf: pmu: thead: Fixup warning print. 2022-01-10 11:42:43 +08:00
thunderx2_pmu.c drivers/perf: thunderx2_pmu: Fix memory resource error handling 2020-09-18 14:34:51 +01:00
xgene_pmu.c drivers/perf: xgene_pmu: Fix uninitialized resource struct 2020-09-18 14:34:51 +01:00