[powerpc/perf] WARN_ONCE arch/powerpc/include/asm/interrupt.h:365 with perf tests

Sachin Sant sachinp at linux.ibm.com
Fri Feb 4 18:03:23 AEDT 2022


While running perftool [1] test against 5.17-rc2 booted on Power 9 LPAR
following warning is seen:

[  442.002150] ------------[ cut here ]------------
[  442.002164] WARNING: CPU: 7 PID: 76 at arch/powerpc/include/asm/interrupt.h:365 interrupt_nmi_exit_prepare+0x150/0x160
[  442.002175] Modules linked in: dm_mod nft_compat nft_ct nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set rfkill nf_tables nfnetlink pseries_rng uio_pdrv_genirq uio nfsd auth_rpcgss nfs_acl lockd drm grace sunrpc sch_fq_codel drm_panel_orientation_quirks i2c_core xfs libcrc32c sr_mod sd_mod cdrom t10_pi xts ibmvscsi ibmveth scsi_transport_srp vmx_crypto fuse
[  442.002216] CPU: 7 PID: 76 Comm: kworker/7:1 Kdump: loaded Not tainted 5.17.0-rc2-00167-gdcb85f85fa6f #1
[  442.002222] Workqueue: events perf_sched_delayed
[  442.002228] NIP:  c00000000002b840 LR: c00000000002b818 CTR: c000000000343240
[  442.002232] REGS: c00000002c08f460 TRAP: 0700   Not tainted  (5.17.0-rc2-00167-gdcb85f85fa6f)
[  442.002237] MSR:  8000000000021033 <SF,ME,IR,DR,RI,LE>  CR: 88002484  XER: 000000cf
[  442.002247] CFAR: c00000000002b7ac IRQMASK: 3
[  442.002247] GPR00: c00000000002b818 c00000002c08f700 c000000002a1fe00 0000000000000000
[  442.002247] GPR04: c00000002c08f758 0000000000000008 00000003fdcc0000 00000003fdcc0000
[  442.002247] GPR08: 0000000000000001 c000000007fc6280 0000000000000021 000000003b9aca00
[  442.002247] GPR12: 0000000000002000 c000000007fc6280 c0000000001925f8 c000000028ce0100
[  442.002247] GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[  442.002247] GPR20: 0000000000000000 c000000002a53a00 c000000002b0a8a0 0000000000000000
[  442.002247] GPR24: c000000002550de0 0000000000000001 c000000001059d60 0000000000000000
[  442.002247] GPR28: 0000000060000000 c008000000100000 c00000002c08f810 c00000002c08f758
[  442.002299] NIP [c00000000002b840] interrupt_nmi_exit_prepare+0x150/0x160
[  442.002305] LR [c00000000002b818] interrupt_nmi_exit_prepare+0x128/0x160
[  442.002310] Call Trace:
[  442.002312] [c00000002c08f700] [c00000000013bcac] perf_event_interrupt+0x3c/0x70 (unreliable)
[  442.002320] [c00000002c08f730] [c00000000002b8c4] performance_monitor_exception_nmi+0x74/0xb0
[  442.002327] [c00000002c08f780] [c00000000002bd44] performance_monitor_exception+0x44/0x60
[  442.002332] [c00000002c08f7a0] [c00000000000af28] performance_monitor_common_virt+0x208/0x210
[  442.002339] --- interrupt: f00 at __patch_instruction+0x10/0x60
[  442.002344] NIP:  c0000000000b0bc0 LR: c0000000000b1080 CTR: 000000000000ae84
[  442.002348] REGS: c00000002c08f810 TRAP: 0f00   Not tainted  (5.17.0-rc2-00167-gdcb85f85fa6f)
[  442.002352] MSR:  800000000280b033 <SF,VEC,VSX,EE,FP,ME,IR,DR,RI,LE>  CR: 44002484  XER: 000000cf
[  442.002365] CFAR: 0000000000000000 IRQMASK: 1
[  442.002365] GPR00: c0000000000b1114 c00000002c08fab0 c000000002a1fe00 c0000000001a59f8
[  442.002365] GPR04: 0000000060000000 c0080000001059f8 8e011a00000000c0 ffffffffffffffff
[  442.002365] GPR08: c0000000001a018e 0000000060000000 00000000000000c0 0000000000000040
[  442.002365] GPR12: 0000000084002484 c000000007fc6280 c0000000001925f8 c000000028ce0100
[  442.002365] GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[  442.002365] GPR20: 0000000000000000 c000000002a53a00 c000000002b0a8a0 0000000000000000
[  442.002365] GPR24: c000000002550de0 0000000000000001 c000000001059d60 0000000000000000
[  442.002365] GPR28: 0000000060000000 c008000000100000 0000000000000000 c0000000001a59f8
[  442.002414] NIP [c0000000000b0bc0] __patch_instruction+0x10/0x60
[  442.002419] LR [c0000000000b1080] patch_instruction+0xf0/0x1c0
[  442.002423] --- interrupt: f00
[  442.002426] [c00000002c08fab0] [c0000000000b1114] patch_instruction+0x184/0x1c0 (unreliable)
[  442.002432] [c00000002c08fb00] [c00000000005dc48] arch_jump_label_transform+0x38/0x78
[  442.002438] [c00000002c08fb20] [c00000000036a948] __jump_label_update+0x148/0x180
[  442.002444] [c00000002c08fbc0] [c00000000036afd8] static_key_disable_cpuslocked+0xe8/0x130
[  442.002450] [c00000002c08fc30] [c00000000036b050] static_key_disable+0x30/0x50
[  442.002454] [c00000002c08fc60] [c000000000343978] perf_sched_delayed+0x98/0xc0
[  442.002460] [c00000002c08fc90] [c0000000001849dc] process_one_work+0x27c/0x550
[  442.002466] [c00000002c08fd30] [c000000000184d58] worker_thread+0xa8/0x620
[  442.002472] [c00000002c08fdc0] [c000000000192710] kthread+0x120/0x130
[  442.002477] [c00000002c08fe10] [c00000000000ce64] ret_from_kernel_thread+0x5c/0x64
[  442.002482] Instruction dump:
[  442.002486] e87e0100 480893a5 60000000 2c230000 4182ff58 39400000 f87e0100 b14d0930
[  442.002494] 4bffff48 60000000 60000000 60420000 <0fe00000> 60000000 60000000 60420000
[  442.002503] ---[ end trace 0000000000000000 ]---
[  442.002511] Can't find PMC that caused IRQ

Since this warning is printed only once I can’t recreate it easily. I have seen this only
on P9 (hash MMU) and only with 5.17-rc1 onwards.

- Sachin

[1] - https://github.com/sacsant/avocado-misc-tests/blob/ci/perf/perftool.py


More information about the Linuxppc-dev mailing list