System freezes on Shutdown [amdgpu] [drm]

Andrey Grodzovsky Andrey.Grodzovsky at amd.com
Mon Aug 27 16:54:23 UTC 2018


Looks like you resume from suspend went bad and hence you have latter 
trouble in shutting down.

Please open FDO ticket for this (https://bugs.freedesktop.org/) + attach 
full dmesg log without grep.

S3 was working before so looks like regression.

Try maybe 4.17  kernel and if you find it working you can try bisecting.

Andrey


On 08/26/2018 04:32 AM, John Smith wrote:
> Common shutdown seems to be ok. After any suspend (pressing stand-by button or close lit), I am not able to shutdown successful. The system hangs on shutdown.
>
> First some hw-info, then the bad error log. Please let me know, if you need further infos.
>
> Best, john.
>
>> inxi -Fx
> System:    Host: bang Kernel: 4.18.0-ARCH+ x86_64 bits: 64 compiler: gcc v: 8.2.0 Desktop: Gnome 3.28.3
>             Distro: Arch Linux
> Machine:   Type: Laptop System: HP product: HP ZBook 15u G5 v: N/A serial: N/A
>             Mobo: HP model: 83B2 v: KBC Version 04.45.00 serial: N/A UEFI: HP v: Q78 Ver. 01.00.05
>             date: 01/25/2018
> Battery:   ID-1: BAT0 charge: 46.3 Wh condition: 53.9/53.9 Wh (100%) model: Hewlett-Packard Primary
>             status: Discharging
> CPU:       Topology: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP arch: Kaby Lake rev: 10
>             L2 cache: 8192 KiB
>             flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 31880
>             Speed: 800 MHz min/max: 400/4000 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800
>             7: 800 8: 800
> Graphics:  Card-1: Intel UHD Graphics 620 driver: i915 v: kernel bus ID: 00:02.0
>             Card-2: Advanced Micro Devices [AMD/ATI] Lexa XT [Radeon PRO WX 3100] driver: amdgpu v: kernel
>             bus ID: 01:00.0
>             Display: wayland server: X.Org 1.20.1 driver: amdgpu resolution: 1920x1080~60Hz
>             OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) v: 4.5 Mesa 18.1.6
>             direct render: Yes
> Audio:     Card-1: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel v: kernel bus ID: 00:1f.3
>             Sound Server: ALSA v: k4.18.0-ARCH+
> Network:   Card-1: Intel Ethernet Connection I219-V driver: e1000e v: 3.2.6-k port: N/A bus ID: 00:1f.6
>             IF: enp0s31f6 state: down mac: b4:b6:86:1c:73:17
>             Card-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel bus ID: 02:00.0
>             IF: wlp2s0 state: up mac: 00:1c:bf:fe:24:0f
> Drives:    HDD Total Size: 476.94 GiB used: 41.80 GiB (8.8%)
>             ID-1: /dev/nvme0n1 model: KXG50ZNV512G_TOSHIBA size: 476.94 GiB
> Partition: ID-1: / size: 48.97 GiB used: 17.92 GiB (36.6%) fs: ext4 dev: /dev/nvme0n1p3
>             ID-2: /boot size: 2.00 GiB used: 130.6 MiB (6.4%) fs: vfat dev: /dev/nvme0n1p1
>             ID-3: /home size: 415.30 GiB used: 23.75 GiB (5.7%) fs: ext4 dev: /dev/nvme0n1p4
>             ID-4: swap-1 size: 2.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p2
> Sensors:   System Temperatures: cpu: 42.0 C mobo: N/A gpu: amdgpu temp: 37 C
>             Fan Speeds (RPM): N/A
> Info:      Processes: 259 Uptime: 15m Memory: 15.52 GiB used: 1.95 GiB (12.6%) Init: systemd Compilers:
>             gcc: 8.2.0 clang: 6.0.1 Shell: bash v: 4.4.23 inxi: 3.0.07
>
>
>> uname -a
> Linux bang 4.18.0-ARCH+ #1 SMP PREEMPT Fri Aug 24 18:37:45 CEST 2018 x86_64 GNU/Linux
>
>> dmesg | grep amdgpu
> [    4.110050] [drm] amdgpu kernel modesetting enabled.
> [    4.125300] amdgpu 0000:01:00.0: enabling device (0006 -> 0007)
> [    4.125687] amdgpu 0000:01:00.0: kfd not supported on this ASIC
> [    4.155751] amdgpu 0000:01:00.0: BAR 2: releasing [mem 0xd0000000-0xd01fffff 64bit pref]
> [    4.155752] amdgpu 0000:01:00.0: BAR 0: releasing [mem 0xc0000000-0xcfffffff 64bit pref]
> [    4.155762] amdgpu 0000:01:00.0: BAR 0: assigned [mem 0xc0000000-0xcfffffff 64bit pref]
> [    4.155771] amdgpu 0000:01:00.0: BAR 2: assigned [mem 0xd0000000-0xd01fffff 64bit pref]
> [    4.155807] amdgpu 0000:01:00.0: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
> [    4.155808] amdgpu 0000:01:00.0: GART: 256M 0x0000000000000000 - 0x000000000FFFFFFF
> [    4.155925] [drm] amdgpu: 2048M of VRAM memory ready
> [    4.155926] [drm] amdgpu: 3072M of GTT memory ready.
> [    4.223253] amdgpu: [powerplay] Voltage value looks like a Leakage ID but it's not patched
> [    4.224590] amdgpu: [powerplay] Voltage value looks like a Leakage ID but it's not patched
> [    4.225873] amdgpu: [powerplay] Voltage value looks like a Leakage ID but it's not patched
> [    4.226831] amdgpu: [powerplay] Voltage value looks like a Leakage ID but it's not patched
> [    4.227538] amdgpu: [powerplay] Voltage value looks like a Leakage ID but it's not patched
> [    4.228249] amdgpu: [powerplay] Voltage value looks like a Leakage ID but it's not patched
> [    4.228950] amdgpu: [powerplay] Voltage value looks like a Leakage ID but it's not patched
> [    4.249592] amdgpu: [powerplay] Failed to retrieve minimum clocks.
> [    4.249593] amdgpu: [powerplay] Error in phm_get_clock_info
> [    4.249714] [drm:dc_create [amdgpu]] *ERROR* DC: Number of connectors is zero!
> [    4.405530] [drm] Initialized amdgpu 3.27.0 20150101 for 0000:01:00.0 on minor 1
> [   17.997201] amdgpu 0000:01:00.0: GPU pci config reset
>
>> dmesg | grep drm
> [    1.843759] fb: switching to inteldrmfb from EFI VGA
> [    1.843925] [drm] Replacing VGA console driver
> [    1.845633] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> [    1.845636] [drm] Driver supports precise vblank timestamp query.
> [    1.846954] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
> [    1.855003] [drm] Initialized i915 1.6.0 20180719 for 0000:00:02.0 on minor 0
> [    1.866752] fbcon: inteldrmfb (fb0) is primary device
> [    2.986383] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
> [    4.110050] [drm] amdgpu kernel modesetting enabled.
> [    4.125514] [drm] initializing kernel modesetting (POLARIS12 0x1002:0x6985 0x103C:0x83B5 0x00).
> [    4.125664] [drm] register mmio base: 0xEA300000
> [    4.125664] [drm] register mmio size: 262144
> [    4.125678] [drm] add ip block number 0 <vi_common>
> [    4.125679] [drm] add ip block number 1 <gmc_v8_0>
> [    4.125680] [drm] add ip block number 2 <tonga_ih>
> [    4.125681] [drm] add ip block number 3 <powerplay>
> [    4.125682] [drm] add ip block number 4 <dm>
> [    4.125683] [drm] add ip block number 5 <gfx_v8_0>
> [    4.125684] [drm] add ip block number 6 <sdma_v3_0>
> [    4.125685] [drm] add ip block number 7 <uvd_v6_0>
> [    4.125685] [drm] add ip block number 8 <vce_v3_0>
> [    4.125701] [drm] UVD is enabled in VM mode
> [    4.125702] [drm] UVD ENC is enabled in VM mode
> [    4.125705] [drm] VCE enabled in VM mode
> [    4.133797] [drm] GPU posting now...
> [    4.154694] [drm] vm size is 64 GB, 2 levels, block size is 10-bit, fragment size is 9-bit
> [    4.155814] [drm] Detected VRAM RAM=2048M, BAR=256M
> [    4.155815] [drm] RAM width 128bits GDDR5
> [    4.155925] [drm] amdgpu: 2048M of VRAM memory ready
> [    4.155926] [drm] amdgpu: 3072M of GTT memory ready.
> [    4.155934] [drm] GART: num cpu pages 65536, num gpu pages 65536
> [    4.155992] [drm] PCIE GART of 256M enabled (table at 0x000000F400000000).
> [    4.156827] [drm] Chained IB support enabled!
> [    4.160391] [drm] Found UVD firmware Version: 1.130 Family ID: 16
> [    4.163007] [drm] Found VCE firmware Version: 53.26 Binary ID: 3
> [    4.249623] [drm] DM_PPLIB: values for Engine clock
> [    4.249624] [drm] DM_PPLIB:	 214000
> [    4.249624] [drm] DM_PPLIB:	 372000
> [    4.249624] [drm] DM_PPLIB:	 551000
> [    4.249625] [drm] DM_PPLIB:	 734000
> [    4.249625] [drm] DM_PPLIB:	 921000
> [    4.249625] [drm] DM_PPLIB:	 980000
> [    4.249626] [drm] DM_PPLIB:	 1018000
> [    4.249626] [drm] DM_PPLIB:	 1046000
> [    4.249627] [drm] DM_PPLIB: Validation clocks:
> [    4.249627] [drm] DM_PPLIB:    engine_max_clock: 104600
> [    4.249627] [drm] DM_PPLIB:    memory_max_clock: 150000
> [    4.249628] [drm] DM_PPLIB:    level           : 8
> [    4.249629] [drm] DM_PPLIB: values for Memory clock
> [    4.249629] [drm] DM_PPLIB:	 300000
> [    4.249629] [drm] DM_PPLIB:	 625000
> [    4.249630] [drm] DM_PPLIB:	 1500000
> [    4.249630] [drm] DM_PPLIB: Validation clocks:
> [    4.249630] [drm] DM_PPLIB:    engine_max_clock: 104600
> [    4.249631] [drm] DM_PPLIB:    memory_max_clock: 150000
> [    4.249631] [drm] DM_PPLIB:    level           : 8
> [    4.249714] [drm:dc_create [amdgpu]] *ERROR* DC: Number of connectors is zero!
> [    4.251266] [drm] Display Core initialized with v3.1.59!
> [    4.251297] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
> [    4.251297] [drm] Driver supports precise vblank timestamp query.
> [    4.300452] [drm] UVD and UVD ENC initialized successfully.
> [    4.401393] [drm] VCE initialized successfully.
> [    4.405530] [drm] Initialized amdgpu 3.27.0 20150101 for 0000:01:00.0 on minor 1
> [  921.535708] [drm] PCIE GART of 256M enabled (table at 0x000000F400000000).
> [  921.662850] [drm] UVD and UVD ENC initialized successfully.
> [  921.801800] [drm] VCE initialized successfully.
>
>
>
> This is the bad output: Shutdown after pressing stand-by button:
>
> [  294.651066] [drm:gfx_v8_0_hw_fini [amdgpu]] *ERROR* KCQ disabled failed (scratch(0xC040)=0xCAFEDEAD)
>
>
> This is the bad output: Closing the lit:
>
> [   71.696123] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: ring 0 test failed (scratch(0xC040)=0xCAFEDEAD)
> [   71.696378] [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <gfx_v8_0> failed -22
> [   71.696421] [drm:amdgpu_device_resume [amdgpu]] *ERROR* amdgpu_device_ip_resume failed (-22).
> [   87.431032] [drm:gfx_v8_0_hw_fini [amdgpu]] *ERROR* KCQ disabled failed (scratch(0xC040)=0xCAFEDEAD)
> [   87.521991] [drm:gfx_v8_0_hw_fini [amdgpu]] *ERROR* KCQ disabled failed (scratch(0xC040)=0xCAFEDEAD)
>
>
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx



More information about the amd-gfx mailing list