openbmc / linux

OpenBMC Linux kernel source tree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gpio:[ 261.010291] Unable to handle kernel NULL pointer dereference at virtual address 00000070

shrd20190131 opened this issue · comments

This pin controls our device, when I pull this pin high, the bmc system sometimes will hang

root@jbof:/sys/class/gpio/gpio425# echo 1 > value
[ 261.010291] Unable to handle kernel NULL pointer dereference at virtual address 00000070
[ 261.018412] pgd = 05e00a87
[ 261.021122] [00000070] *pgd=00000000
[ 261.024717] Internal error: Oops: 17 [#1] ARM
[ 261.029087] CPU: 0 PID: 0 Comm: swapper Not tainted 5.2.0-c01e98d-dirty-0a2bbcd #1
[ 261.036652] Hardware name: Generic DT based system
[ 261.041459] PC is at aspeed_i2c_master_irq+0x138/0x4b0
[ 261.046602] LR is at aspeed_i2c_bus_irq+0x50/0xe8
[ 261.051301] pc : [<804b0060>] lr : [<804b0428>] psr: 80000193
[ 261.057557] sp : 80a01d60 ip : 00000001 fp : 80a01d84
[ 261.062773] r10: 80a01de8 r9 : 00000000 r8 : 00000002
[ 261.067991] r7 : 00000025 r6 : 00000001 r5 : 00000001 r4 : 9d633a20
[ 261.074508] r3 : 00000000 r2 : 00000000 r1 : 9f8321c0 r0 : 00000070
[ 261.081028] Flags: Nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none
[ 261.088237] Control: 00c5387d Table: 9b85c008 DAC: 00000051
[ 261.093981] Process swapper (pid: 0, stack limit = 0x180199c9)
[ 261.099807] Stack: (0x80a01d60 to 0x80a02000)
[ 261.104168] 1d60: 00000001 9d633a20 9d5267a0 00000025 80a03008 00000000 80a01da4 80a01d88
[ 261.112338] 1d80: 804b0428 804aff34 9d635400 9d4020e0 9d5267a0 00000025 80a01de4 80a01da8
[ 261.120510] 1da0: 8014bfb8 804b03e4 80a01de4 8015d7f0 80a01dfc 9d5267a0 8015d7f0 80a03008
[ 261.128683] 1dc0: 9d4020e0 9d5267a0 80a2e724 80a03008 80a00000 80938a38 80a01e0c 80a01de8
[ 261.136855] 1de0: 8014c16c 8014bf7c 00000000 e62d968e 80a00000 9d5267a0 9d4020e0 9d41f910
[ 261.145028] 1e00: 80a01e24 80a01e10 8014c1fc 8014c140 9d5267a0 9d4020e0 80a01e3c 80a01e28
[ 261.153201] 1e20: 8014fe50 8014c1d0 00000006 9d4020e0 80a01e4c 80a01e40 8014b748 8014fdcc
[ 261.161373] 1e40: 80a01e7c 80a01e50 8038a6fc 8014b724 00000040 e62d968e 9d413600 00000010
[ 261.169546] 1e60: 80a4a038 00000001 00000000 9d413600 80a01e8c 80a01e80 8014b748 8038a690
[ 261.177720] 1e80: 80a01eb4 80a01e90 8014b7b4 8014b724 9d402e40 80a01ed0 ffffffff 80a01f04
[ 261.185891] 1ea0: 807d8c30 80a00000 80a01ecc 80a01eb8 801021e4 8014b768 80103b74 60000013
[ 261.194064] 1ec0: 80a01f2c 80a01ed0 80101a6c 80102188 00000000 00000000 d0bbb400 00000000
[ 261.202236] 1ee0: ffffe000 00000000 80a0305c 80a4cf00 807d8c30 00000001 80938a38 80a01f2c
[ 261.210410] 1f00: 80a01f30 80a01f20 80103b70 80103b74 60000013 ffffffff 00000051 00000000
[ 261.218581] 1f20: 80a01f3c 80a01f30 80690c90 80103b48 80a01f64 80a01f40 8013f330 80690c64
[ 261.226756] 1f40: 80a0ce80 00000001 ffffffff 80a613a0 80a03008 80a613a0 80a01f74 80a01f68
[ 261.234927] 1f60: 8013f61c 8013f298 80a01f8c 80a01f78 8068a6c8 8013f60c 80a613ec 00000001
[ 261.243100] 1f80: 80a01f9c 80a01f90 80900d08 8068a658 80a01ff4 80a01fa0 8090119c 80900cfc
[ 261.251272] 1fa0: ffffffff ffffffff 00000000 8090061c 00000000 80a03000 00000000 80938a38
[ 261.259445] 1fc0: e628948e 00000000 00000000 80900330 00000051 00c0387d 000022b8 9ea1c000
[ 261.267617] 1fe0: 410fb767 00c5387d 00000000 80a01ff8 00000000 80900d90 00000000 00000000
[ 261.275780] Backtrace:
[ 261.278245] [<804aff28>] (aspeed_i2c_master_irq) from [<804b0428>] (aspeed_i2c_bus_irq+0x50/0xe8)
[ 261.287123] r9:00000000 r8:80a03008 r7:00000025 r6:9d5267a0 r5:9d633a20 r4:00000001
[ 261.294887] [<804b03d8>] (aspeed_i2c_bus_irq) from [<8014bfb8>] (__handle_irq_event_percpu+0x48/0x1c4)
[ 261.304192] r7:00000025 r6:9d5267a0 r5:9d4020e0 r4:9d635400
[ 261.309861] [<8014bf70>] (__handle_irq_event_percpu) from [<8014c16c>] (handle_irq_event_percpu+0x38/0x90)
[ 261.319506] r10:80938a38 r9:80a00000 r8:80a03008 r7:80a2e724 r6:9d5267a0 r5:9d4020e0
[ 261.327322] r4:80a03008
[ 261.329869] [<8014c134>] (handle_irq_event_percpu) from [<8014c1fc>] (handle_irq_event+0x38/0x4c)
[ 261.338731] r6:9d41f910 r5:9d4020e0 r4:9d5267a0
[ 261.343356] [<8014c1c4>] (handle_irq_event) from [<8014fe50>] (handle_simple_irq+0x90/0xa4)
[ 261.351696] r5:9d4020e0 r4:9d5267a0
[ 261.355277] [<8014fdc0>] (handle_simple_irq) from [<8014b748>] (generic_handle_irq+0x30/0x44)
[ 261.363794] r5:9d4020e0 r4:00000006
[ 261.367379] [<8014b718>] (generic_handle_irq) from [<8038a6fc>] (aspeed_i2c_ic_irq_handler+0x78/0x104)
[ 261.376680] [<8038a684>] (aspeed_i2c_ic_irq_handler) from [<8014b748>] (generic_handle_irq+0x30/0x44)
[ 261.385889] r8:9d413600 r7:00000000 r6:00000001 r5:80a4a038 r4:00000010
[ 261.392595] [<8014b718>] (generic_handle_irq) from [<8014b7b4>] (__handle_domain_irq+0x58/0xb8)
[ 261.401300] [<8014b75c>] (__handle_domain_irq) from [<801021e4>] (avic_handle_irq+0x68/0x70)
[ 261.409735] r9:80a00000 r8:807d8c30 r7:80a01f04 r6:ffffffff r5:80a01ed0 r4:9d402e40
[ 261.417475] [<8010217c>] (avic_handle_irq) from [<80101a6c>] (__irq_svc+0x6c/0x90)
[ 261.425032] Exception stack(0x80a01ed0 to 0x80a01f18)
[ 261.430079] 1ec0: 00000000 00000000 d0bbb400 00000000
[ 261.438256] 1ee0: ffffe000 00000000 80a0305c 80a4cf00 807d8c30 00000001 80938a38 80a01f2c
[ 261.446427] 1f00: 80a01f30 80a01f20 80103b70 80103b74 60000013 ffffffff
[ 261.453035] r5:60000013 r4:80103b74
[ 261.456624] [<80103b3c>] (arch_cpu_idle) from [<80690c90>] (default_idle_call+0x38/0x3c)
[ 261.464733] [<80690c58>] (default_idle_call) from [<8013f330>] (do_idle+0xa4/0xec)
[ 261.472306] [<8013f28c>] (do_idle) from [<8013f61c>] (cpu_startup_entry+0x1c/0x20)
[ 261.479874] r9:80a613a0 r8:80a03008 r7:80a613a0 r6:ffffffff r5:00000001 r4:80a0ce80
[ 261.487620] [<8013f600>] (cpu_startup_entry) from [<8068a6c8>] (rest_init+0x7c/0x9c)
[ 261.495369] [<8068a64c>] (rest_init) from [<80900d08>] (arch_call_rest_init+0x18/0x1c)
[ 261.503276] r5:00000001 r4:80a613ec
[ 261.506856] [<80900cf0>] (arch_call_rest_init) from [<8090119c>] (start_kernel+0x418/0x4cc)
[ 261.515206] [<80900d84>] (start_kernel) from [<00000000>] (0x0)
[ 261.521130] Code: e59431bc e5941194 e283c001 e584c1bc (e7d03003)
[ 261.527237] ---[ end trace 0ab992cf2f4efb95 ]---
[ 261.531854] Kernel panic - not syncing: Fatal exception in interrupt
[ 261.538213] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---

Below is the system version

root@jbof:~# cat /etc/os-release
ID="openbmc-phosphor"
VERSION="2.7.0-0"
VERSION_ID="2.7.0-0-1.0-20191226"
BUILD_ID="2.7.0"

Please re-test using the dev-5.4 branch of the openbmc kernel.