Linux 5.7-rc1 reboot/poweroff hangs
Hi Linus,
Linux 5.7-rc1 reboot/powereoff hangs on AMD Ryzen 5 PRO 2400GE system.
I isolated the commit to:
Revering the following commit fixes the problem.
commit 487eca11a321ef33bcf4ca5adb3c0c4954db1b58
Author: Prike Liang <[email protected]> Date: Tue Apr 7 20:21:26 2020 +0800
drm/amdgpu: fix gfx hang during suspend with video playback (v2)
The system will be hang up during S3 suspend because of SMU is pending for GC not respose the register CP_HQD_ACTIVE access request.This issue root cause of accessing the GC register under enter GFX CGGPG and can be fixed by disable GFX CGPG before perform suspend.
v2: Use disable the GFX CGPG instead of RLC safe mode guard.
I did the bisect on Linux 5.6.5-rc1
git bisect start
# good: [0a27a29496060843ae3a8fe78aaec0062cbd5dfa] Linux 5.6.4
git bisect good 0a27a29496060843ae3a8fe78aaec0062cbd5dfa
# bad: [576aa353744ce5f1279071363e4a55e97f486f39] Linux 5.6.5-rc1
git bisect bad 576aa353744ce5f1279071363e4a55e97f486f39
# good: [7509db5d111a5763a199902052eecc480e0ec724] x86/tsc_msr: Make MSR derived TSC frequency more accurate git bisect good 7509db5d111a5763a199902052eecc480e0ec724
# good: [15f1ead7d7966d087352ba2cf81a1759b25ad163] scsi: lpfc: Fix broken Credit Recovery after driver load
git bisect good 15f1ead7d7966d087352ba2cf81a1759b25ad163
# good: [9e52b4ab5fadd803c8c2e617aa8c151720757fb1] s390/diag: fix display of diagnose call statistics
git bisect good 9e52b4ab5fadd803c8c2e617aa8c151720757fb1
# good: [3e1e6903924fd6c95db7e46c5baa41dfa0f46fdb] powerpc/hash64/devmap: Use H_PAGE_THP_HUGE when setting up huge devmap PTE entries git bisect good 3e1e6903924fd6c95db7e46c5baa41dfa0f46fdb
# good: [0344e0fee2f904ebce1d58bec8ace3ee9cf5f777] drm/dp_mst: Fix clearing payload state on topology disable git bisect good 0344e0fee2f904ebce1d58bec8ace3ee9cf5f777
# bad: [136881c0420bb52d5f21f75688f5aee1cf401737] perf/core: Unify {pinned,flexible}_sched_in()
git bisect bad 136881c0420bb52d5f21f75688f5aee1cf401737
# bad: [0d928b424b99cfe0e7806c530f6039a053d5082d] drm/i915/ggtt: do not set bits 1-11 in gen12 ptes
git bisect bad 0d928b424b99cfe0e7806c530f6039a053d5082d
# bad: [a655a99c9f6a1d819d695fca6d48b450449f45ee] drm/amdgpu: fix gfx hang during suspend with video playback (v2) git bisect bad a655a99c9f6a1d819d695fca6d48b450449f45ee
# first bad commit: [a655a99c9f6a1d819d695fca6d48b450449f45ee] drm/amdgpu: fix gfx hang during suspend with video playback (v2)
thanks,
-- Shuah
Quoted 13 lines · Shuah Khan
Hi Linus,
Linux 5.7-rc1 reboot/powereoff hangs on AMD Ryzen 5 PRO 2400GE system.
I isolated the commit to:
Revering the following commit fixes the problem.
commit
487eca11a321ef33bcf4ca5adb3c0c4954db1b58
Author: Prike Liang <[email protected]>
Date: Tue Apr 7 20:21:26 2020 +0800
Quoted 8 lines
drm/amdgpu: fix gfx hang during suspend with video playback (v2)
The system will be hang up during S3 suspend because of SMU is pending for GC not respose the register
CP_HQD_ACTIVEaccess request.This issue root cause of accessing the GC register under enter GFX CGGPG and can be fixed by disable GFX CGPG before perform suspend.
I can send a revert, however it appears this is a fix for a suspend hang.
thanks,
-- Shuah
[AMD Official Use Only - Internal Distribution Only]
Quoted 10 lines
-----Original Message-----
From: Shuah Khan <[email protected]>
Sent: Friday, April 17, 2020 2:06 PM
To: Linus Torvalds <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>; Shuah Khan <[email protected]>; LKML <[email protected]>; Liang, Prike <[email protected]>; Deucher, Alexander <[email protected]>; stable <[email protected]>
Subject: Linux 5.7-rc1 reboot/poweroff hangs
Quoted 7 lines
Hi Linus,
Linux 5.7-rc1 reboot/powereoff hangs on AMD Ryzen 5 PRO 2400GE system.
I isolated the commit to:
Revering the following commit fixes the problem.
The fix is already sent out in my -fixes pull for this week:
https://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-fixes-5.7&id=b2a7e9735ab2864330be9d00d7f38c961c28de5d
Alex
Quoted 60 lines
commit
487eca11a321ef33bcf4ca5adb3c0c4954db1b58Author: Prike Liang <[email protected]> Date: Tue Apr 7 20:21:26 2020 +0800drm/amdgpu: fix gfx hang during suspend with video playback (v2)
The system will be hang up during S3 suspend because of SMU is pending for GC not respose the register
CP_HQD_ACTIVEaccess request.This issue root cause of accessing the GC register under enter GFX CGGPG and can be fixed by disable GFX CGPG before perform suspend.v2: Use disable the GFX CGPG instead of RLC safe mode guard.
Signed-off-by Prike Liang <[email protected]>Tested-by Mengbing Wang <[email protected]>Reviewed-by Huang Rui <[email protected]>Signed-off-by Alex Deucher <[email protected]>I did the bisect on Linux 5.6.5-rc1
git bisect start
# good: [0a27a29496060843ae3a8fe78aaec0062cbd5dfa] Linux 5.6.4 git bisect good0a27a29496060843ae3a8fe78aaec0062cbd5dfa
# bad: [576aa353744ce5f1279071363e4a55e97f486f39] Linux 5.6.5-rc1 git bisect bad576aa353744ce5f1279071363e4a55e97f486f39
# good: [7509db5d111a5763a199902052eecc480e0ec724] x86/tsc_msr: Make MSR derived TSC frequency more accurate git bisect good7509db5d111a5763a199902052eecc480e0ec724
# good: [15f1ead7d7966d087352ba2cf81a1759b25ad163] scsi: lpfc: Fix broken Credit Recovery after driver load git bisect good15f1ead7d7966d087352ba2cf81a1759b25ad163
# good: [9e52b4ab5fadd803c8c2e617aa8c151720757fb1] s390/diag: fix display of diagnose call statistics git bisect good9e52b4ab5fadd803c8c2e617aa8c151720757fb1
# good: [3e1e6903924fd6c95db7e46c5baa41dfa0f46fdb] powerpc/hash64/devmap: UseH_PAGE_THP_HUGEwhen setting up huge devmap PTE entries git bisect good3e1e6903924fd6c95db7e46c5baa41dfa0f46fdb
# good: [0344e0fee2f904ebce1d58bec8ace3ee9cf5f777] drm/dp_mst: Fix clearing payload state on topology disable git bisect good0344e0fee2f904ebce1d58bec8ace3ee9cf5f777
# bad: [136881c0420bb52d5f21f75688f5aee1cf401737] perf/core: Unify {pinned,flexible}_sched_in()
git bisect bad136881c0420bb52d5f21f75688f5aee1cf401737
# bad: [0d928b424b99cfe0e7806c530f6039a053d5082d] drm/i915/ggtt: do not set bits 1-11 in gen12 ptes git bisect bad0d928b424b99cfe0e7806c530f6039a053d5082d
# bad: [a655a99c9f6a1d819d695fca6d48b450449f45ee] drm/amdgpu: fix gfx hang during suspend with video playback (v2) git bisect bada655a99c9f6a1d819d695fca6d48b450449f45ee# first bad commit: [a655a99c9f6a1d819d695fca6d48b450449f45ee] drm/amdgpu: fix gfx hang during suspend with video playback (v2)thanks,
-- Shuah