linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Misaligned patch-site bcm2836_arm_irqchip_handle_irq+0x0/0x88
@ 2023-02-24 23:39 Florian Fainelli
  2023-02-25  0:12 ` Florian Fainelli
  2023-02-25 10:37 ` Marc Zyngier
  0 siblings, 2 replies; 7+ messages in thread
From: Florian Fainelli @ 2023-02-24 23:39 UTC (permalink / raw)
  To: linux-arm-kernel, Mark Rutland, Catalin Marinas, Marc Zyngier,
	rostedt
  Cc: Stefan Wahren

Hello,

You will find a complete boot log [1] below that shows the failure as 
well as the configuration file [2], however I am hitting what you see 
below as of v6.2-10217-ga93e884edf61. Have not tried linux-next yet, so 
if this is a known issue, please ignore :)

This is seen with on a Raspberry pi 4B running in AArch64 mode.

[1]: https://gist.github.com/b1a977b5fea837d180ccb800f091218a
[2]: https://gist.github.com/64cf18b6ee770d58f64371e1db01afb9

Thanks!


[    0.000000] ------------[ cut here ]------------
[    0.000000] Misaligned patch-site bcm2836_arm_irqchip_handle_irq+0x0/0x88
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
ftrace_call_adjust+0x4c/0x70
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 6.2.0 #32
[    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
[    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
BTYPE=--)
[    0.000000] pc : ftrace_call_adjust+0x4c/0x70
[    0.000000] lr : ftrace_call_adjust+0x4c/0x70
[    0.000000] sp : ffffffc00c6e7d90
[    0.000000] x29: ffffffc00c6e7d90 x28: ffffffc00809000c x27: 
0000000000001000
[    0.000000] x26: ffffff8040080000 x25: 0000000000000000 x24: 
ffffffc009777be8
[    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
0000000000000000
[    0.000000] x20: ffffffc008fa5340 x19: ffffffc008090054 x18: 
000000004e2504be
[    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
0000000000000000
[    0.000000] x14: 0000000000000000 x13: 383878302f307830 x12: 
1ffffff8018dcf38
[    0.000000] x11: ffffffb8018dcf38 x10: 7172695f6d72615f x9 : 
dfffffc000000000
[    0.000000] x8 : 636220657469732d x7 : ffffffc00c6e79c7 x6 : 
0000000000000000
[    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
0000000000000000
[    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
ffffffc00c6f77c0
[    0.000000] Call trace:
[    0.000000]  ftrace_call_adjust+0x4c/0x70
[    0.000000]  ftrace_process_locs+0x294/0x4a8
[    0.000000]  ftrace_init+0x84/0x140
[    0.000000]  start_kernel+0x170/0x398
[    0.000000]  __primary_switched+0xb8/0xc8
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] Misaligned patch-site gic_handle_irq+0x0/0xbc
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
ftrace_call_adjust+0x4c/0x70
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 
6.2.0 #32
[    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
[    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
BTYPE=--)
[    0.000000] pc : ftrace_call_adjust+0x4c/0x70
[    0.000000] lr : ftrace_call_adjust+0x4c/0x70
[    0.000000] sp : ffffffc00c6e7d90
[    0.000000] x29: ffffffc00c6e7d90 x28: 0000000000000000 x27: 
0000000000001000
[    0.000000] x26: ffffff8040080000 x25: 0000000000000000 x24: 
ffffffc009777bf0
[    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
0000000000000000
[    0.000000] x20: ffffffc008fa5340 x19: ffffffc0080900dc x18: 
000000004e2504be
[    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
0000000000000000
[    0.000000] x14: 0000000000000000 x13: 636278302f307830 x12: 
1ffffff8018dcf38
[    0.000000] x11: ffffffb8018dcf38 x10: 657469732d686374 x9 : 
dfffffc000000000
[    0.000000] x8 : 696720657469732d x7 : ffffffc00c6e79c7 x6 : 
0000000000000000
[    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
0000000000000000
[    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
ffffffc00c6f77c0
[    0.000000] Call trace:
[    0.000000]  ftrace_call_adjust+0x4c/0x70
[    0.000000]  ftrace_process_locs+0x294/0x4a8
[    0.000000]  ftrace_init+0x84/0x140
[    0.000000]  start_kernel+0x170/0x398
[    0.000000]  __primary_switched+0xb8/0xc8
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] Misaligned patch-site __traceiter_initcall_start+0x0/0x84
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
ftrace_call_adjust+0x4c/0x70
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 
6.2.0 #32
[    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
[    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
BTYPE=--)
[    0.000000] pc : ftrace_call_adjust+0x4c/0x70
[    0.000000] lr : ftrace_call_adjust+0x4c/0x70
[    0.000000] sp : ffffffc00c6e7d90
[    0.000000] x29: ffffffc00c6e7d90 x28: ffffffc00809438c x27: 
0000000000001000
[    0.000000] x26: ffffff8040080000 x25: 0000000000000030 x24: 
ffffffc009777c10
[    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
0000000000000000
[    0.000000] x20: ffffffc008fa5340 x19: ffffffc008094404 x18: 
000000004e2504be
[    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
0000000000000000
[    0.000000] x14: 0000000000000000 x13: 343878302f307830 x12: 
1ffffff8018dcf38
[    0.000000] x11: ffffffb8018dcf38 x10: 7265746965636172 x9 : 
dfffffc000000000
[    0.000000] x8 : 5f5f20657469732d x7 : ffffffc00c6e79c7 x6 : 
0000000000000000
[    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
0000000000000000
[    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
ffffffc00c6f77c0
[    0.000000] Call trace:
[    0.000000]  ftrace_call_adjust+0x4c/0x70
[    0.000000]  ftrace_process_locs+0x294/0x4a8
[    0.000000]  ftrace_init+0x84/0x140
[    0.000000]  start_kernel+0x170/0x398
[    0.000000]  __primary_switched+0xb8/0xc8
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] Misaligned patch-site trace_initcall_start_cb+0x0/0x70
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
ftrace_call_adjust+0x4c/0x70
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 
6.2.0 #32
[    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
[    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
BTYPE=--)
[    0.000000] pc : ftrace_call_adjust+0x4c/0x70
[    0.000000] lr : ftrace_call_adjust+0x4c/0x70
[    0.000000] sp : ffffffc00c6e7d90
[    0.000000] x29: ffffffc00c6e7d90 x28: ffffffc008094494 x27: 
0000000000001000
[    0.000000] x26: ffffff8040080000 x25: 0000000000000040 x24: 
ffffffc009777c20
[    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
0000000000000000
[    0.000000] x20: ffffffc008fa5340 x19: ffffffc008094544 x18: 
000000004e2504be
[    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
0000000000000000
[    0.000000] x14: 0000000000000000 x13: 303778302f307830 x12: 
1ffffff8018dcf38
[    0.000000] x11: ffffffb8018dcf38 x10: 6e695f6563617274 x9 : 
dfffffc000000000
[    0.000000] x8 : 727420657469732d x7 : ffffffc00c6e79c7 x6 : 
0000000000000000
[    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
0000000000000000
[    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
ffffffc00c6f77c0
[    0.000000] Call trace:
[    0.000000]  ftrace_call_adjust+0x4c/0x70
[    0.000000]  ftrace_process_locs+0x294/0x4a8
[    0.000000]  ftrace_init+0x84/0x140
[    0.000000]  start_kernel+0x170/0x398
[    0.000000]  __primary_switched+0xb8/0xc8
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] Misaligned patch-site run_init_process+0x0/0x11c
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
ftrace_call_adjust+0x4c/0x70
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 
6.2.0 #32
[    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
[    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
BTYPE=--)
[    0.000000] pc : ftrace_call_adjust+0x4c/0x70
[    0.000000] lr : ftrace_call_adjust+0x4c/0x70
[    0.000000] sp : ffffffc00c6e7d90
[    0.000000] x29: ffffffc00c6e7d90 x28: 0000000000000000 x27: 
0000000000001000
[    0.000000] x26: ffffff8040080000 x25: 0000000000000040 x24: 
ffffffc009777c28
[    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
0000000000000000
[    0.000000] x20: ffffffc008fa5340 x19: ffffffc0080945dc x18: 
000000004e2504be
[    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
0000000000000000
[    0.000000] x14: 0000000000000000 x13: 63313178302f3078 x12: 
1ffffff8018dcf38
[    0.000000] x11: ffffffb8018dcf38 x10: 757220657469732d x9 : 
dfffffc000000000
[    0.000000] x8 : 757220657469732d x7 : ffffffc00c6e79c7 x6 : 
0000000000000000
[    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
0000000000000000
[    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
ffffffc00c6f77c0
[    0.000000] Call trace:
[    0.000000]  ftrace_call_adjust+0x4c/0x70
[    0.000000]  ftrace_process_locs+0x294/0x4a8
[    0.000000]  ftrace_init+0x84/0x140
[    0.000000]  start_kernel+0x170/0x398
[    0.000000]  __primary_switched+0xb8/0xc8
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] Misaligned patch-site initcall_blacklisted+0x0/0x170
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
ftrace_call_adjust+0x4c/0x70
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 
6.2.0 #32
[    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
[    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
BTYPE=--)
[    0.000000] pc : ftrace_call_adjust+0x4c/0x70
[    0.000000] lr : ftrace_call_adjust+0x4c/0x70
[    0.000000] sp : ffffffc00c6e7d90
[    0.000000] x29: ffffffc00c6e7d90 x28: ffffffc008094704 x27: 
0000000000001000
[    0.000000] x26: ffffff8040080000 x25: 0000000000000050 x24: 
ffffffc009777c38
[    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
0000000000000000
[    0.000000] x20: ffffffc008fa5340 x19: ffffffc00809508c x18: 
000000004e2504be
[    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
0000000000000000
[    0.000000] x14: 0000000000000000 x13: 30373178302f3078 x12: 
1ffffff8018dcf38
[    0.000000] x11: ffffffb8018dcf38 x10: 616374696e692065 x9 : 
dfffffc000000000
[    0.000000] x8 : 6e6920657469732d x7 : ffffffc00c6e79c7 x6 : 
0000000000000000
[    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
0000000000000000
[    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
ffffffc00c6f77c0
[    0.000000] Call trace:
[    0.000000]  ftrace_call_adjust+0x4c/0x70
[    0.000000]  ftrace_process_locs+0x294/0x4a8
[    0.000000]  ftrace_init+0x84/0x140
[    0.000000]  start_kernel+0x170/0x398
[    0.000000]  __primary_switched+0xb8/0xc8
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] Misaligned patch-site trace_initcall_finish_cb+0x0/0x74
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
ftrace_call_adjust+0x4c/0x70
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 
6.2.0 #32
[    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
[    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
BTYPE=--)
[    0.000000] pc : ftrace_call_adjust+0x4c/0x70
[    0.000000] lr : ftrace_call_adjust+0x4c/0x70
[    0.000000] sp : ffffffc00c6e7d90
[    0.000000] x29: ffffffc00c6e7d90 x28: 0000000000000000 x27: 
0000000000001000
[    0.000000] x26: ffffff8040080000 x25: 0000000000000050 x24: 
ffffffc009777c40
[    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
0000000000000000
[    0.000000] x20: ffffffc008fa5340 x19: ffffffc0080952d4 x18: 
000000004e2504be
[    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
0000000000000000
[    0.000000] x14: 0000000000000000 x13: 343778302f307830 x12: 
1ffffff8018dcf38
[    0.000000] x11: ffffffb8018dcf38 x10: 696e695f65636172 x9 : 
dfffffc000000000
[    0.000000] x8 : 727420657469732d x7 : ffffffc00c6e79c7 x6 : 
0000000000000000
[    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
0000000000000000
[    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
ffffffc00c6f77c0
[    0.000000] Call trace:
[    0.000000]  ftrace_call_adjust+0x4c/0x70
[    0.000000]  ftrace_process_locs+0x294/0x4a8
[    0.000000]  ftrace_init+0x84/0x140
[    0.000000]  start_kernel+0x170/0x398
[    0.000000]  __primary_switched+0xb8/0xc8
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] Misaligned patch-site do_one_initcall+0x0/0x2a0
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
ftrace_call_adjust+0x4c/0x70
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 
6.2.0 #32
[    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
[    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
BTYPE=--)
[    0.000000] pc : ftrace_call_adjust+0x4c/0x70
[    0.000000] lr : ftrace_call_adjust+0x4c/0x70
[    0.000000] sp : ffffffc00c6e7d90
[    0.000000] x29: ffffffc00c6e7d90 x28: 0000000000000000 x27: 
0000000000001000
[    0.000000] x26: ffffff8040080000 x25: 0000000000000050 x24: 
ffffffc009777c48
[    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
0000000000000000
[    0.000000] x20: ffffffc008fa5340 x19: ffffffc0080954ac x18: 
000000004e2504be
[    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
0000000000000000
[    0.000000] x14: 0000000000000000 x13: 30613278302f3078 x12: 
1ffffff8018dcf38
[    0.000000] x11: ffffffb8018dcf38 x10: 6420657469732d68 x9 : 
dfffffc000000000
[    0.000000] x8 : 6f6420657469732d x7 : ffffffc00c6e79c7 x6 : 
0000000000000000
[    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
0000000000000000
[    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
ffffffc00c6f77c0
[    0.000000] Call trace:
[    0.000000]  ftrace_call_adjust+0x4c/0x70
[    0.000000]  ftrace_process_locs+0x294/0x4a8
[    0.000000]  ftrace_init+0x84/0x140
[    0.000000]  start_kernel+0x170/0x398
[    0.000000]  __primary_switched+0xb8/0xc8
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] Misaligned patch-site match_dev_by_label+0x0/0x64
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
ftrace_call_adjust+0x4c/0x70
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 
6.2.0 #32
[    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
[    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
BTYPE=--)
[    0.000000] pc : ftrace_call_adjust+0x4c/0x70
[    0.000000] lr : ftrace_call_adjust+0x4c/0x70
[    0.000000] sp : ffffffc00c6e7d90
[    0.000000] x29: ffffffc00c6e7d90 x28: ffffffc008095704 x27: 
0000000000001000
[    0.000000] x26: ffffff8040080000 x25: 0000000000000060 x24: 
ffffffc009777c58
[    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
0000000000000000
[    0.000000] x20: ffffffc008fa5340 x19: ffffffc00809574c x18: 
000000004e2504be
[    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
0000000000000000
[    0.000000] x14: 0000000000000000 x13: 343678302f307830 x12: 
1ffffff8018dcf38
[    0.000000] x11: ffffffb8018dcf38 x10: 74616d2065746973 x9 : 
dfffffc000000000
[    0.000000] x8 : 616d20657469732d x7 : ffffffc00c6e79c7 x6 : 
0000000000000000
[    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
0000000000000000
[    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
ffffffc00c6f77c0
[    0.000000] Call trace:
[    0.000000]  ftrace_call_adjust+0x4c/0x70
[    0.000000]  ftrace_process_locs+0x294/0x4a8
[    0.000000]  ftrace_init+0x84/0x140
[    0.000000]  start_kernel+0x170/0x398
[    0.000000]  __primary_switched+0xb8/0xc8
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] Misaligned patch-site wait_for_initramfs+0x0/0x6c
[    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
ftrace_call_adjust+0x4c/0x70
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 
6.2.0 #32
[    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
[    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
BTYPE=--)
[    0.000000] pc : ftrace_call_adjust+0x4c/0x70
[    0.000000] lr : ftrace_call_adjust+0x4c/0x70
[    0.000000] sp : ffffffc00c6e7d90
[    0.000000] x29: ffffffc00c6e7d90 x28: ffffffc00809590c x27: 
0000000000001000
[    0.000000] x26: ffffff8040080000 x25: 0000000000000090 x24: 
ffffffc009777c78
[    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
0000000000000000
[    0.000000] x20: ffffffc008fa5340 x19: ffffffc008095d7c x18: 
000000004e2504be
[    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
0000000000000000
[    0.000000] x14: 0000000000000000 x13: 633678302f307830 x12: 
1ffffff8018dcf38
[    0.000000] x11: ffffffb8018dcf38 x10: 6961772065746973 x9 : 
dfffffc000000000
[    0.000000] x8 : 617720657469732d x7 : ffffffc00c6e79c7 x6 : 
0000000000000000
[    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
0000000000000000
[    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
ffffffc00c6f77c0
[    0.000000] Call trace:
[    0.000000]  ftrace_call_adjust+0x4c/0x70
[    0.000000]  ftrace_process_locs+0x294/0x4a8
[    0.000000]  ftrace_init+0x84/0x140
[    0.000000]  start_kernel+0x170/0x398
[    0.000000]  __primary_switched+0xb8/0xc8
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:6856 
ftrace_process_locs+0x2ec/0x4a8
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 
6.2.0 #32
[    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
[    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
BTYPE=--)
[    0.000000] pc : ftrace_process_locs+0x2ec/0x4a8
[    0.000000] lr : ftrace_process_locs+0x2e4/0x4a8
[    0.000000] sp : ffffffc00c6e7dc0
[    0.000000] x29: ffffffc00c6e7dc0 x28: ffffffc0097489b4 x27: 
0000000000001000
[    0.000000] x26: ffffff8040080000 x25: 0000000000054260 x24: 
ffffffc0097cc1b0
[    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
ffffff804000e000
[    0.000000] x20: ffffffc00cdfa1c0 x19: ffffff804000e000 x18: 
000000004e2504be
[    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
0000000000000000
[    0.000000] x14: 0000000000000000 x13: 633678302f307830 x12: 
1ffffff8018e1388
[    0.000000] x11: ffffffb8018e1388 x10: 6961772065746973 x9 : 
dfffffc000000000
[    0.000000] x8 : 617720657469732d x7 : ffffffc00c709c40 x6 : 
0000000000000000
[    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
ffffffc0081ec504
[    0.000000] x2 : 0000000000000007 x1 : 0000000000000000 x0 : 
ffffff804000e100
[    0.000000] Call trace:
[    0.000000]  ftrace_process_locs+0x2ec/0x4a8
[    0.000000]  ftrace_init+0x84/0x140
[    0.000000]  start_kernel+0x170/0x398
[    0.000000]  __primary_switched+0xb8/0xc8
[    0.000000] ---[ end trace 0000000000000000 ]---
-- 
Florian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Misaligned patch-site bcm2836_arm_irqchip_handle_irq+0x0/0x88
  2023-02-24 23:39 Misaligned patch-site bcm2836_arm_irqchip_handle_irq+0x0/0x88 Florian Fainelli
@ 2023-02-25  0:12 ` Florian Fainelli
  2023-02-25 10:37 ` Marc Zyngier
  1 sibling, 0 replies; 7+ messages in thread
From: Florian Fainelli @ 2023-02-25  0:12 UTC (permalink / raw)
  To: linux-arm-kernel, Mark Rutland, Catalin Marinas, Marc Zyngier,
	rostedt, Will Deacon
  Cc: Stefan Wahren

On 2/24/2023 3:39 PM, Florian Fainelli wrote:
> Hello,
> 
> You will find a complete boot log [1] below that shows the failure as 
> well as the configuration file [2], however I am hitting what you see 
> below as of v6.2-10217-ga93e884edf61. Have not tried linux-next yet, so 
> if this is a known issue, please ignore :)

Applying:

https://lore.kernel.org/lkml/20230124120913.GA26449@willie-the-truck/T/

did not help, System.map still shows:

ffffffc00801005c t bcm2836_arm_irqchip_handle_irq

which explains the warning: !IS_ALIGNED(sizeof(unsigned long)). In case 
this matters.

Both gic_handle_irq appear to be aligned as expected, and also marked as 
__exception_irq_entry:

ffffffc0080100e4 t gic_handle_irq
ffffffc0080101a0 t gic_handle_irq

> 
> This is seen with on a Raspberry pi 4B running in AArch64 mode.
> 
> [1]: https://gist.github.com/b1a977b5fea837d180ccb800f091218a
> [2]: https://gist.github.com/64cf18b6ee770d58f64371e1db01afb9
> 
> Thanks!
> 
> 
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] Misaligned patch-site 
> bcm2836_arm_irqchip_handle_irq+0x0/0x88
> [    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
> ftrace_call_adjust+0x4c/0x70
> [    0.000000] Modules linked in:
> [    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 6.2.0 #32
> [    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
> [    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
> BTYPE=--)
> [    0.000000] pc : ftrace_call_adjust+0x4c/0x70
> [    0.000000] lr : ftrace_call_adjust+0x4c/0x70
> [    0.000000] sp : ffffffc00c6e7d90
> [    0.000000] x29: ffffffc00c6e7d90 x28: ffffffc00809000c x27: 
> 0000000000001000
> [    0.000000] x26: ffffff8040080000 x25: 0000000000000000 x24: 
> ffffffc009777be8
> [    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
> 0000000000000000
> [    0.000000] x20: ffffffc008fa5340 x19: ffffffc008090054 x18: 
> 000000004e2504be
> [    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
> 0000000000000000
> [    0.000000] x14: 0000000000000000 x13: 383878302f307830 x12: 
> 1ffffff8018dcf38
> [    0.000000] x11: ffffffb8018dcf38 x10: 7172695f6d72615f x9 : 
> dfffffc000000000
> [    0.000000] x8 : 636220657469732d x7 : ffffffc00c6e79c7 x6 : 
> 0000000000000000
> [    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
> 0000000000000000
> [    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
> ffffffc00c6f77c0
> [    0.000000] Call trace:
> [    0.000000]  ftrace_call_adjust+0x4c/0x70
> [    0.000000]  ftrace_process_locs+0x294/0x4a8
> [    0.000000]  ftrace_init+0x84/0x140
> [    0.000000]  start_kernel+0x170/0x398
> [    0.000000]  __primary_switched+0xb8/0xc8
> [    0.000000] ---[ end trace 0000000000000000 ]---
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] Misaligned patch-site gic_handle_irq+0x0/0xbc
> [    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
> ftrace_call_adjust+0x4c/0x70
> [    0.000000] Modules linked in:
> [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 6.2.0 #32
> [    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
> [    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
> BTYPE=--)
> [    0.000000] pc : ftrace_call_adjust+0x4c/0x70
> [    0.000000] lr : ftrace_call_adjust+0x4c/0x70
> [    0.000000] sp : ffffffc00c6e7d90
> [    0.000000] x29: ffffffc00c6e7d90 x28: 0000000000000000 x27: 
> 0000000000001000
> [    0.000000] x26: ffffff8040080000 x25: 0000000000000000 x24: 
> ffffffc009777bf0
> [    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
> 0000000000000000
> [    0.000000] x20: ffffffc008fa5340 x19: ffffffc0080900dc x18: 
> 000000004e2504be
> [    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
> 0000000000000000
> [    0.000000] x14: 0000000000000000 x13: 636278302f307830 x12: 
> 1ffffff8018dcf38
> [    0.000000] x11: ffffffb8018dcf38 x10: 657469732d686374 x9 : 
> dfffffc000000000
> [    0.000000] x8 : 696720657469732d x7 : ffffffc00c6e79c7 x6 : 
> 0000000000000000
> [    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
> 0000000000000000
> [    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
> ffffffc00c6f77c0
> [    0.000000] Call trace:
> [    0.000000]  ftrace_call_adjust+0x4c/0x70
> [    0.000000]  ftrace_process_locs+0x294/0x4a8
> [    0.000000]  ftrace_init+0x84/0x140
> [    0.000000]  start_kernel+0x170/0x398
> [    0.000000]  __primary_switched+0xb8/0xc8
> [    0.000000] ---[ end trace 0000000000000000 ]---
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] Misaligned patch-site __traceiter_initcall_start+0x0/0x84
> [    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
> ftrace_call_adjust+0x4c/0x70
> [    0.000000] Modules linked in:
> [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 6.2.0 #32
> [    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
> [    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
> BTYPE=--)
> [    0.000000] pc : ftrace_call_adjust+0x4c/0x70
> [    0.000000] lr : ftrace_call_adjust+0x4c/0x70
> [    0.000000] sp : ffffffc00c6e7d90
> [    0.000000] x29: ffffffc00c6e7d90 x28: ffffffc00809438c x27: 
> 0000000000001000
> [    0.000000] x26: ffffff8040080000 x25: 0000000000000030 x24: 
> ffffffc009777c10
> [    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
> 0000000000000000
> [    0.000000] x20: ffffffc008fa5340 x19: ffffffc008094404 x18: 
> 000000004e2504be
> [    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
> 0000000000000000
> [    0.000000] x14: 0000000000000000 x13: 343878302f307830 x12: 
> 1ffffff8018dcf38
> [    0.000000] x11: ffffffb8018dcf38 x10: 7265746965636172 x9 : 
> dfffffc000000000
> [    0.000000] x8 : 5f5f20657469732d x7 : ffffffc00c6e79c7 x6 : 
> 0000000000000000
> [    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
> 0000000000000000
> [    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
> ffffffc00c6f77c0
> [    0.000000] Call trace:
> [    0.000000]  ftrace_call_adjust+0x4c/0x70
> [    0.000000]  ftrace_process_locs+0x294/0x4a8
> [    0.000000]  ftrace_init+0x84/0x140
> [    0.000000]  start_kernel+0x170/0x398
> [    0.000000]  __primary_switched+0xb8/0xc8
> [    0.000000] ---[ end trace 0000000000000000 ]---
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] Misaligned patch-site trace_initcall_start_cb+0x0/0x70
> [    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
> ftrace_call_adjust+0x4c/0x70
> [    0.000000] Modules linked in:
> [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 6.2.0 #32
> [    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
> [    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
> BTYPE=--)
> [    0.000000] pc : ftrace_call_adjust+0x4c/0x70
> [    0.000000] lr : ftrace_call_adjust+0x4c/0x70
> [    0.000000] sp : ffffffc00c6e7d90
> [    0.000000] x29: ffffffc00c6e7d90 x28: ffffffc008094494 x27: 
> 0000000000001000
> [    0.000000] x26: ffffff8040080000 x25: 0000000000000040 x24: 
> ffffffc009777c20
> [    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
> 0000000000000000
> [    0.000000] x20: ffffffc008fa5340 x19: ffffffc008094544 x18: 
> 000000004e2504be
> [    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
> 0000000000000000
> [    0.000000] x14: 0000000000000000 x13: 303778302f307830 x12: 
> 1ffffff8018dcf38
> [    0.000000] x11: ffffffb8018dcf38 x10: 6e695f6563617274 x9 : 
> dfffffc000000000
> [    0.000000] x8 : 727420657469732d x7 : ffffffc00c6e79c7 x6 : 
> 0000000000000000
> [    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
> 0000000000000000
> [    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
> ffffffc00c6f77c0
> [    0.000000] Call trace:
> [    0.000000]  ftrace_call_adjust+0x4c/0x70
> [    0.000000]  ftrace_process_locs+0x294/0x4a8
> [    0.000000]  ftrace_init+0x84/0x140
> [    0.000000]  start_kernel+0x170/0x398
> [    0.000000]  __primary_switched+0xb8/0xc8
> [    0.000000] ---[ end trace 0000000000000000 ]---
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] Misaligned patch-site run_init_process+0x0/0x11c
> [    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
> ftrace_call_adjust+0x4c/0x70
> [    0.000000] Modules linked in:
> [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 6.2.0 #32
> [    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
> [    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
> BTYPE=--)
> [    0.000000] pc : ftrace_call_adjust+0x4c/0x70
> [    0.000000] lr : ftrace_call_adjust+0x4c/0x70
> [    0.000000] sp : ffffffc00c6e7d90
> [    0.000000] x29: ffffffc00c6e7d90 x28: 0000000000000000 x27: 
> 0000000000001000
> [    0.000000] x26: ffffff8040080000 x25: 0000000000000040 x24: 
> ffffffc009777c28
> [    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
> 0000000000000000
> [    0.000000] x20: ffffffc008fa5340 x19: ffffffc0080945dc x18: 
> 000000004e2504be
> [    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
> 0000000000000000
> [    0.000000] x14: 0000000000000000 x13: 63313178302f3078 x12: 
> 1ffffff8018dcf38
> [    0.000000] x11: ffffffb8018dcf38 x10: 757220657469732d x9 : 
> dfffffc000000000
> [    0.000000] x8 : 757220657469732d x7 : ffffffc00c6e79c7 x6 : 
> 0000000000000000
> [    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
> 0000000000000000
> [    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
> ffffffc00c6f77c0
> [    0.000000] Call trace:
> [    0.000000]  ftrace_call_adjust+0x4c/0x70
> [    0.000000]  ftrace_process_locs+0x294/0x4a8
> [    0.000000]  ftrace_init+0x84/0x140
> [    0.000000]  start_kernel+0x170/0x398
> [    0.000000]  __primary_switched+0xb8/0xc8
> [    0.000000] ---[ end trace 0000000000000000 ]---
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] Misaligned patch-site initcall_blacklisted+0x0/0x170
> [    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
> ftrace_call_adjust+0x4c/0x70
> [    0.000000] Modules linked in:
> [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 6.2.0 #32
> [    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
> [    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
> BTYPE=--)
> [    0.000000] pc : ftrace_call_adjust+0x4c/0x70
> [    0.000000] lr : ftrace_call_adjust+0x4c/0x70
> [    0.000000] sp : ffffffc00c6e7d90
> [    0.000000] x29: ffffffc00c6e7d90 x28: ffffffc008094704 x27: 
> 0000000000001000
> [    0.000000] x26: ffffff8040080000 x25: 0000000000000050 x24: 
> ffffffc009777c38
> [    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
> 0000000000000000
> [    0.000000] x20: ffffffc008fa5340 x19: ffffffc00809508c x18: 
> 000000004e2504be
> [    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
> 0000000000000000
> [    0.000000] x14: 0000000000000000 x13: 30373178302f3078 x12: 
> 1ffffff8018dcf38
> [    0.000000] x11: ffffffb8018dcf38 x10: 616374696e692065 x9 : 
> dfffffc000000000
> [    0.000000] x8 : 6e6920657469732d x7 : ffffffc00c6e79c7 x6 : 
> 0000000000000000
> [    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
> 0000000000000000
> [    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
> ffffffc00c6f77c0
> [    0.000000] Call trace:
> [    0.000000]  ftrace_call_adjust+0x4c/0x70
> [    0.000000]  ftrace_process_locs+0x294/0x4a8
> [    0.000000]  ftrace_init+0x84/0x140
> [    0.000000]  start_kernel+0x170/0x398
> [    0.000000]  __primary_switched+0xb8/0xc8
> [    0.000000] ---[ end trace 0000000000000000 ]---
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] Misaligned patch-site trace_initcall_finish_cb+0x0/0x74
> [    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
> ftrace_call_adjust+0x4c/0x70
> [    0.000000] Modules linked in:
> [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 6.2.0 #32
> [    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
> [    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
> BTYPE=--)
> [    0.000000] pc : ftrace_call_adjust+0x4c/0x70
> [    0.000000] lr : ftrace_call_adjust+0x4c/0x70
> [    0.000000] sp : ffffffc00c6e7d90
> [    0.000000] x29: ffffffc00c6e7d90 x28: 0000000000000000 x27: 
> 0000000000001000
> [    0.000000] x26: ffffff8040080000 x25: 0000000000000050 x24: 
> ffffffc009777c40
> [    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
> 0000000000000000
> [    0.000000] x20: ffffffc008fa5340 x19: ffffffc0080952d4 x18: 
> 000000004e2504be
> [    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
> 0000000000000000
> [    0.000000] x14: 0000000000000000 x13: 343778302f307830 x12: 
> 1ffffff8018dcf38
> [    0.000000] x11: ffffffb8018dcf38 x10: 696e695f65636172 x9 : 
> dfffffc000000000
> [    0.000000] x8 : 727420657469732d x7 : ffffffc00c6e79c7 x6 : 
> 0000000000000000
> [    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
> 0000000000000000
> [    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
> ffffffc00c6f77c0
> [    0.000000] Call trace:
> [    0.000000]  ftrace_call_adjust+0x4c/0x70
> [    0.000000]  ftrace_process_locs+0x294/0x4a8
> [    0.000000]  ftrace_init+0x84/0x140
> [    0.000000]  start_kernel+0x170/0x398
> [    0.000000]  __primary_switched+0xb8/0xc8
> [    0.000000] ---[ end trace 0000000000000000 ]---
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] Misaligned patch-site do_one_initcall+0x0/0x2a0
> [    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
> ftrace_call_adjust+0x4c/0x70
> [    0.000000] Modules linked in:
> [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 6.2.0 #32
> [    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
> [    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
> BTYPE=--)
> [    0.000000] pc : ftrace_call_adjust+0x4c/0x70
> [    0.000000] lr : ftrace_call_adjust+0x4c/0x70
> [    0.000000] sp : ffffffc00c6e7d90
> [    0.000000] x29: ffffffc00c6e7d90 x28: 0000000000000000 x27: 
> 0000000000001000
> [    0.000000] x26: ffffff8040080000 x25: 0000000000000050 x24: 
> ffffffc009777c48
> [    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
> 0000000000000000
> [    0.000000] x20: ffffffc008fa5340 x19: ffffffc0080954ac x18: 
> 000000004e2504be
> [    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
> 0000000000000000
> [    0.000000] x14: 0000000000000000 x13: 30613278302f3078 x12: 
> 1ffffff8018dcf38
> [    0.000000] x11: ffffffb8018dcf38 x10: 6420657469732d68 x9 : 
> dfffffc000000000
> [    0.000000] x8 : 6f6420657469732d x7 : ffffffc00c6e79c7 x6 : 
> 0000000000000000
> [    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
> 0000000000000000
> [    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
> ffffffc00c6f77c0
> [    0.000000] Call trace:
> [    0.000000]  ftrace_call_adjust+0x4c/0x70
> [    0.000000]  ftrace_process_locs+0x294/0x4a8
> [    0.000000]  ftrace_init+0x84/0x140
> [    0.000000]  start_kernel+0x170/0x398
> [    0.000000]  __primary_switched+0xb8/0xc8
> [    0.000000] ---[ end trace 0000000000000000 ]---
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] Misaligned patch-site match_dev_by_label+0x0/0x64
> [    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
> ftrace_call_adjust+0x4c/0x70
> [    0.000000] Modules linked in:
> [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 6.2.0 #32
> [    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
> [    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
> BTYPE=--)
> [    0.000000] pc : ftrace_call_adjust+0x4c/0x70
> [    0.000000] lr : ftrace_call_adjust+0x4c/0x70
> [    0.000000] sp : ffffffc00c6e7d90
> [    0.000000] x29: ffffffc00c6e7d90 x28: ffffffc008095704 x27: 
> 0000000000001000
> [    0.000000] x26: ffffff8040080000 x25: 0000000000000060 x24: 
> ffffffc009777c58
> [    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
> 0000000000000000
> [    0.000000] x20: ffffffc008fa5340 x19: ffffffc00809574c x18: 
> 000000004e2504be
> [    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
> 0000000000000000
> [    0.000000] x14: 0000000000000000 x13: 343678302f307830 x12: 
> 1ffffff8018dcf38
> [    0.000000] x11: ffffffb8018dcf38 x10: 74616d2065746973 x9 : 
> dfffffc000000000
> [    0.000000] x8 : 616d20657469732d x7 : ffffffc00c6e79c7 x6 : 
> 0000000000000000
> [    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
> 0000000000000000
> [    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
> ffffffc00c6f77c0
> [    0.000000] Call trace:
> [    0.000000]  ftrace_call_adjust+0x4c/0x70
> [    0.000000]  ftrace_process_locs+0x294/0x4a8
> [    0.000000]  ftrace_init+0x84/0x140
> [    0.000000]  start_kernel+0x170/0x398
> [    0.000000]  __primary_switched+0xb8/0xc8
> [    0.000000] ---[ end trace 0000000000000000 ]---
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] Misaligned patch-site wait_for_initramfs+0x0/0x6c
> [    0.000000] WARNING: CPU: 0 PID: 0 at arch/arm64/kernel/ftrace.c:120 
> ftrace_call_adjust+0x4c/0x70
> [    0.000000] Modules linked in:
> [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 6.2.0 #32
> [    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
> [    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
> BTYPE=--)
> [    0.000000] pc : ftrace_call_adjust+0x4c/0x70
> [    0.000000] lr : ftrace_call_adjust+0x4c/0x70
> [    0.000000] sp : ffffffc00c6e7d90
> [    0.000000] x29: ffffffc00c6e7d90 x28: ffffffc00809590c x27: 
> 0000000000001000
> [    0.000000] x26: ffffff8040080000 x25: 0000000000000090 x24: 
> ffffffc009777c78
> [    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
> 0000000000000000
> [    0.000000] x20: ffffffc008fa5340 x19: ffffffc008095d7c x18: 
> 000000004e2504be
> [    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
> 0000000000000000
> [    0.000000] x14: 0000000000000000 x13: 633678302f307830 x12: 
> 1ffffff8018dcf38
> [    0.000000] x11: ffffffb8018dcf38 x10: 6961772065746973 x9 : 
> dfffffc000000000
> [    0.000000] x8 : 617720657469732d x7 : ffffffc00c6e79c7 x6 : 
> 0000000000000000
> [    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
> 0000000000000000
> [    0.000000] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 
> ffffffc00c6f77c0
> [    0.000000] Call trace:
> [    0.000000]  ftrace_call_adjust+0x4c/0x70
> [    0.000000]  ftrace_process_locs+0x294/0x4a8
> [    0.000000]  ftrace_init+0x84/0x140
> [    0.000000]  start_kernel+0x170/0x398
> [    0.000000]  __primary_switched+0xb8/0xc8
> [    0.000000] ---[ end trace 0000000000000000 ]---
> [    0.000000] ------------[ cut here ]------------
> [    0.000000] WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:6856 
> ftrace_process_locs+0x2ec/0x4a8
> [    0.000000] Modules linked in:
> [    0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G        W 6.2.0 #32
> [    0.000000] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT)
> [    0.000000] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS 
> BTYPE=--)
> [    0.000000] pc : ftrace_process_locs+0x2ec/0x4a8
> [    0.000000] lr : ftrace_process_locs+0x2e4/0x4a8
> [    0.000000] sp : ffffffc00c6e7dc0
> [    0.000000] x29: ffffffc00c6e7dc0 x28: ffffffc0097489b4 x27: 
> 0000000000001000
> [    0.000000] x26: ffffff8040080000 x25: 0000000000054260 x24: 
> ffffffc0097cc1b0
> [    0.000000] x23: ffffffc00c85c460 x22: 0000000000000000 x21: 
> ffffff804000e000
> [    0.000000] x20: ffffffc00cdfa1c0 x19: ffffff804000e000 x18: 
> 000000004e2504be
> [    0.000000] x17: 0000000000000000 x16: 0000000000000000 x15: 
> 0000000000000000
> [    0.000000] x14: 0000000000000000 x13: 633678302f307830 x12: 
> 1ffffff8018e1388
> [    0.000000] x11: ffffffb8018e1388 x10: 6961772065746973 x9 : 
> dfffffc000000000
> [    0.000000] x8 : 617720657469732d x7 : ffffffc00c709c40 x6 : 
> 0000000000000000
> [    0.000000] x5 : 0000000000000001 x4 : dfffffc000000000 x3 : 
> ffffffc0081ec504
> [    0.000000] x2 : 0000000000000007 x1 : 0000000000000000 x0 : 
> ffffff804000e100
> [    0.000000] Call trace:
> [    0.000000]  ftrace_process_locs+0x2ec/0x4a8
> [    0.000000]  ftrace_init+0x84/0x140
> [    0.000000]  start_kernel+0x170/0x398
> [    0.000000]  __primary_switched+0xb8/0xc8
> [    0.000000] ---[ end trace 0000000000000000 ]---

-- 
Florian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Misaligned patch-site bcm2836_arm_irqchip_handle_irq+0x0/0x88
  2023-02-24 23:39 Misaligned patch-site bcm2836_arm_irqchip_handle_irq+0x0/0x88 Florian Fainelli
  2023-02-25  0:12 ` Florian Fainelli
@ 2023-02-25 10:37 ` Marc Zyngier
  2023-02-25 15:26   ` Florian Fainelli
  1 sibling, 1 reply; 7+ messages in thread
From: Marc Zyngier @ 2023-02-25 10:37 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: linux-arm-kernel, Mark Rutland, Catalin Marinas, rostedt,
	Stefan Wahren

On Fri, 24 Feb 2023 23:39:24 +0000,
Florian Fainelli <f.fainelli@gmail.com> wrote:
> 
> Hello,
> 
> You will find a complete boot log [1] below that shows the failure as
> well as the configuration file [2], however I am hitting what you see
> below as of v6.2-10217-ga93e884edf61. Have not tried linux-next yet,
> so if this is a known issue, please ignore :)
> 
> This is seen with on a Raspberry pi 4B running in AArch64 mode.
> 
> [1]: https://gist.github.com/b1a977b5fea837d180ccb800f091218a
> [2]: https://gist.github.com/64cf18b6ee770d58f64371e1db01afb9

From the config file:

CONFIG_ARM=y

Can you please provide the config file for the build you're seeing
this on?

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Misaligned patch-site bcm2836_arm_irqchip_handle_irq+0x0/0x88
  2023-02-25 10:37 ` Marc Zyngier
@ 2023-02-25 15:26   ` Florian Fainelli
  2023-02-26 18:10     ` Florian Fainelli
  2023-02-27 11:32     ` Mark Rutland
  0 siblings, 2 replies; 7+ messages in thread
From: Florian Fainelli @ 2023-02-25 15:26 UTC (permalink / raw)
  To: Marc Zyngier
  Cc: linux-arm-kernel, Mark Rutland, Catalin Marinas, rostedt,
	Stefan Wahren



On 2/25/2023 2:37 AM, Marc Zyngier wrote:
> On Fri, 24 Feb 2023 23:39:24 +0000,
> Florian Fainelli <f.fainelli@gmail.com> wrote:
>>
>> Hello,
>>
>> You will find a complete boot log [1] below that shows the failure as
>> well as the configuration file [2], however I am hitting what you see
>> below as of v6.2-10217-ga93e884edf61. Have not tried linux-next yet,
>> so if this is a known issue, please ignore :)
>>
>> This is seen with on a Raspberry pi 4B running in AArch64 mode.
>>
>> [1]: https://gist.github.com/b1a977b5fea837d180ccb800f091218a
>> [2]: https://gist.github.com/64cf18b6ee770d58f64371e1db01afb9
> 
>  From the config file:
> 
> CONFIG_ARM=y
> 
> Can you please provide the config file for the build you're seeing
> this on?

Yes, sorry about that, here is the 64-bit configuration:

https://gist.github.com/4eb83740c25b10f75b54560f8c8febb1

In case this is relevant the toolchain is using:

GNU ld (GNU Binutils) 2.38
gcc version 11.3.0 (Buildroot 2022.08-rc2-21-g4cbf7336914f)

Thanks
-- 
Florian


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Misaligned patch-site bcm2836_arm_irqchip_handle_irq+0x0/0x88
  2023-02-25 15:26   ` Florian Fainelli
@ 2023-02-26 18:10     ` Florian Fainelli
  2023-02-27 11:32     ` Mark Rutland
  1 sibling, 0 replies; 7+ messages in thread
From: Florian Fainelli @ 2023-02-26 18:10 UTC (permalink / raw)
  To: Marc Zyngier, Mark Rutland
  Cc: linux-arm-kernel, Catalin Marinas, rostedt, Stefan Wahren,
	Florent Revest, Masami Hiramatsu, Peter Zijlstra



On 2/25/2023 7:26 AM, Florian Fainelli wrote:
> 
> 
> On 2/25/2023 2:37 AM, Marc Zyngier wrote:
>> On Fri, 24 Feb 2023 23:39:24 +0000,
>> Florian Fainelli <f.fainelli@gmail.com> wrote:
>>>
>>> Hello,
>>>
>>> You will find a complete boot log [1] below that shows the failure as
>>> well as the configuration file [2], however I am hitting what you see
>>> below as of v6.2-10217-ga93e884edf61. Have not tried linux-next yet,
>>> so if this is a known issue, please ignore :)
>>>
>>> This is seen with on a Raspberry pi 4B running in AArch64 mode.
>>>
>>> [1]: https://gist.github.com/b1a977b5fea837d180ccb800f091218a
>>> [2]: https://gist.github.com/64cf18b6ee770d58f64371e1db01afb9
>>
>>  From the config file:
>>
>> CONFIG_ARM=y
>>
>> Can you please provide the config file for the build you're seeing
>> this on?
> 
> Yes, sorry about that, here is the 64-bit configuration:
> 
> https://gist.github.com/4eb83740c25b10f75b54560f8c8febb1
> 
> In case this is relevant the toolchain is using:
> 
> GNU ld (GNU Binutils) 2.38
> gcc version 11.3.0 (Buildroot 2022.08-rc2-21-g4cbf7336914f)

Bisection landed on:

# first bad commit: [baaf553d3bc330697c68a00f96cf11f4edfeac7e] arm64: 
Implement HAVE_DYNAMIC_FTRACE_WITH_CALL_OPS

CONFIG_DYNAMIC_FTRACE_WITH_CALL_OPS is not enabled in my kernel 
configuration, bumping up the alignment to 8b unconditionally:

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 6f6f37161cf6..0ab0891da9ac 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -123,8 +123,7 @@ config ARM64
  	select DMA_DIRECT_REMAP
  	select EDAC_SUPPORT
  	select FRAME_POINTER
-	select FUNCTION_ALIGNMENT_4B
-	select FUNCTION_ALIGNMENT_8B if DYNAMIC_FTRACE_WITH_CALL_OPS
+	select FUNCTION_ALIGNMENT_8B
  	select GENERIC_ALLOCATOR
  	select GENERIC_ARCH_TOPOLOGY
  	select GENERIC_CLOCKEVENTS_BROADCAST

did not seem to help.
-- 
Florian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: Misaligned patch-site bcm2836_arm_irqchip_handle_irq+0x0/0x88
  2023-02-25 15:26   ` Florian Fainelli
  2023-02-26 18:10     ` Florian Fainelli
@ 2023-02-27 11:32     ` Mark Rutland
  2023-02-27 12:10       ` Mark Rutland
  1 sibling, 1 reply; 7+ messages in thread
From: Mark Rutland @ 2023-02-27 11:32 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: Marc Zyngier, linux-arm-kernel, Catalin Marinas, rostedt,
	Stefan Wahren

Hi Florian,

On Sat, Feb 25, 2023 at 07:26:50AM -0800, Florian Fainelli wrote:
> On 2/25/2023 2:37 AM, Marc Zyngier wrote:
> > On Fri, 24 Feb 2023 23:39:24 +0000,
> > Florian Fainelli <f.fainelli@gmail.com> wrote:
> > > 
> > > Hello,
> > > 
> > > You will find a complete boot log [1] below that shows the failure as
> > > well as the configuration file [2], however I am hitting what you see
> > > below as of v6.2-10217-ga93e884edf61. Have not tried linux-next yet,
> > > so if this is a known issue, please ignore :)
> > > 
> > > This is seen with on a Raspberry pi 4B running in AArch64 mode.
> > > 
> > > [1]: https://gist.github.com/b1a977b5fea837d180ccb800f091218a
> > > [2]: https://gist.github.com/64cf18b6ee770d58f64371e1db01afb9
> > 
> >  From the config file:
> > 
> > CONFIG_ARM=y
> > 
> > Can you please provide the config file for the build you're seeing
> > this on?
> 
> Yes, sorry about that, here is the 64-bit configuration:
> 
> https://gist.github.com/4eb83740c25b10f75b54560f8c8febb1

I think the problem here is:

  CONFIG_CC_OPTIMIZE_FOR_SIZE=y

... since GCC is known to ignore function alignment when -Os is passed.

We can have DYNANMIC_FTRACE_WITH_CALL_OPS depend on
!CONFIG_CC_OPTIMIZE_FOR_SIZE to prevent that.

That said, you have FTRACE and CC_OPTIMIZE_FOR_SIZE selected; are you actually
seeing any beenfit from CC_OPTIMIZE_FOR_SIZE?

> In case this is relevant the toolchain is using:
> 
> GNU ld (GNU Binutils) 2.38
> gcc version 11.3.0 (Buildroot 2022.08-rc2-21-g4cbf7336914f)

Thanks for this info; I'll go check the above with the kernel.org GCC 11.3.0
cross toolchain.

Thanks,
Mark.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Misaligned patch-site bcm2836_arm_irqchip_handle_irq+0x0/0x88
  2023-02-27 11:32     ` Mark Rutland
@ 2023-02-27 12:10       ` Mark Rutland
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Rutland @ 2023-02-27 12:10 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: Marc Zyngier, linux-arm-kernel, Catalin Marinas, rostedt,
	Stefan Wahren

On Mon, Feb 27, 2023 at 11:32:22AM +0000, Mark Rutland wrote:
> Hi Florian,
> 
> On Sat, Feb 25, 2023 at 07:26:50AM -0800, Florian Fainelli wrote:
> > On 2/25/2023 2:37 AM, Marc Zyngier wrote:
> > > On Fri, 24 Feb 2023 23:39:24 +0000,
> > > Florian Fainelli <f.fainelli@gmail.com> wrote:
> > > > 
> > > > Hello,
> > > > 
> > > > You will find a complete boot log [1] below that shows the failure as
> > > > well as the configuration file [2], however I am hitting what you see
> > > > below as of v6.2-10217-ga93e884edf61. Have not tried linux-next yet,
> > > > so if this is a known issue, please ignore :)
> > > > 
> > > > This is seen with on a Raspberry pi 4B running in AArch64 mode.
> > > > 
> > > > [1]: https://gist.github.com/b1a977b5fea837d180ccb800f091218a
> > > > [2]: https://gist.github.com/64cf18b6ee770d58f64371e1db01afb9
> > > 
> > >  From the config file:
> > > 
> > > CONFIG_ARM=y
> > > 
> > > Can you please provide the config file for the build you're seeing
> > > this on?
> > 
> > Yes, sorry about that, here is the 64-bit configuration:
> > 
> > https://gist.github.com/4eb83740c25b10f75b54560f8c8febb1
> 
> I think the problem here is:
> 
>   CONFIG_CC_OPTIMIZE_FOR_SIZE=y
> 
> ... since GCC is known to ignore function alignment when -Os is passed.
> 
> We can have DYNANMIC_FTRACE_WITH_CALL_OPS depend on
> !CONFIG_CC_OPTIMIZE_FOR_SIZE to prevent that.

I've sent out a patch updating arm64's Kconfig to handle this, which should
appear at:

  https://lore.kernel.org/linux-arm-kernel/20230227115819.365630-1-mark.rutland@arm.com

... once lore next updates.

In local testing with GCC 11.3.0 and CONFIG_CC_OPTIMIZE_FOR_SIZE=y that did the
right thing and disabled CONFIG_DYNAMIC_FTRACE_WITH_CALL_OPS (and consequently
removed the warning).

Thanks,
Mark.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-02-27 12:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-24 23:39 Misaligned patch-site bcm2836_arm_irqchip_handle_irq+0x0/0x88 Florian Fainelli
2023-02-25  0:12 ` Florian Fainelli
2023-02-25 10:37 ` Marc Zyngier
2023-02-25 15:26   ` Florian Fainelli
2023-02-26 18:10     ` Florian Fainelli
2023-02-27 11:32     ` Mark Rutland
2023-02-27 12:10       ` Mark Rutland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).