Skip to contentSkip to conversation

Misaligned patch-site bcm2836_arm_irqchip_handle_irq+0x0/0x88

DISCUSSION Florian Fainelli 3 participants 7 messages Feb 24, 2023 – Feb 27, 2023 arm64

lore
Share & tools
lore
#0 lore raw

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 ]---
Signature · 6 lines
Florian

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
Quoted 3 lines · Florian Fainelli

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

Quoted 304 lines

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 ]---

Signature · 6 lines
Florian

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#2 lore raw
In reply to Florian Fainelli
Quoted 8 lines · Florian Fainelli

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 :)

Quoted 4 lines

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.
Signature · 6 lines
Without deviation from the norm, progress is not possible.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#3 lore raw
Quoted 15 lines · Marc Zyngier
Quoted 8 lines · Florian Fainelli

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 :)

Quoted 4 lines

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

Quoted 6 lines

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

Signature · 7 lines
Florian


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#4 lore raw
Quoted 25 lines · Florian Fainelli
Quoted 15 lines · Marc Zyngier
Quoted 8 lines · Florian Fainelli

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 :)

Quoted 4 lines

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

Quoted 6 lines

 From the config file:

CONFIG_ARM=y

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

Quoted 8 lines

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:

arch/arm64/Kconfig +1 -2
index 6f6f37161cf6..0ab0891da9ac 100644
@@ -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.

Signature · 6 lines
Florian

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
reviewer
#5 lore raw
In reply to Florian Fainelli

Hi Florian,

Quoted 18 lines · Florian Fainelli
Quoted 17 lines · Marc Zyngier
Quoted 8 lines · Florian Fainelli

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 :)

Quoted 4 lines

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:

Quoted 8 lines
Quoted 4 lines

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?

Quoted 4 lines

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
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

reviewer
#6 lore raw
Quoted 30 lines · Mark Rutland

Hi Florian,

Quoted 18 lines · Florian Fainelli
Quoted 17 lines · Marc Zyngier
Quoted 8 lines · Florian Fainelli

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 :)

Quoted 4 lines

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:

Quoted 8 lines
Quoted 4 lines

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

Quoted 8 lines

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/[email protected]

... 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
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel