Regression: drm/amd: Stop evicting resources on APUs in suspend breaks hibernate/resume on r9 390x
I've bisected because I get these:
amdgpu 0000:01:00.0: [drm:amdgpu_ring_test_helper] *ERROR* ring comp_1.0.0 test failed (-110)
amdgpu 0000:01:00.0: [drm:amdgpu_ring_test_helper] *ERROR* ring comp_1.0.1 test failed (-110)
amdgpu 0000:01:00.0: [drm:amdgpu_ring_test_helper] *ERROR* ring comp_1.0.2 test failed (-110)
amdgpu 0000:01:00.0: amdgpu: SRBM_SOFT_RESET=0x00100040
[drm] UVD initialized successfully.
[drm] VCE initialized successfully.
[...]
[drm] scheduler comp_1.0.0 is not ready, skipping
[drm] scheduler comp_1.0.1 is not ready, skipping
[drm] scheduler comp_1.0.2 is not ready, skipping
[drm] scheduler comp_1.0.0 is not ready, skipping
[drm] scheduler comp_1.0.1 is not ready, skipping
[drm] scheduler comp_1.0.2 is not ready, skipping
[drm] scheduler comp_1.0.0 is not ready, skipping
[drm] scheduler comp_1.0.1 is not ready, skipping
[drm] scheduler comp_1.0.2 is not ready, skipping
[drm] scheduler comp_1.0.0 is not ready, skipping
[drm] scheduler comp_1.0.1 is not ready, skipping
[drm] scheduler comp_1.0.2 is not ready, skipping
bisect.log:
# Status: warte auf guten und schlechten Commit
# good: [004dcea13dc10acaf1486d9939be4c793834c13c] Linux 6.7.5
git bisect good 004dcea13dc10acaf1486d9939be4c793834c13c
# Status: warte auf schlechten Commit, 1 guter Commit bekannt
# bad: [e8f897f4afef0031fe618a8e94127a0934896aba] Linux 6.8
git bisect bad e8f897f4afef0031fe618a8e94127a0934896aba
# good: [0dd3ee31125508cd67f7e7172247f05b7fd1753a] Linux 6.7
git bisect good 0dd3ee31125508cd67f7e7172247f05b7fd1753a
# good: [cf65598d5909acf5e7b7dc9e21786e386356bc81] Merge tag 'drm-next-2024-01-10' of git://anongit.freedesktop.org/drm/drm
git bisect good cf65598d5909acf5e7b7dc9e21786e386356bc81
# good: [378de6df19800dc2c18c355c8c2c5528f98e879a] Merge tag 'rtc-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux
git bisect good 378de6df19800dc2c18c355c8c2c5528f98e879a
# good: [bdda52cc664caaf030fdaf51dd715ef5d1f14a26] Merge tag 'i2c-for-6.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
git bisect good bdda52cc664caaf030fdaf51dd715ef5d1f14a26
# bad: [4ece8fc439c370b1aec26a44b9f94fb214068d42] drm/tests/buddy: fix print format
git bisect bad 4ece8fc439c370b1aec26a44b9f94fb214068d42
# bad: [87adedeba51a822533649b143232418b9e26d08b] Merge tag 'net-6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
git bisect bad 87adedeba51a822533649b143232418b9e26d08b
# bad: [efb0b63afce6a6f470ee8eda5abe70d1e8aa558a] Merge tag 'zonefs-6.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs
git bisect bad efb0b63afce6a6f470ee8eda5abe70d1e8aa558a
# good: [a2343df3fb1e62ef7c5c0a65c06621980f257d5b] Merge tag 'ntfs3_for_6.8' of https://github.com/Paragon-Software-Group/linux-ntfs3
git bisect good a2343df3fb1e62ef7c5c0a65c06621980f257d5b
# good: [cc9c4f0b3113d513a94bcf489f2fa8cb9cc7c679] Merge tag 'for-linus-6.8a-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
git bisect good cc9c4f0b3113d513a94bcf489f2fa8cb9cc7c679
# good: [44c1197bcef49bdf1021bef7cdb32520b2bc1ce4] net: fill in MODULE_DESCRIPTION()s for plip
git bisect good 44c1197bcef49bdf1021bef7cdb32520b2bc1ce4
# bad: [ea69f782d0e37d9658d4b7df241661e651c43af5] Merge tag 'drm-msm-fixes-2024-02-15' of https://gitlab.freedesktop.org/drm/msm into drm-fixes
git bisect bad ea69f782d0e37d9658d4b7df241661e651c43af5
# bad: [a8ac4bcaeb660c5eeb273507e8dbf713ba56de44] drm/amdgpu: Fix implicit assumtion in gfx11 debug flags
git bisect bad a8ac4bcaeb660c5eeb273507e8dbf713ba56de44
# bad: [94b38b895dec8c0ef093140a141e191b60ff614c] drm/amd/display: Add align done check
git bisect bad 94b38b895dec8c0ef093140a141e191b60ff614c
# good: [7edb5830ecb0033184ee2fa01ae8af17d56450ec] drm/amd/display: Initialize 'wait_time_microsec' variable in link_dp_training_dpia.c
git bisect good 7edb5830ecb0033184ee2fa01ae8af17d56450ec
# good: [ccc514b7e7acbd301219cbaec0fc0bfe5741acee] drm/amd/display: Fix possible buffer overflow in 'find_dcfclk_for_voltage()'
git bisect good ccc514b7e7acbd301219cbaec0fc0bfe5741acee
# bad: [916361685319098f696b798ef1560f69ed96e934] Revert "drm/amd: flush any delayed gfxoff on suspend entry"
git bisect bad 916361685319098f696b798ef1560f69ed96e934
# bad: [3a9626c816db901def438dc2513622e281186d39] drm/amd: Stop evicting resources on APUs in suspend
git bisect bad 3a9626c816db901def438dc2513622e281186d39
# first bad commit: [3a9626c816db901def438dc2513622e281186d39] drm/amd: Stop evicting resources on APUs in suspend
Reverting the commit fixes the issue.