[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c8ff3004-33ee-19d5-8eb8-38d41f78c8ee@arm.com>
Date: Fri, 9 Nov 2018 12:08:00 +0000
From: Marc Zyngier <marc.zyngier@....com>
To: Qian Cai <cai@....us>, linux-kernel@...r.kernel.org
Cc: Thomas Gleixner <tglx@...utronix.de>,
Jason Cooper <jason@...edaemon.net>,
Ard Biesheuvel <ard.biesheuvel@...aro.org>
Subject: Re: WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-v3-its.c
[+Ard]
On 08/11/18 20:59, Qian Cai wrote:
> Just booting up the latest git master (b00d209) on an aarch64 server and saw
> this. Not sure about the third warning (at kernel/cpu.c:315
> lockdep_assert_cpus_held+0x50/0x60) relates to irqchip or not, but appended it
> to here anyway just in case.
>
> [ 0.000000] WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-v3-its.c:1696
> its_init+0x588/0xb54
It looks like EFI cannot manage to reserve the memory for your GIC
redistributors. Pretty annoying. At the same time, you have reported
other issues with the EFI reservation mechanism, such as:
https://lore.kernel.org/patchwork/patch/1008413/
for which you have given a "Tested-by:". Is that related?
> [ 0.000000] Modules linked in:
> [ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G T 4.20.0-
> rc1+ #7
> [ 0.000000] pstate: 60000085 (nZCv daIf -PAN -UAO)
> [ 0.000000] pc : its_init+0x588/0xb54
> [ 0.000000] lr : its_init+0x558/0xb54
> [ 0.000000] sp : ffff200009ca79d0
> [ 0.000000] x29: ffff200009ca79d0 x28: 0000001dc0fb0000
> [ 0.000000] x27: ffff7fe007703ec0 x26: 3fe2e7a5444e6979
> [ 0.000000] x25: ffff2000093a8000 x24: 0000000000010000
> [ 0.000000] x23: ffff200009ce61a0 x22: 1fffe40001394f4e
> [ 0.000000] x21: ffff200009f84000 x20: ffff20000c0c3000
> [ 0.000000] x19: ffff200008fb2000 x18: 000000000000003f
> [ 0.000000] x17: 0000000000000000 x16: 0000000000000000
> [ 0.000000] x15: 0000000000000007 x14: ffff200009ceea80
> [ 0.000000] x13: ffff200009ceea80 x12: ffff801dc0d60f80
> [ 0.000000] x11: ffff801dc0d6f080 x10: ffff200009ceea80
> [ 0.000000] x9 : 0000000000000000 x8 : ffff801dc0fc0000
> [ 0.000000] x7 : a2a2a2a2a2a2a2a2 x6 : ffff1003b81f7fff
> [ 0.000000] x5 : ffff801dc0fbffff x4 : 0000000000000000
> [ 0.000000] x3 : 000000000000003f x2 : dfff200000000000
> [ 0.000000] x1 : 0000000000010000 x0 : 6667f74e4ba50b25
> [ 0.000000] Call trace:
> [ 0.000000] its_init+0x588/0xb54
> [ 0.000000] gic_init_bases+0x53c/0x5d4
> [ 0.000000] gic_acpi_init+0x2cc/0x564
> [ 0.000000] acpi_match_madt+0x9c/0x15c
> [ 0.000000] acpi_table_parse_entries_array+0x3e0/0x5d8
> [ 0.000000] acpi_table_parse_entries+0xbc/0x114
> [ 0.000000] acpi_table_parse_madt+0x4c/0x80
> [ 0.000000] __acpi_probe_device_table+0x134/0x1ec
> [ 0.000000] irqchip_init+0x48/0x74
> [ 0.000000] init_IRQ+0xe4/0x12c
> [ 0.000000] start_kernel+0x4d0/0x7d4
> [ 0.000000] irq event stamp: 0
> [ 0.000000] hardirqs last enabled at (0):
> [<0000000000000000>] (null)
> [ 0.000000] hardirqs last disabled at (0):
> [<0000000000000000>] (null)
> [ 0.000000] softirqs last enabled at (0):
> [<0000000000000000>] (null)
> [ 0.000000] softirqs last disabled at (0):
> [<0000000000000000>] (null)
> [ 0.000000] ---[ end trace f27c5aed63f8afd4 ]---
> [ 0.000000] GICv3: using LPI property table @0x0000001dc0fb0000
> [ 0.000000] ITS: Using DirectLPI for VPE invalidation
> [ 0.000000] ITS: Enabling GICv4 support
> [ 0.000000] WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-v3-its.c:2096
> its_cpu_init_lpis+0x3b4/0x3f0
Same thing here.
> [ 0.000000] Modules linked in:
> [ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W T 4.20.0-
> rc1+ #7
> [ 0.000000] pstate: 60000085 (nZCv daIf -PAN -UAO)
> [ 0.000000] pc : its_cpu_init_lpis+0x3b4/0x3f0
> [ 0.000000] lr : its_cpu_init_lpis+0x3b0/0x3f0
> [ 0.000000] sp : ffff200009ca7a00
> [ 0.000000] x29: ffff200009ca7a00 x28: ffff200009ce6188
> [ 0.000000] x27: 0000601df1e30000 x26: ffff200009ca7a00
> [ 0.000000] x25: 0000001dc0fc0000 x24: ffff20000c0c3000
> [ 0.000000] x23: ffff7fe007703f00 x22: ffff2000093a8000
> [ 0.000000] x21: ffff20000c180000 x20: ffff200009cd9000
> [ 0.000000] x19: 1fffe40001394f4c x18: 000000000000003f
> [ 0.000000] x17: 0000000000000000 x16: 0000000000000000
> [ 0.000000] x15: 0000000000000007 x14: ffff2000094f050c
> [ 0.000000] x13: ffff2000094f3cac x12: ffff2000094e7248
> [ 0.000000] x11: ffff2000094e69e0 x10: ffff2000094e9d18
> [ 0.000000] x9 : 1fffe40001394e5c x8 : ffff040001394edf
> [ 0.000000] x7 : 0000000041b58ab3 x6 : 00000000f1f1f1f1
> [ 0.000000] x5 : 0000000041b58ab3 x4 : 00000000f1f1f1f1
> [ 0.000000] x3 : ffff040001394f4c x2 : 000000000000ffff
> [ 0.000000] x1 : 0000000000010000 x0 : 00000000ffffffed
> [ 0.000000] Call trace:
> [ 0.000000] its_cpu_init_lpis+0x3b4/0x3f0
> [ 0.000000] its_cpu_init+0xa8/0x220
> [ 0.000000] gic_init_bases+0x540/0x5d4
> [ 0.000000] gic_acpi_init+0x2cc/0x564
> [ 0.000000] acpi_match_madt+0x9c/0x15c
> [ 0.000000] acpi_table_parse_entries_array+0x3e0/0x5d8
> [ 0.000000] acpi_table_parse_entries+0xbc/0x114
> [ 0.000000] acpi_table_parse_madt+0x4c/0x80
> [ 0.000000] __acpi_probe_device_table+0x134/0x1ec
> [ 0.000000] irqchip_init+0x48/0x74
> [ 0.000000] init_IRQ+0xe4/0x12c
> [ 0.000000] start_kernel+0x4d0/0x7d4
> [ 0.000000] irq event stamp: 0
> [ 0.000000] hardirqs last enabled at (0):
> [<0000000000000000>] (null)
> [ 0.000000] hardirqs last disabled at (0):
> [<0000000000000000>] (null)
> [ 0.000000] softirqs last enabled at (0):
> [<0000000000000000>] (null)
> [ 0.000000] softirqs last disabled at (0):
> [<0000000000000000>] (null)
> [ 0.000000] ---[ end trace f27c5aed63f8afd5 ]---
> [ 0.000000] GICv3: CPU0: using allocated LPI pending table
> @0x0000001dc0fc0000
> [ 0.000000] rcu: Offload RCU callbacks from CPUs: (none).
> [ 0.000000] WARNING: CPU: 0 PID: 0 at kernel/cpu.c:315
> lockdep_assert_cpus_held+0x50/0x60
> [ 0.000000] Modules linked in:
> [ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W T 4.20.0-
> rc1+ #7
> [ 0.000000] pstate: 20000085 (nzCv daIf -PAN -UAO)
> [ 0.000000] pc : lockdep_assert_cpus_held+0x50/0x60
> [ 0.000000] lr : lockdep_assert_cpus_held+0x4c/0x60
> [ 0.000000] sp : ffff200009ca7b10
> [ 0.000000] x29: ffff200009ca7b10 x28: ffff200009e49000
> [ 0.000000] x27: ffff200009ce1000 x26: ffff200009ce2000
> [ 0.000000] x25: ffff200009135000 x24: ffff200009cd9868
> [ 0.000000] x23: ffff200009c8c040 x22: 0000000000001000
> [ 0.000000] x21: 0000000000000012 x20: ffff200009cd9000
> [ 0.000000] x19: ffff200009ce5000 x18: 000000000000003f
> [ 0.000000] x17: 0000000000000000 x16: 0000000000000000
> [ 0.000000] x15: 0000000000000007 x14: ffff200009471ccc
> [ 0.000000] x13: ffff2000094795a0 x12: ffff2000095249ac
> [ 0.000000] x11: ffff2000094f4470 x10: ffff2000094f0a44
> [ 0.000000] x9 : ffff200009526aa8 x8 : ffff0ffbffcc4004
> [ 0.000000] x7 : 1fffeffbffcc4003 x6 : ffff0ffbffcc4003
> [ 0.000000] x5 : ffff7fdffe62001b x4 : ffff0ffbffcc4004
> [ 0.000000] x3 : ffff0ffbffcc4004 x2 : dfff200000000000
> [ 0.000000] x1 : 0000000000000000 x0 : 0000000000000000
> [ 0.000000] Call trace:
> [ 0.000000] lockdep_assert_cpus_held+0x50/0x60
> [ 0.000000] static_key_enable_cpuslocked+0x30/0xe8
> [ 0.000000] arch_timer_check_ool_workaround+0x128/0x2d0
Looks like we're calling static_key_enable_cpuslocked in the wrong
context. That's a separate issue (I'll investigate it).
Thanks,
M.
--
Jazz is not dead. It just smells funny...
Powered by blists - more mailing lists