Philip Yang
cde85ac247
drm/amdgpu: check if nbio->ras_if exist
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>
2019-09-16 09:58:52 -05:00
..
2019-06-10 23:00:01 +02:00
2016-10-25 14:38:45 -04:00
2019-06-10 23:02:48 +02:00
2019-06-10 23:02:48 +02:00
2019-07-31 14:32:56 -05:00
2019-01-14 15:04:29 -05:00
2019-06-14 11:44:24 +02:00
2019-06-14 11:44:24 +02:00
2019-08-15 10:57:48 -05:00
2019-07-18 14:18:07 -05:00
2019-08-15 10:57:55 -05:00
2019-09-13 17:36:08 -05:00
2019-09-16 09:55:50 -05:00
2019-09-13 17:49:45 -05:00
2019-06-10 23:02:48 +02:00
2017-12-18 10:58:35 -05:00
2019-06-25 08:42:25 -05:00
2019-03-19 15:36:51 -05:00
2019-08-27 10:09:12 -05:00
2019-06-10 23:02:48 +02:00
2019-06-10 23:02:48 +02:00
2019-06-14 11:44:24 +02:00
2019-05-24 12:21:02 -05:00
2019-06-10 23:02:48 +02:00
2019-07-31 16:35:37 +02:00
2015-06-03 21:03:15 -04:00
2019-09-13 17:41:05 -05:00
2019-06-21 18:57:40 -05:00
2018-11-05 14:21:50 -05:00
2019-08-23 11:30:32 -05:00
2019-08-23 11:30:32 -05:00
2019-07-31 01:26:09 -05:00
2019-06-21 18:58:21 -05:00
2019-09-16 09:55:41 -05:00
2019-07-11 14:37:24 -05:00
2019-06-21 18:58:21 -05:00
2019-08-21 16:44:41 +10:00
2019-07-30 23:48:32 -05:00
2019-08-21 16:44:41 +10:00
2019-07-31 10:19:23 +02:00
2019-07-18 14:18:05 -05:00
2019-06-25 08:42:25 -05:00
2019-06-21 18:59:25 -05:00
2019-09-16 09:54:25 -05:00
2015-08-17 16:50:21 -04:00
2019-06-10 23:02:48 +02:00
2019-07-30 23:48:32 -05:00
2019-06-25 08:42:25 -05:00
2019-08-15 10:59:17 -05:00
2018-11-05 14:21:16 -05:00
2019-08-12 12:47:47 -05:00
2019-08-21 16:44:41 +10:00
2019-08-13 09:09:30 +02:00
2019-09-13 17:41:42 -05:00
2019-09-13 17:41:42 -05:00
2019-09-13 17:41:36 -05:00
2019-09-13 17:41:36 -05:00
2019-06-10 23:02:48 +02:00
2019-06-10 23:02:48 +02:00
2016-09-27 13:00:52 -04:00
2019-06-25 08:42:25 -05:00
2019-08-21 16:44:41 +10:00
2019-08-13 09:09:30 +02:00
2019-06-10 23:02:48 +02:00
2019-03-19 15:36:58 -05:00
2019-06-10 23:02:48 +02:00
2019-09-16 09:54:14 -05:00
2019-02-13 17:47:11 -05:00
2019-09-13 17:41:05 -05:00
2019-09-13 17:41:05 -05:00
2019-09-13 17:41:05 -05:00
2019-06-21 18:59:28 -05:00
2019-09-13 17:41:55 -05:00
2019-09-13 17:41:55 -05:00
2019-08-13 09:09:30 +02:00
2019-07-08 13:55:00 -05:00
2019-05-24 12:25:56 -05:00
2019-09-13 17:42:02 -05:00
2019-09-13 17:42:02 -05:00
2019-08-27 17:22:15 +10:00
2019-08-21 16:44:41 +10:00
2019-06-10 23:02:48 +02:00
2015-06-03 21:03:15 -04:00
2019-08-29 15:52:32 -05:00
2019-06-13 13:59:48 -05:00
2019-06-20 11:36:22 -05:00
2019-06-20 11:36:22 -05:00
2019-09-16 09:56:01 -05:00
2019-08-21 22:16:45 -05:00
2019-09-13 17:50:19 -05:00
2019-08-27 08:17:14 -05:00
2019-09-13 17:50:47 -05:00
2019-09-13 17:50:47 -05:00
2019-06-25 08:42:25 -05:00
2019-07-18 14:18:05 -05:00
2018-11-09 16:29:12 -05:00
2019-06-20 21:46:49 -05:00
2019-06-10 23:02:48 +02:00
2019-06-10 22:59:53 +02:00
2019-06-10 23:00:08 +02:00
2019-09-13 17:41:49 -05:00
2019-09-13 17:41:49 -05:00
2019-06-21 18:59:34 -05:00
2019-08-13 09:09:30 +02:00
2019-08-13 09:09:30 +02:00
2019-06-10 23:02:48 +02:00
2019-06-10 23:02:48 +02:00
2019-06-10 23:00:08 +02:00
2019-09-13 17:50:47 -05:00
2019-08-21 16:44:41 +10:00
2019-08-21 22:15:28 -05:00
2019-08-02 10:30:39 -05:00
2019-08-09 11:17:10 -05:00
2019-08-13 09:09:30 +02:00
2018-11-26 15:47:34 -05:00
2019-06-19 12:07:29 +02:00
2019-01-25 16:15:35 -05:00
2019-08-22 17:48:46 -05:00
2019-07-30 23:48:32 -05:00
2017-10-20 13:28:44 -04:00
2017-09-28 16:03:20 -04:00
2019-08-02 10:17:21 -05:00
2019-08-02 10:17:21 -05:00
2019-03-27 22:40:50 -05:00
2019-08-06 08:21:54 +02:00
2019-09-13 17:38:38 -05:00
2019-09-13 17:38:47 -05:00
2019-09-13 17:38:47 -05:00
2019-07-30 23:22:34 -05:00
2019-05-24 12:20:48 -05:00
2019-09-16 09:55:41 -05:00
2019-09-13 17:42:08 -05:00
2019-08-12 12:47:48 -05:00
2019-08-12 12:47:48 -05:00
2019-08-12 12:47:47 -05:00
2019-06-20 21:35:29 -05:00
2019-01-14 10:58:37 +01:00
2019-06-10 23:00:01 +02:00
2019-06-10 23:04:34 +02:00
2016-05-04 20:23:53 -04:00
2019-06-10 23:04:34 +02:00
2015-06-03 21:03:15 -04:00
2019-06-10 23:04:34 +02:00
2018-03-14 15:39:51 -05:00
2019-06-10 23:04:34 +02:00
2016-07-14 16:39:35 -04:00
2019-01-25 16:15:36 -05:00
2019-06-10 23:04:34 +02:00
2016-10-25 14:38:45 -04:00
2019-06-10 23:04:34 +02:00
2016-10-25 14:38:45 -04:00
2019-07-30 23:24:06 -05:00
2018-11-28 15:55:32 -05:00
2017-11-27 18:29:47 -05:00
2015-06-03 21:03:17 -04:00
2017-12-13 17:28:08 -05:00
2019-06-20 21:16:37 -05:00
2017-01-27 12:20:41 -05:00
2015-06-03 21:03:17 -04:00
2019-06-10 23:04:34 +02:00
2016-10-25 14:38:45 -04:00
2019-08-12 12:47:47 -05:00
2016-10-25 14:38:45 -04:00
2019-08-12 12:47:47 -05:00
2016-10-25 14:38:45 -04:00
2019-08-12 12:47:47 -05:00
2016-10-25 14:38:45 -04:00
2019-08-12 12:47:47 -05:00
2016-10-25 14:38:45 -04:00
2019-08-29 15:52:32 -05:00
2016-10-25 14:38:45 -04:00
2019-09-13 17:42:15 -05:00
2018-04-11 13:07:54 -05:00
2019-09-13 17:42:15 -05:00
2019-06-20 11:35:45 -05:00
2018-02-19 14:19:49 -05:00
2019-07-16 13:08:38 -05:00
2016-10-25 14:38:45 -04:00
2019-08-09 13:07:28 -05:00
2017-05-31 16:48:48 -04:00
2019-08-09 13:07:28 -05:00
2017-05-31 16:48:48 -04:00
2019-09-13 17:41:42 -05:00
2017-08-15 14:46:13 -04:00
2019-09-13 17:11:03 -05:00
2019-06-21 18:59:23 -05:00
2019-09-16 09:54:34 -05:00
2018-11-05 14:21:24 -05:00
2018-09-10 22:47:34 -05:00
2018-09-10 22:46:22 -05:00
2019-09-16 09:54:34 -05:00
2019-06-20 21:35:29 -05:00
2019-08-23 11:35:25 -05:00
2016-10-25 14:38:45 -04:00
2019-08-23 11:35:25 -05:00
2016-10-25 14:38:45 -04:00
2019-08-23 11:35:25 -05:00
2016-10-25 14:38:45 -04:00
2019-09-13 17:50:40 -05:00
2019-07-18 14:18:04 -05:00
2019-09-13 17:11:03 -05:00
2019-06-20 21:35:29 -05:00
2019-06-10 23:04:34 +02:00
2016-10-25 14:38:45 -04:00
2015-09-02 12:21:35 -04:00
2019-07-15 19:04:27 -07:00
2019-06-10 23:04:34 +02:00
2015-06-03 21:03:17 -04:00
2019-06-10 23:04:34 +02:00
2019-09-13 17:42:02 -05:00
2019-06-25 08:42:25 -05:00
2019-07-08 13:56:02 -05:00
2019-09-16 09:54:34 -05:00
2019-08-12 12:47:48 -05:00
2019-09-16 09:54:34 -05:00
2019-06-20 21:35:29 -05:00
2019-09-16 09:54:34 -05:00
2019-08-12 12:47:49 -05:00
2017-04-28 17:32:57 -04:00
2019-08-02 10:17:21 -05:00
2019-05-06 09:36:48 -05:00
2019-04-19 11:33:27 -05:00
2017-09-26 15:14:12 -04:00
2019-09-13 17:11:03 -05:00
2019-06-20 21:35:30 -05:00
2019-08-06 13:53:05 -05:00
2019-06-20 21:16:38 -05:00
2019-08-02 10:30:39 -05:00
2019-08-06 13:53:05 -05:00
2019-09-13 17:11:03 -05:00
2019-09-13 17:11:03 -05:00
2019-09-13 17:11:03 -05:00
2019-09-13 17:11:03 -05:00
2019-09-13 17:11:03 -05:00
2019-09-13 17:11:03 -05:00
2019-09-13 17:42:02 -05:00
2019-09-13 17:11:03 -05:00
2019-09-13 17:11:03 -05:00
2019-08-02 10:30:39 -05:00
2019-06-20 21:16:38 -05:00
2018-06-15 12:20:42 -05:00
2016-07-15 12:33:31 -04:00
2019-08-02 10:30:39 -05:00
2019-08-21 22:16:37 -05:00
2018-02-19 14:18:31 -05:00
2019-08-21 22:16:37 -05:00
2018-02-19 14:18:31 -05:00
2019-09-13 17:49:02 -05:00
2018-08-27 11:10:34 -05:00
2019-08-21 22:16:37 -05:00
2019-08-12 12:47:50 -05:00
2016-08-31 15:21:09 -04:00
2019-06-10 23:04:34 +02:00
2016-10-25 14:38:45 -04:00
2019-06-10 23:04:34 +02:00
2016-10-25 14:38:45 -04:00
2019-09-13 17:41:49 -05:00
2017-03-29 23:54:45 -04:00
2019-09-13 17:11:03 -05:00
2019-06-21 18:58:21 -05:00
2019-06-10 23:04:34 +02:00
2016-10-25 14:38:45 -04:00
2019-06-10 23:04:34 +02:00
2018-03-15 09:57:50 -05:00
2018-08-27 11:10:19 -05:00
2019-06-10 23:04:34 +02:00
2016-10-25 14:38:45 -04:00
2019-06-10 23:04:34 +02:00
2019-08-29 15:52:32 -05:00
2018-02-19 14:18:08 -05:00
2018-08-27 11:10:19 -05:00
2016-09-28 16:13:17 -04:00
2019-09-13 17:50:10 -05:00
2019-08-27 09:17:35 -05:00
2019-08-02 10:17:21 -05:00
2019-09-16 09:58:52 -05:00
2019-07-18 14:18:02 -05:00
2018-06-15 12:20:34 -05:00
2019-06-11 11:51:28 -05:00
2018-11-06 14:02:41 -05:00
2019-06-10 23:04:34 +02:00
2016-10-25 14:38:45 -04:00
2015-09-02 12:21:35 -04:00
2019-09-13 17:50:40 -05:00
2019-08-02 10:30:38 -05:00
2019-06-14 11:44:24 +02:00
2016-10-25 14:38:45 -04:00
2019-06-14 11:44:24 +02:00
2016-10-25 14:38:45 -04:00
2019-06-19 12:07:29 +02:00
2016-10-25 14:38:45 -04:00
2019-07-18 14:18:01 -05:00
2017-03-29 23:54:47 -04:00
2019-06-14 11:44:24 +02:00
2016-10-25 14:38:45 -04:00
2019-06-14 11:44:24 +02:00
2016-10-25 14:38:45 -04:00
2019-07-18 14:18:01 -05:00
2017-03-29 23:54:47 -04:00
2019-07-18 14:18:05 -05:00
2017-05-24 17:41:27 -04:00
2019-09-13 17:11:03 -05:00
2019-07-18 14:18:04 -05:00
2019-09-13 17:11:03 -05:00
2019-07-18 14:18:05 -05:00
2019-09-13 17:11:03 -05:00
2017-03-29 23:54:46 -04:00
2019-08-12 12:47:50 -05:00
2017-03-29 23:54:30 -04:00
2019-07-31 14:48:51 -05:00
2019-07-30 23:24:10 -05:00
2018-11-28 15:55:32 -05:00
2017-11-01 19:22:00 -04:00