[powerpc] ftrace warning kernel/trace/ftrace.c:2068 with code-patching selftests

Yinan Liu yinan at linux.alibaba.com
Mon Jan 24 23:15:06 AEDT 2022


在 2022/1/24 下午5:19, Sachin Sant 写道:
> While running stress_code_patching test from selftests/powerpc/mm
> against 5.17-rc1 booted on a POWER10 LPAR following ftrace warning
> is seen:
> 
> WARNING: CPU: 1 PID: 2017392 at kernel/trace/ftrace.c:2068 ftrace_bug+0x274/0x2d8
> Modules linked in: dm_mod bonding rfkill sunrpc pseries_rng xts vmx_crypto uio_pdrv_genirq uio sch_fq_codel ip_tables ext4 mbcache jbd2 sd_mod t10_pi sg ibmvscsi ibmveth scsi_transport_srp fuse
> CPU: 1 PID: 2017392 Comm: stress_code_pat Not tainted 5.17.0-rc1-gdd81e1c7d5fb #1
> NIP:  c0000000002d561c LR: c0000000002d5618 CTR: 00000000005b4448
> REGS: c0000000332fb760 TRAP: 0700   Not tainted  (5.17.0-rc1-gdd81e1c7d5fb)
> MSR:  800000000282b033 <SF,VEC,VSX,EE,FP,ME,IR,DR,RI,LE>  CR: 48228224  XER: 00000009
> CFAR: c0000000001f6b00 IRQMASK: 0
> GPR00: c0000000002d5618 c0000000332fba00 c000000002a20000 0000000000000022
> GPR04: 00000000ffff7fff c0000000332fb720 c0000000332fb718 0000000000000027
> GPR08: c00000167cca7e10 0000000000000001 0000000000000027 c0000000028d6d08
> GPR12: 0000000000008000 c00000167fa30780 0000000040000000 00007fff9a089798
> GPR16: 00007fff9a089724 00007fff9a026be8 00007fff99fbf4f0 00007fff9a08d568
> GPR20: 00007fffce533ed0 0000000000000001 00007fff9a0399d8 00007fffd9eccf94
> GPR24: 0000000000000001 0000000000000000 c0000000332fbc70 c000000000fb0d18
> GPR28: c000000000ff5080 c000000000fadd38 c0000000020032ec c0000000070800a8
> NIP [c0000000002d561c] ftrace_bug+0x274/0x2d8
> LR [c0000000002d5618] ftrace_bug+0x270/0x2d8

Hi, Steven and Sachin

I don't have a powerpc machine for testing, I guess the ppc has a 
similar problem with the s390. It's not clear to me why the compiler 
does this. Maybe we can handle ppc like you did with the s390 before, 
but I'm not sure if other architectures have similar issues. Or limit 
BUILDTIME_MCOUNT_SORT to a smaller scope and make it only available for 
x86 and arm?

steven, what's your opinion?


Best regards
--yinan



More information about the Linuxppc-dev mailing list