mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
![]() To avoid NULL function pointer access. This happens on VG10, reboot command hangs and have to power off/on to reboot the machine. This is serial console log: [ OK ] Reached target Unmount All Filesystems. [ OK ] Reached target Final Step. Starting Reboot... [ 305.696271] systemd-shutdown[1]: Syncing filesystems and block devices. [ 306.947328] systemd-shutdown[1]: Sending SIGTERM to remaining processes... [ 306.963920] systemd-journald[1722]: Received SIGTERM from PID 1 (systemd-shutdow). [ 307.322717] systemd-shutdown[1]: Sending SIGKILL to remaining processes... [ 307.336472] systemd-shutdown[1]: Unmounting file systems. [ 307.454202] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro [ 307.480523] systemd-shutdown[1]: All filesystems unmounted. [ 307.486537] systemd-shutdown[1]: Deactivating swaps. [ 307.491962] systemd-shutdown[1]: All swaps deactivated. [ 307.497624] systemd-shutdown[1]: Detaching loop devices. [ 307.504418] systemd-shutdown[1]: All loop devices detached. [ 307.510418] systemd-shutdown[1]: Detaching DM devices. [ 307.565907] sd 2:0:0:0: [sda] Synchronizing SCSI cache [ 307.731313] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 307.738802] #PF: supervisor read access in kernel mode [ 307.744326] #PF: error_code(0x0000) - not-present page [ 307.749850] PGD 0 P4D 0 [ 307.752568] Oops: 0000 [#1] SMP PTI [ 307.756314] CPU: 3 PID: 1 Comm: systemd-shutdow Not tainted 5.2.0-rc1-kfd-yangp #453 [ 307.764644] Hardware name: ASUS All Series/Z97-PRO(Wi-Fi ac)/USB 3.1, BIOS 9001 03/07/2016 [ 307.773580] RIP: 0010:soc15_common_hw_fini+0x33/0xc0 [amdgpu] [ 307.779760] Code: 89 fb e8 60 f5 ff ff f6 83 50 df 01 00 04 75 3d 48 8b b3 90 7d 00 00 48 c7 c7 17 b8 530 [ 307.799967] RSP: 0018:ffffac9483153d40 EFLAGS: 00010286 [ 307.805585] RAX: 0000000000000000 RBX: ffff9eb299da0000 RCX: 0000000000000006 [ 307.813261] RDX: 0000000000000000 RSI: ffff9eb29e3508a0 RDI: ffff9eb29e350000 [ 307.820935] RBP: ffff9eb299da0000 R08: 0000000000000000 R09: 0000000000000000 [ 307.828609] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9eb299dbd1f8 [ 307.836284] R13: ffffffffc04f8368 R14: ffff9eb29cebd130 R15: 0000000000000000 [ 307.843959] FS: 00007f06721c9940(0000) GS:ffff9eb2a18c0000(0000) knlGS:0000000000000000 [ 307.852663] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 307.858842] CR2: 0000000000000000 CR3: 000000081d798005 CR4: 00000000001606e0 [ 307.866516] Call Trace: [ 307.869169] amdgpu_device_ip_suspend_phase2+0x80/0x110 [amdgpu] [ 307.875654] ? amdgpu_device_ip_suspend_phase1+0x4d/0xd0 [amdgpu] [ 307.882230] amdgpu_device_ip_suspend+0x2e/0x60 [amdgpu] [ 307.887966] amdgpu_pci_shutdown+0x2f/0x40 [amdgpu] [ 307.893211] pci_device_shutdown+0x31/0x60 [ 307.897613] device_shutdown+0x14c/0x1f0 [ 307.901829] kernel_restart+0xe/0x50 [ 307.905669] __do_sys_reboot+0x1df/0x210 [ 307.909884] ? task_work_run+0x73/0xb0 [ 307.913914] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 307.918970] do_syscall_64+0x4a/0x1c0 [ 307.922904] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 307.928336] RIP: 0033:0x7f0671cf8373 [ 307.932176] Code: 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 89 fa be 69 19 128 [ 307.952384] RSP: 002b:00007ffdd1723d68 EFLAGS: 00000202 ORIG_RAX: 00000000000000a9 [ 307.960527] RAX: ffffffffffffffda RBX: 0000000001234567 RCX: 00007f0671cf8373 [ 307.968201] RDX: 0000000001234567 RSI: 0000000028121969 RDI: 00000000fee1dead [ 307.975875] RBP: 00007ffdd1723dd0 R08: 0000000000000000 R09: 0000000000000000 [ 307.983550] R10: 0000000000000002 R11: 0000000000000202 R12: 00007ffdd1723dd8 [ 307.991224] R13: 0000000000000000 R14: 0000001b00000004 R15: 00007ffdd17240c8 [ 307.998901] Modules linked in: xt_MASQUERADE nfnetlink iptable_nat xt_addrtype xt_conntrack nf_nat nf_cos [ 308.026505] CR2: 0000000000000000 [ 308.039998] RIP: 0010:soc15_common_hw_fini+0x33/0xc0 [amdgpu] [ 308.046180] Code: 89 fb e8 60 f5 ff ff f6 83 50 df 01 00 04 75 3d 48 8b b3 90 7d 00 00 48 c7 c7 17 b8 530 [ 308.066392] RSP: 0018:ffffac9483153d40 EFLAGS: 00010286 [ 308.072013] RAX: 0000000000000000 RBX: ffff9eb299da0000 RCX: 0000000000000006 [ 308.079689] RDX: 0000000000000000 RSI: ffff9eb29e3508a0 RDI: ffff9eb29e350000 [ 308.087366] RBP: ffff9eb299da0000 R08: 0000000000000000 R09: 0000000000000000 [ 308.095042] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9eb299dbd1f8 [ 308.102717] R13: ffffffffc04f8368 R14: ffff9eb29cebd130 R15: 0000000000000000 [ 308.110394] FS: 00007f06721c9940(0000) GS:ffff9eb2a18c0000(0000) knlGS:0000000000000000 [ 308.119099] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 308.125280] CR2: 0000000000000000 CR3: 000000081d798005 CR4: 00000000001606e0 [ 308.135304] printk: systemd-shutdow: 3 output lines suppressed due to ratelimiting [ 308.143518] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 [ 308.151798] Kernel Offset: 0x15000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xff) [ 308.171775] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 ]--- Signed-off-by: Philip Yang <Philip.Yang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> |
||
---|---|---|
.. | ||
amdgpu.h | ||
amdgpu_acp.c | ||
amdgpu_acp.h | ||
amdgpu_acpi.c | ||
amdgpu_afmt.c | ||
amdgpu_amdkfd.c | ||
amdgpu_amdkfd.h | ||
amdgpu_amdkfd_arcturus.c | ||
amdgpu_amdkfd_fence.c | ||
amdgpu_amdkfd_gfx_v7.c | ||
amdgpu_amdkfd_gfx_v8.c | ||
amdgpu_amdkfd_gfx_v9.c | ||
amdgpu_amdkfd_gfx_v9.h | ||
amdgpu_amdkfd_gfx_v10.c | ||
amdgpu_amdkfd_gpuvm.c | ||
amdgpu_atombios.c | ||
amdgpu_atombios.h | ||
amdgpu_atomfirmware.c | ||
amdgpu_atomfirmware.h | ||
amdgpu_atpx_handler.c | ||
amdgpu_benchmark.c | ||
amdgpu_bios.c | ||
amdgpu_bo_list.c | ||
amdgpu_bo_list.h | ||
amdgpu_cgs.c | ||
amdgpu_connectors.c | ||
amdgpu_connectors.h | ||
amdgpu_cs.c | ||
amdgpu_csa.c | ||
amdgpu_csa.h | ||
amdgpu_ctx.c | ||
amdgpu_ctx.h | ||
amdgpu_debugfs.c | ||
amdgpu_debugfs.h | ||
amdgpu_device.c | ||
amdgpu_discovery.c | ||
amdgpu_discovery.h | ||
amdgpu_display.c | ||
amdgpu_display.h | ||
amdgpu_dma_buf.c | ||
amdgpu_dma_buf.h | ||
amdgpu_doorbell.h | ||
amdgpu_dpm.c | ||
amdgpu_dpm.h | ||
amdgpu_drv.c | ||
amdgpu_drv.h | ||
amdgpu_encoders.c | ||
amdgpu_fb.c | ||
amdgpu_fence.c | ||
amdgpu_gart.c | ||
amdgpu_gart.h | ||
amdgpu_gds.h | ||
amdgpu_gem.c | ||
amdgpu_gem.h | ||
amdgpu_gfx.c | ||
amdgpu_gfx.h | ||
amdgpu_gmc.c | ||
amdgpu_gmc.h | ||
amdgpu_gtt_mgr.c | ||
amdgpu_i2c.c | ||
amdgpu_i2c.h | ||
amdgpu_ib.c | ||
amdgpu_ids.c | ||
amdgpu_ids.h | ||
amdgpu_ih.c | ||
amdgpu_ih.h | ||
amdgpu_ioc32.c | ||
amdgpu_irq.c | ||
amdgpu_irq.h | ||
amdgpu_job.c | ||
amdgpu_job.h | ||
amdgpu_kms.c | ||
amdgpu_mes.h | ||
amdgpu_mmhub.c | ||
amdgpu_mmhub.h | ||
amdgpu_mn.c | ||
amdgpu_mn.h | ||
amdgpu_mode.h | ||
amdgpu_nbio.c | ||
amdgpu_nbio.h | ||
amdgpu_object.c | ||
amdgpu_object.h | ||
amdgpu_pll.c | ||
amdgpu_pll.h | ||
amdgpu_pm.c | ||
amdgpu_pm.h | ||
amdgpu_pmu.c | ||
amdgpu_pmu.h | ||
amdgpu_psp.c | ||
amdgpu_psp.h | ||
amdgpu_ras.c | ||
amdgpu_ras.h | ||
amdgpu_ras_eeprom.c | ||
amdgpu_ras_eeprom.h | ||
amdgpu_ring.c | ||
amdgpu_ring.h | ||
amdgpu_rlc.c | ||
amdgpu_rlc.h | ||
amdgpu_sa.c | ||
amdgpu_sched.c | ||
amdgpu_sched.h | ||
amdgpu_sdma.c | ||
amdgpu_sdma.h | ||
amdgpu_socbb.h | ||
amdgpu_sync.c | ||
amdgpu_sync.h | ||
amdgpu_test.c | ||
amdgpu_trace.h | ||
amdgpu_trace_points.c | ||
amdgpu_ttm.c | ||
amdgpu_ttm.h | ||
amdgpu_ucode.c | ||
amdgpu_ucode.h | ||
amdgpu_umc.h | ||
amdgpu_uvd.c | ||
amdgpu_uvd.h | ||
amdgpu_vce.c | ||
amdgpu_vce.h | ||
amdgpu_vcn.c | ||
amdgpu_vcn.h | ||
amdgpu_vf_error.c | ||
amdgpu_vf_error.h | ||
amdgpu_virt.c | ||
amdgpu_virt.h | ||
amdgpu_vm.c | ||
amdgpu_vm.h | ||
amdgpu_vm_cpu.c | ||
amdgpu_vm_sdma.c | ||
amdgpu_vram_mgr.c | ||
amdgpu_xgmi.c | ||
amdgpu_xgmi.h | ||
arct_reg_init.c | ||
athub_v1_0.c | ||
athub_v1_0.h | ||
athub_v2_0.c | ||
athub_v2_0.h | ||
atom.c | ||
atom.h | ||
atombios_crtc.c | ||
atombios_crtc.h | ||
atombios_dp.c | ||
atombios_dp.h | ||
atombios_encoders.c | ||
atombios_encoders.h | ||
atombios_i2c.c | ||
atombios_i2c.h | ||
cik.c | ||
cik.h | ||
cik_dpm.h | ||
cik_ih.c | ||
cik_ih.h | ||
cik_sdma.c | ||
cik_sdma.h | ||
cikd.h | ||
clearstate_ci.h | ||
clearstate_defs.h | ||
clearstate_gfx9.h | ||
clearstate_gfx10.h | ||
clearstate_si.h | ||
clearstate_vi.h | ||
cz_ih.c | ||
cz_ih.h | ||
dce_v6_0.c | ||
dce_v6_0.h | ||
dce_v8_0.c | ||
dce_v8_0.h | ||
dce_v10_0.c | ||
dce_v10_0.h | ||
dce_v11_0.c | ||
dce_v11_0.h | ||
dce_virtual.c | ||
dce_virtual.h | ||
df_v1_7.c | ||
df_v1_7.h | ||
df_v3_6.c | ||
df_v3_6.h | ||
emu_soc.c | ||
gfx_v6_0.c | ||
gfx_v6_0.h | ||
gfx_v7_0.c | ||
gfx_v7_0.h | ||
gfx_v8_0.c | ||
gfx_v8_0.h | ||
gfx_v9_0.c | ||
gfx_v9_0.h | ||
gfx_v10_0.c | ||
gfx_v10_0.h | ||
gfxhub_v1_0.c | ||
gfxhub_v1_0.h | ||
gfxhub_v1_1.c | ||
gfxhub_v1_1.h | ||
gfxhub_v2_0.c | ||
gfxhub_v2_0.h | ||
gmc_v6_0.c | ||
gmc_v6_0.h | ||
gmc_v7_0.c | ||
gmc_v7_0.h | ||
gmc_v8_0.c | ||
gmc_v8_0.h | ||
gmc_v9_0.c | ||
gmc_v9_0.h | ||
gmc_v10_0.c | ||
gmc_v10_0.h | ||
iceland_ih.c | ||
iceland_ih.h | ||
iceland_sdma_pkt_open.h | ||
Kconfig | ||
kv_dpm.c | ||
kv_dpm.h | ||
kv_smc.c | ||
Makefile | ||
mes_v10_1.c | ||
mes_v10_1.h | ||
mmhub_v1_0.c | ||
mmhub_v1_0.h | ||
mmhub_v2_0.c | ||
mmhub_v2_0.h | ||
mmhub_v9_4.c | ||
mmhub_v9_4.h | ||
mmsch_v1_0.h | ||
mxgpu_ai.c | ||
mxgpu_ai.h | ||
mxgpu_vi.c | ||
mxgpu_vi.h | ||
navi10_ih.c | ||
navi10_ih.h | ||
navi10_reg_init.c | ||
navi10_sdma_pkt_open.h | ||
navi12_reg_init.c | ||
navi14_reg_init.c | ||
nbio_v2_3.c | ||
nbio_v2_3.h | ||
nbio_v6_1.c | ||
nbio_v6_1.h | ||
nbio_v7_0.c | ||
nbio_v7_0.h | ||
nbio_v7_4.c | ||
nbio_v7_4.h | ||
nv.c | ||
nv.h | ||
nvd.h | ||
ObjectID.h | ||
ppsmc.h | ||
psp_gfx_if.h | ||
psp_v3_1.c | ||
psp_v3_1.h | ||
psp_v10_0.c | ||
psp_v10_0.h | ||
psp_v11_0.c | ||
psp_v11_0.h | ||
psp_v12_0.c | ||
psp_v12_0.h | ||
r600_dpm.h | ||
sdma_v2_4.c | ||
sdma_v2_4.h | ||
sdma_v3_0.c | ||
sdma_v3_0.h | ||
sdma_v4_0.c | ||
sdma_v4_0.h | ||
sdma_v5_0.c | ||
sdma_v5_0.h | ||
si.c | ||
si.h | ||
si_dma.c | ||
si_dma.h | ||
si_dpm.c | ||
si_dpm.h | ||
si_enums.h | ||
si_ih.c | ||
si_ih.h | ||
si_smc.c | ||
sid.h | ||
sislands_smc.h | ||
smu_v11_0_i2c.c | ||
smu_v11_0_i2c.h | ||
soc15.c | ||
soc15.h | ||
soc15_common.h | ||
soc15d.h | ||
ta_ras_if.h | ||
ta_xgmi_if.h | ||
tonga_ih.c | ||
tonga_ih.h | ||
tonga_sdma_pkt_open.h | ||
umc_v6_1.c | ||
umc_v6_1.h | ||
uvd_v4_2.c | ||
uvd_v4_2.h | ||
uvd_v5_0.c | ||
uvd_v5_0.h | ||
uvd_v6_0.c | ||
uvd_v6_0.h | ||
uvd_v7_0.c | ||
uvd_v7_0.h | ||
vce_v2_0.c | ||
vce_v2_0.h | ||
vce_v3_0.c | ||
vce_v3_0.h | ||
vce_v4_0.c | ||
vce_v4_0.h | ||
vcn_v1_0.c | ||
vcn_v1_0.h | ||
vcn_v2_0.c | ||
vcn_v2_0.h | ||
vcn_v2_5.c | ||
vcn_v2_5.h | ||
vega10_ih.c | ||
vega10_ih.h | ||
vega10_reg_init.c | ||
vega10_sdma_pkt_open.h | ||
vega20_reg_init.c | ||
vi.c | ||
vi.h | ||
vid.h |