dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
@ 2022-06-12 21:42 bugzilla-daemon
  2022-06-12 21:46 ` [Bug 216119] " bugzilla-daemon
                   ` (57 more replies)
  0 siblings, 58 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-12 21:42 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

            Bug ID: 216119
           Summary: 087451f372bf76d breaks hibernation on amdgpu Radeon R9
                    390
           Product: Drivers
           Version: 2.5
    Kernel Version: v5.17+
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Video(DRI - non Intel)
          Assignee: drivers_video-dri@kernel-bugs.osdl.org
          Reporter: h.judt@gmx.at
        Regression: No

This is a problem with amdgpu only, as I did not experience this on my other
machines, and caused by [087451f372bf76d971184caa258807b7c35aac8f] drm/amdgpu:
use generic fb helpers instead of setting up AMD own's
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=087451f372bf76d971184caa258807b7c35aac8f

Reverting this patch makes me a happy amdgpu user with working hibernation
again on Linux 5.18.3.

Note I did the bisect on the stable linux repo, but that shouldn't matter.

git bisect start
# good: [c19a885e12f114b799b5d0d877219f0695e0d4de] Linux 5.16.20
git bisect good c19a885e12f114b799b5d0d877219f0695e0d4de
# bad: [f443e374ae131c168a065ea1748feac6b2e76613] Linux 5.17
git bisect bad f443e374ae131c168a065ea1748feac6b2e76613
# good: [df0cc57e057f18e44dac8e6c18aba47ab53202f9] Linux 5.16
git bisect good df0cc57e057f18e44dac8e6c18aba47ab53202f9
# bad: [22ef12195e13c5ec58320dbf99ef85059a2c0820] Merge tag 'staging-5.17-rc1'
of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
git bisect bad 22ef12195e13c5ec58320dbf99ef85059a2c0820
# bad: [9bcbf894b6872216ef61faf17248ec234e3db6bc] Merge tag 'media/v5.17-1' of
git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
git bisect bad 9bcbf894b6872216ef61faf17248ec234e3db6bc
# bad: [cb6846fbb83b574c85c2a80211b402a6347b60b1] Merge tag
'amd-drm-next-5.17-2021-12-30' of ssh://gitlab.freedesktop.org/agd5f/linux into
drm-next
git bisect bad cb6846fbb83b574c85c2a80211b402a6347b60b1
# bad: [15bb79910fe734ad21c765d1cae762e855969caa] Merge tag
'drm-misc-next-2021-12-09' of git://anongit.freedesktop.org/drm/drm-misc into
drm-next
git bisect bad 15bb79910fe734ad21c765d1cae762e855969caa
# good: [03848335b5b1faa4a4641fcf30b7c233579a45aa] drm/bridge: sn65dsi86: defer
if there is no dsi host
git bisect good 03848335b5b1faa4a4641fcf30b7c233579a45aa
# good: [6bb0a0e0fd358d4f9f6ce4c2d36c1f80d7496f6a] drm/i915: Clean up
FPGA_DBG/CLAIM_ER bits
git bisect good 6bb0a0e0fd358d4f9f6ce4c2d36c1f80d7496f6a
# bad: [13d20aabd6ef501229ac002493c6f237482c47de] drm/amd/display: remove no
need NULL check before kfree
git bisect bad 13d20aabd6ef501229ac002493c6f237482c47de
# bad: [a6506cd845824fe92b1760aaf104011cc04dfa78] drm/radeon: correct
indentation
git bisect bad a6506cd845824fe92b1760aaf104011cc04dfa78
# bad: [f0d0c39149f817e5ecdff8fa164f44da455b3317] drm/amd/display: Pass panel
inst to a PSR command
git bisect bad f0d0c39149f817e5ecdff8fa164f44da455b3317
# good: [574c4183ef75117f763e9f2b35e08c85f5dcad2d] drm/amdkfd: replace kgd_dev
in get amdgpu_amdkfd funcs
git bisect good 574c4183ef75117f763e9f2b35e08c85f5dcad2d
# bad: [b5f57384805a34f497edb8b04d694a8a1b3d81d4] drm/amdkfd: Add sysfs
bitfields and enums to uAPI
git bisect bad b5f57384805a34f497edb8b04d694a8a1b3d81d4
# good: [56c5977eae8799c9a71ee2112802fd1f1591dc3a] drm/amdkfd: replace/remove
remaining kgd_dev references
git bisect good 56c5977eae8799c9a71ee2112802fd1f1591dc3a
# bad: [087451f372bf76d971184caa258807b7c35aac8f] drm/amdgpu: use generic fb
helpers instead of setting up AMD own's.
git bisect bad 087451f372bf76d971184caa258807b7c35aac8f
# good: [b5d1d755c1344075d4f16a3e6183ed04b4d022ef] drm/amdkfd: remove kgd_dev
declaration and initialization
git bisect good b5d1d755c1344075d4f16a3e6183ed04b4d022ef
# first bad commit: [087451f372bf76d971184caa258807b7c35aac8f] drm/amdgpu: use
generic fb helpers instead of setting up AMD own's.

lspci:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Hawaii PRO [Radeon R9 290/390] (rev 80) (prog-if 00 [VGA controller])
        Subsystem: XFX Pine Group Inc. Hawaii PRO [Radeon R9 290/390]
        Flags: bus master, fast devsel, latency 0, IRQ 25
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f0000000 (64-bit, prefetchable) [size=8M]
        I/O ports at e000 [size=256]
        Memory at f7e00000 (32-bit, non-prefetchable) [size=256K]
        Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: amdgpu

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
@ 2022-06-12 21:46 ` bugzilla-daemon
  2022-06-13 10:27 ` bugzilla-daemon
                   ` (56 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-12 21:46 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

Harald Judt (h.judt@gmx.at) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |h.judt@gmx.at

--- Comment #1 from Harald Judt (h.judt@gmx.at) ---
Created attachment 301161
  --> https://bugzilla.kernel.org/attachment.cgi?id=301161&action=edit
Error when resuming fails

Screenshot with error message when resuming fails. Screen will blank out and
come back, looping endlessly.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
  2022-06-12 21:46 ` [Bug 216119] " bugzilla-daemon
@ 2022-06-13 10:27 ` bugzilla-daemon
  2022-06-13 13:48 ` bugzilla-daemon
                   ` (55 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-13 10:27 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

Artem S. Tashkinov (aros@gmx.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |aros@gmx.com
         Resolution|---                         |ANSWERED

--- Comment #2 from Artem S. Tashkinov (aros@gmx.com) ---
Please refile here: https://gitlab.freedesktop.org/drm/amd/-/issues (when the
website gets restored - it's currently down).

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
  2022-06-12 21:46 ` [Bug 216119] " bugzilla-daemon
  2022-06-13 10:27 ` bugzilla-daemon
@ 2022-06-13 13:48 ` bugzilla-daemon
  2022-06-16 18:40 ` bugzilla-daemon
                   ` (54 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-13 13:48 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

Alex Deucher (alexdeucher@gmail.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexdeucher@gmail.com

--- Comment #3 from Alex Deucher (alexdeucher@gmail.com) ---
Does this patch fix it in your case?

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.18&id=f95af4a9236695caed24fe6401256bb974e8f2a7

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2022-06-13 13:48 ` bugzilla-daemon
@ 2022-06-16 18:40 ` bugzilla-daemon
  2022-06-16 19:15 ` bugzilla-daemon
                   ` (53 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-16 18:40 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

Harald Judt (h.judt@gmx.at) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|ANSWERED                    |---

--- Comment #4 from Harald Judt (h.judt@gmx.at) ---
I have tried 5.18.4 which includes this patch, and I also think 5.18.3 came
with this patch. Unfortunately, this does not fix hibernation for me, though
the symptoms are a bit different: No longer can I see any kernel messages like
before (see comment #1), but the screen stays black. I can reboot my kernel
with keyboard sysrq keys, though.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (3 preceding siblings ...)
  2022-06-16 18:40 ` bugzilla-daemon
@ 2022-06-16 19:15 ` bugzilla-daemon
  2022-06-16 19:16 ` bugzilla-daemon
                   ` (52 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-16 19:15 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #5 from Alex Deucher (alexdeucher@gmail.com) ---
Does setting amdgpu.runpm=0 help?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (4 preceding siblings ...)
  2022-06-16 19:15 ` bugzilla-daemon
@ 2022-06-16 19:16 ` bugzilla-daemon
  2022-06-16 19:24 ` bugzilla-daemon
                   ` (51 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-16 19:16 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #6 from Alex Deucher (alexdeucher@gmail.com) ---
On the kernel command line in grub.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (5 preceding siblings ...)
  2022-06-16 19:16 ` bugzilla-daemon
@ 2022-06-16 19:24 ` bugzilla-daemon
  2022-06-16 19:35 ` bugzilla-daemon
                   ` (50 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-16 19:24 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #7 from Harald Judt (h.judt@gmx.at) ---
Unfortunately, no it did not help (tested with 5.18.4).

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (6 preceding siblings ...)
  2022-06-16 19:24 ` bugzilla-daemon
@ 2022-06-16 19:35 ` bugzilla-daemon
  2022-06-16 19:47 ` bugzilla-daemon
                   ` (49 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-16 19:35 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #8 from Alex Deucher (alexdeucher@gmail.com) ---
Can you attach your full dmesg output?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (7 preceding siblings ...)
  2022-06-16 19:35 ` bugzilla-daemon
@ 2022-06-16 19:47 ` bugzilla-daemon
  2022-06-16 19:55 ` bugzilla-daemon
                   ` (48 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-16 19:47 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #9 from Harald Judt (h.judt@gmx.at) ---
Created attachment 301189
  --> https://bugzilla.kernel.org/attachment.cgi?id=301189&action=edit
dmesg.out

Here is the dmesg out from my linux-5.18.3 right after boot (that version is
with the reverted patch). If you need something more specific or the dmesg from
another version, please tell me.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (8 preceding siblings ...)
  2022-06-16 19:47 ` bugzilla-daemon
@ 2022-06-16 19:55 ` bugzilla-daemon
  2022-06-16 21:57 ` bugzilla-daemon
                   ` (47 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-16 19:55 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #10 from Harald Judt (h.judt@gmx.at) ---
Again, the same applies to 5.18.4: Reverting the fb helper patch gets me a
working resume from hibernation.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (9 preceding siblings ...)
  2022-06-16 19:55 ` bugzilla-daemon
@ 2022-06-16 21:57 ` bugzilla-daemon
  2022-06-16 22:36 ` bugzilla-daemon
                   ` (46 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-16 21:57 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #11 from Alex Deucher (alexdeucher@gmail.com) ---
Does changing the the prefer_shadow hint help?  E.g., something like:

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index c2bc7db85d7e..4b6bd1a5804a 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -3852,7 +3852,7 @@ static int amdgpu_dm_mode_config_init(struct
amdgpu_device *adev)
        adev_to_drm(adev)->mode_config.max_height = 16384;

        adev_to_drm(adev)->mode_config.preferred_depth = 24;
-       adev_to_drm(adev)->mode_config.prefer_shadow = 1;
+       adev_to_drm(adev)->mode_config.prefer_shadow = 0;
        /* indicates support for immediate flip */
        adev_to_drm(adev)->mode_config.async_page_flip = true;

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply related	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (10 preceding siblings ...)
  2022-06-16 21:57 ` bugzilla-daemon
@ 2022-06-16 22:36 ` bugzilla-daemon
  2022-06-21 14:08 ` bugzilla-daemon
                   ` (45 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-16 22:36 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #12 from Harald Judt (h.judt@gmx.at) ---
Yes, changing this single line indeed solves the issue! Thanks.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (11 preceding siblings ...)
  2022-06-16 22:36 ` bugzilla-daemon
@ 2022-06-21 14:08 ` bugzilla-daemon
  2022-06-21 14:08 ` bugzilla-daemon
                   ` (44 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-21 14:08 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #13 from Alex Deucher (alexdeucher@gmail.com) ---
Created attachment 301243
  --> https://bugzilla.kernel.org/attachment.cgi?id=301243&action=edit
patch 1/4

Can you try this patch set instead?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (12 preceding siblings ...)
  2022-06-21 14:08 ` bugzilla-daemon
@ 2022-06-21 14:08 ` bugzilla-daemon
  2022-06-21 14:08 ` bugzilla-daemon
                   ` (43 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-21 14:08 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #14 from Alex Deucher (alexdeucher@gmail.com) ---
Created attachment 301244
  --> https://bugzilla.kernel.org/attachment.cgi?id=301244&action=edit
patch 2/4

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (13 preceding siblings ...)
  2022-06-21 14:08 ` bugzilla-daemon
@ 2022-06-21 14:08 ` bugzilla-daemon
  2022-06-21 14:09 ` bugzilla-daemon
                   ` (42 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-21 14:08 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #15 from Alex Deucher (alexdeucher@gmail.com) ---
Created attachment 301245
  --> https://bugzilla.kernel.org/attachment.cgi?id=301245&action=edit
patch 3/4

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (14 preceding siblings ...)
  2022-06-21 14:08 ` bugzilla-daemon
@ 2022-06-21 14:09 ` bugzilla-daemon
  2022-06-21 22:33 ` bugzilla-daemon
                   ` (41 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-21 14:09 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #16 from Alex Deucher (alexdeucher@gmail.com) ---
Created attachment 301246
  --> https://bugzilla.kernel.org/attachment.cgi?id=301246&action=edit
patch 4/4

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (15 preceding siblings ...)
  2022-06-21 14:09 ` bugzilla-daemon
@ 2022-06-21 22:33 ` bugzilla-daemon
  2022-06-22 13:22 ` bugzilla-daemon
                   ` (40 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-21 22:33 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #17 from Harald Judt (h.judt@gmx.at) ---
Yes, this patch set seems to work fine. Reporting two successful
hibernate/resume cycles with them applied to 5.18.5.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (16 preceding siblings ...)
  2022-06-21 22:33 ` bugzilla-daemon
@ 2022-06-22 13:22 ` bugzilla-daemon
  2022-06-22 21:08 ` bugzilla-daemon
                   ` (39 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-22 13:22 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #18 from Alex Deucher (alexdeucher@gmail.com) ---
Just to verify, you removed the patch from comment 11 before testing the new
patches?  Also, can you try the just patch 1/4 and then again with just patches
2/4 and 3/4?  Do either of those combinations also work?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (17 preceding siblings ...)
  2022-06-22 13:22 ` bugzilla-daemon
@ 2022-06-22 21:08 ` bugzilla-daemon
  2022-06-24 19:51 ` bugzilla-daemon
                   ` (38 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-22 21:08 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #19 from Harald Judt (h.judt@gmx.at) ---
Yes, I definitely removed the patch from comment 11 before testing the new
patch set. I will try the other combinations later this week, I am a bit short
on time at the moment.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (18 preceding siblings ...)
  2022-06-22 21:08 ` bugzilla-daemon
@ 2022-06-24 19:51 ` bugzilla-daemon
  2022-06-27 16:20 ` bugzilla-daemon
                   ` (37 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-24 19:51 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #20 from Harald Judt (h.judt@gmx.at) ---
One thing that I have noticed: Since these changes, the kernel seems to switch
to text mode when hibernating. Before that I think it remained (frozen) on the
X screen.

Here are the results:
- 1+4: screen black, display suspend led, keyboard comes online again but no
ssh. can sysreq to reboot.
- 2+4: screen black first, comes back after some time, restores screen with
hibernation snapshotting progress visible (not those of resume), continues to
resume (resuming progress visible), but then screen goes black again in dpms
on, ssh available. was able to compile kernel and reboot via ssh.
- 3+4: does not compile. unknown fb struct or so. because of that, i tried
2+3+4 since 2+4 compiled fine and worked fine mostly.
- 2+3+4 works as good as 1+2+3+4. seems patch 1 is not necessary.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (19 preceding siblings ...)
  2022-06-24 19:51 ` bugzilla-daemon
@ 2022-06-27 16:20 ` bugzilla-daemon
  2022-06-27 19:26 ` bugzilla-daemon
                   ` (36 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-27 16:20 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

Daniel Vetter (daniel@ffwll.ch) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel@ffwll.ch

--- Comment #21 from Daniel Vetter (daniel@ffwll.ch) ---
Two thoughts:

- It's entirely possible that the working kernel has the same warning. I
happens right before we switch to the resumed kernel from the hibernation image
(if I read this all right), so a) will show only for extremely short amounts of
time and b) wont be captured in the dmesg once we're in the resumed kernel I
think.

- Something later on is going wrong, and we don't know. Have we tried the
no_console_suspend trick already? Another possibility might be to connect a
serial console, that tends to be able to get more dmesg output out of dying
kernels.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (20 preceding siblings ...)
  2022-06-27 16:20 ` bugzilla-daemon
@ 2022-06-27 19:26 ` bugzilla-daemon
  2022-06-27 23:48 ` bugzilla-daemon
                   ` (35 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-27 19:26 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #22 from Alex Deucher (alexdeucher@gmail.com) ---
Does this patch help?
https://patchwork.kernel.org/project/dri-devel/patch/20220621104617.8817-1-tzimmermann@suse.de/

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (21 preceding siblings ...)
  2022-06-27 19:26 ` bugzilla-daemon
@ 2022-06-27 23:48 ` bugzilla-daemon
  2022-06-28 15:43 ` bugzilla-daemon
                   ` (34 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-27 23:48 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #23 from Harald Judt (h.judt@gmx.at) ---
Created attachment 301291
  --> https://bugzilla.kernel.org/attachment.cgi?id=301291&action=edit
mailing-list-patch-adapted-for-5.18.7.patch

I had to adapt the patch for 5.18.7. I hope this is right, there is only a
difference in a struct it seems.
Unfortunately, it did not help. Screen suspended, comes back after a while,
goes blank again (but powered on), also keyboard back for sysreq, but ssh
unresponsive.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (22 preceding siblings ...)
  2022-06-27 23:48 ` bugzilla-daemon
@ 2022-06-28 15:43 ` bugzilla-daemon
  2022-06-28 21:12 ` bugzilla-daemon
                   ` (33 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-28 15:43 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #24 from Alex Deucher (alexdeucher@gmail.com) ---
Does setting amdgpu.dc=0 on the kernel command line also exhibit the behavior? 
If so, does patch 4/4 alone fix that?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (23 preceding siblings ...)
  2022-06-28 15:43 ` bugzilla-daemon
@ 2022-06-28 21:12 ` bugzilla-daemon
  2022-06-28 21:33 ` bugzilla-daemon
                   ` (32 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-28 21:12 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #25 from Harald Judt (h.judt@gmx.at) ---
Created attachment 301298
  --> https://bugzilla.kernel.org/attachment.cgi?id=301298&action=edit
dmesg.out

I report success, partly.

Setting amdgpu.dc=0 on the kernel command line also exhibits the behaviour =>
Screen suspended, comes back after a while, goes blank again (but powered on),
also keyboard back for sysreq, but ssh unresponsive.

After applying patch 4 and setting amdgpu.dc=0, the system restores again, but
not smoothly. Screen suspends, comes back after a while, also keyboard, display
switches back on, machine is responsive and I could generate a dmesg which
shows that there have been test failures. dmesg.out attached, but the relevant
messages are these:

amdgpu 0000:01:00.0: [drm:amdgpu_ib_ring_tests] *ERROR* IB test failed on sdma0
(-110).
[drm:process_one_work] *ERROR* ib ring test failed (-110).

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (24 preceding siblings ...)
  2022-06-28 21:12 ` bugzilla-daemon
@ 2022-06-28 21:33 ` bugzilla-daemon
  2022-06-28 21:33 ` bugzilla-daemon
                   ` (31 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-28 21:33 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #26 from Alex Deucher (alexdeucher@gmail.com) ---
Created attachment 301299
  --> https://bugzilla.kernel.org/attachment.cgi?id=301299&action=edit
patch 1/2

Can you try the attached 2 patches (without any previous patches) both with and
without amdgpu.dc=0?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (25 preceding siblings ...)
  2022-06-28 21:33 ` bugzilla-daemon
@ 2022-06-28 21:33 ` bugzilla-daemon
  2022-06-29  6:16 ` bugzilla-daemon
                   ` (30 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-28 21:33 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #27 from Alex Deucher (alexdeucher@gmail.com) ---
Created attachment 301300
  --> https://bugzilla.kernel.org/attachment.cgi?id=301300&action=edit
patch 2/2

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (26 preceding siblings ...)
  2022-06-28 21:33 ` bugzilla-daemon
@ 2022-06-29  6:16 ` bugzilla-daemon
  2022-06-29 13:00 ` bugzilla-daemon
                   ` (29 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-29  6:16 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #28 from Harald Judt (h.judt@gmx.at) ---
Created attachment 301304
  --> https://bugzilla.kernel.org/attachment.cgi?id=301304&action=edit
dmesg.out

The new 2 patches alone work fine _without_ setting amdgpu.dc=0.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (27 preceding siblings ...)
  2022-06-29  6:16 ` bugzilla-daemon
@ 2022-06-29 13:00 ` bugzilla-daemon
  2022-06-29 13:30 ` bugzilla-daemon
                   ` (28 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-29 13:00 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #29 from Alex Deucher (alexdeucher@gmail.com) ---
Do they also work when you set amdgpu.dc=0 or has that always had problems for
you?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (28 preceding siblings ...)
  2022-06-29 13:00 ` bugzilla-daemon
@ 2022-06-29 13:30 ` bugzilla-daemon
  2022-06-29 13:40 ` bugzilla-daemon
                   ` (27 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-29 13:30 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #30 from Harald Judt (h.judt@gmx.at) ---
I will have to test this. I have not known this option exists and what it does
nor what will happen if I disable it and if that is good or bad, so I have
never used it before.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (29 preceding siblings ...)
  2022-06-29 13:30 ` bugzilla-daemon
@ 2022-06-29 13:40 ` bugzilla-daemon
  2022-07-16 22:39 ` bugzilla-daemon
                   ` (26 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-06-29 13:40 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #31 from Harald Judt (h.judt@gmx.at) ---
Created attachment 301306
  --> https://bugzilla.kernel.org/attachment.cgi?id=301306&action=edit
dmesg.out

amdgpu.dc=0 doesn't seem to make any practical difference.

BTW: With the new patchset, the machine also does no longer vt switch to the
console. I do not care about that very much, but the old behaviour has been
restored.

This time, the following message did not appear in dmesg.out after resume:
[drm] Fence fallback timer expired on ring sdma0

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (30 preceding siblings ...)
  2022-06-29 13:40 ` bugzilla-daemon
@ 2022-07-16 22:39 ` bugzilla-daemon
  2022-07-16 22:41 ` bugzilla-daemon
                   ` (25 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-07-16 22:39 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #32 from Harald Judt (h.judt@gmx.at) ---
There still seem to be issues with the shared fb implementation and
hibernation. After resume, chvt to another vt causes the following errors in
dmesg:

[  975.920944] [drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft
recovered
[  986.160803] [drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft
recovered
[  996.400610] [drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft
recovered
[ 1006.640916] [drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft
recovered
[ 1016.880923] [drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft
recovered
[ 1027.120907] [drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft
recovered

And the machine gets stuck/freezes, except one can ssh in and reboot it. So
only the graphical display will not restore properly. Also, if I reboot the
machine and the error above does not occur, then the console (not X display) is
somehow misaligned, that is the messages are not printed on the most-left
column, but a bit more in the middle of the screen.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (31 preceding siblings ...)
  2022-07-16 22:39 ` bugzilla-daemon
@ 2022-07-16 22:41 ` bugzilla-daemon
  2022-08-09  5:04 ` bugzilla-daemon
                   ` (24 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-07-16 22:41 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #33 from Harald Judt (h.judt@gmx.at) ---
With "if I reboot the machine" I mean, if I shutdown/reboot it later after
resume, then the shutdown messages get printed that strange way.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (32 preceding siblings ...)
  2022-07-16 22:41 ` bugzilla-daemon
@ 2022-08-09  5:04 ` bugzilla-daemon
  2022-08-09 18:53 ` bugzilla-daemon
                   ` (23 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-08-09  5:04 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

Mario Limonciello (AMD) (mario.limonciello@amd.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mario.limonciello@amd.com

--- Comment #34 from Mario Limonciello (AMD) (mario.limonciello@amd.com) ---
I recently became aware that the WX3200 in my workstation wasn't working
properly after suspend-to-ram.

61:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc.
[AMD/ATI] Lexa XT [Radeon PRO WX 3200] [1002:6981] (rev 10)

I ran a bisect, and unfortunately it came up to the commit that was created for
this bug
(https://github.com/torvalds/linux/commit/3a4b1cc28fbdc2325b3e3ed7d8024995a75f9216)

$ git bisect log
git bisect start '--term-new=broken' '--term-old=good'
# good: [4b0986a3613c92f4ec1bdc7f60ec66fea135991f] Linux 5.18
git bisect good 4b0986a3613c92f4ec1bdc7f60ec66fea135991f
# broken: [8843bf1f0737ecea456d2bbd19d4263d49f2d110] Linux 5.18.16
git bisect broken 8843bf1f0737ecea456d2bbd19d4263d49f2d110
# good: [ffd4c4d5293e4985092ea45ba21cad9326e2e434] drivers: staging: rtl8192e:
Fix deadlock in rtllib_beacons_stop()
git bisect good ffd4c4d5293e4985092ea45ba21cad9326e2e434
# good: [164f0714bae175e2f5737070d037d7475417228d] pinctrl: sunxi: a83t: Fix
NAND function name for some pins
git bisect good 164f0714bae175e2f5737070d037d7475417228d
# broken: [86fbd2844858c5aef57a28ebc3d53d298f37cc67] x86/retpoline: Use
-mfunction-return
git bisect broken 86fbd2844858c5aef57a28ebc3d53d298f37cc67
# broken: [7fc7c6d053cfca70bb81892f3f00937e5c459d5a] arm64: dts: broadcom:
bcm4908: Fix cpu node for smp boot
git bisect broken 7fc7c6d053cfca70bb81892f3f00937e5c459d5a
# good: [cd52154b924f2ea05069d4296045d9fd56a8da23] ALSA: hda - Add fixup for
Dell Latitidue E5430
git bisect good cd52154b924f2ea05069d4296045d9fd56a8da23
# good: [b8651049bdd77fa652bcf0f3157911a3a6fc4f2f] net/mlx5e: CT: Use own
workqueue instead of mlx5e priv
git bisect good b8651049bdd77fa652bcf0f3157911a3a6fc4f2f
# broken: [594cea2c09f7cd440d1ee1c4547d5bc6a646b0e4] netfilter: conntrack:
remove the percpu dying list
git bisect broken 594cea2c09f7cd440d1ee1c4547d5bc6a646b0e4
# broken: [cd486308d773d6d062a0140062458b48f8a0eb6b] ASoC: tas2764: Add post
reset delays
git bisect broken cd486308d773d6d062a0140062458b48f8a0eb6b
# broken: [4ffcacab7145080187330accafae69e87a481eec] drm/amdgpu/display:
disable prefer_shadow for generic fb helpers
git bisect broken 4ffcacab7145080187330accafae69e87a481eec
# good: [16427298f3dc02ec90bdfa31c8ef9b384ea5534a] net/mlx5e: Ring the TX
doorbell on DMA errors
git bisect good 16427298f3dc02ec90bdfa31c8ef9b384ea5534a
# good: [27dccf616a0a82f4d8004b7ee04560e7de419e63] drm/amdgpu: keep fbdev
buffers pinned during suspend
git bisect good 27dccf616a0a82f4d8004b7ee04560e7de419e63
# first broken commit: [4ffcacab7145080187330accafae69e87a481eec]
drm/amdgpu/display: disable prefer_shadow for generic fb helpers

It seems that a revert of that commit isn't the best solution as it's just
trading the S3 failure I see for your S4 failure.  But also it seems that from
your comment #32 there is still an underlying problem with using the fbdev
helper, albeit improved for you in S3.

Would you mind contrasting if S3 is working for you with/without that commit?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (33 preceding siblings ...)
  2022-08-09  5:04 ` bugzilla-daemon
@ 2022-08-09 18:53 ` bugzilla-daemon
  2022-08-09 18:55 ` bugzilla-daemon
                   ` (22 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-08-09 18:53 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #35 from Harald Judt (h.judt@gmx.at) ---
I have not had time yet to try any patches, but here are more detailed dmesg
messages when things get awry after resuming from hibernation and vt-switching
(see symptoms described above). Maybe they give someone additional hints what's
going wrong:

[drm:amdgpu_dm_atomic_commit_tail] *ERROR* Waiting for fences timed out!
[drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft recovered
[drm:amdgpu_dm_atomic_commit_tail] *ERROR* Waiting for fences timed out!
[drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft recovered
[drm:amdgpu_dm_atomic_commit_tail] *ERROR* Waiting for fences timed out!
[drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft recovered
[drm:amdgpu_dm_atomic_commit_tail] *ERROR* Waiting for fences timed out!
[drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft recovered
[drm:amdgpu_dm_atomic_commit_tail] *ERROR* Waiting for fences timed out!
[drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft recovered
[drm:amdgpu_dm_atomic_commit_tail] *ERROR* Waiting for fences timed out!
[drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft recovered
[drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft recovered
amdgpu 0000:01:00.0: amdgpu: GPU fault detected: 146 0x000cc40c
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x00000000
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x0C0C400C
amdgpu 0000:01:00.0: amdgpu: VM fault (0x0c, vmid 6, pasid 0) at page 0, read
from 'TC7' (0x54433700) (196)
amdgpu 0000:01:00.0: amdgpu: GPU fault detected: 146 0x0004c40c
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x00000000
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x040C400C
amdgpu 0000:01:00.0: amdgpu: VM fault (0x0c, vmid 2, pasid 0) at page 0, read
from 'TC7' (0x54433700) (196)
amdgpu 0000:01:00.0: amdgpu: GPU fault detected: 146 0x000ac40c
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x00000000
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x0A0C400C
amdgpu 0000:01:00.0: amdgpu: VM fault (0x0c, vmid 5, pasid 0) at page 0, read
from 'TC7' (0x54433700) (196)
amdgpu 0000:01:00.0: amdgpu: GPU fault detected: 146 0x0004c40c
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x00000000
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x040C400C
amdgpu 0000:01:00.0: amdgpu: VM fault (0x0c, vmid 2, pasid 0) at page 0, read
from 'TC7' (0x54433700) (196)
amdgpu 0000:01:00.0: amdgpu: GPU fault detected: 146 0x0004480c
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x00000000
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x0404800C
amdgpu 0000:01:00.0: amdgpu: VM fault (0x0c, vmid 2, pasid 0) at page 0, read
from 'TC0' (0x54433000) (72)
[drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft recovered
amdgpu 0000:01:00.0: amdgpu: GPU fault detected: 146 0x0004480c
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x00000000
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x0404800C
amdgpu 0000:01:00.0: amdgpu: VM fault (0x0c, vmid 2, pasid 0) at page 0, read
from 'TC0' (0x54433000) (72)
[drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft recovered
amdgpu 0000:01:00.0: amdgpu: GPU fault detected: 146 0x000a480c
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x00000000
amdgpu 0000:01:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x0A04800C
amdgpu 0000:01:00.0: amdgpu: VM fault (0x0c, vmid 5, pasid 0) at page 0, read
from 'TC0' (0x54433000) (72)
[drm:amdgpu_job_timedout] *ERROR* ring gfx timeout, but soft recovered

The funny thing was that another X session was still somehow usable (it takes a
while to switch to it because of the hangs). But in general, those hangs when
vt-switching sucks.

I will try to revert all the fbdev patches again to see if that also happens
with the old fb code, though I cannot remember it did.

I will also test whether that happens when using only S3 instead of S4.

It will probably take me a few days until I can get to it though.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (34 preceding siblings ...)
  2022-08-09 18:53 ` bugzilla-daemon
@ 2022-08-09 18:55 ` bugzilla-daemon
  2022-08-09 19:07 ` bugzilla-daemon
                   ` (21 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-08-09 18:55 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #36 from Harald Judt (h.judt@gmx.at) ---
Maybe these are also relevant, they occur right after resuming, before all
those other messages:
[drm] Fence fallback timer expired on ring sdma0
[drm] Fence fallback timer expired on ring sdma0

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (35 preceding siblings ...)
  2022-08-09 18:55 ` bugzilla-daemon
@ 2022-08-09 19:07 ` bugzilla-daemon
  2022-08-09 19:38 ` bugzilla-daemon
                   ` (20 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-08-09 19:07 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #37 from Mario Limonciello (AMD) (mario.limonciello@amd.com) ---
Hmm.  I get the impression that those are /probably/ collateral damage from the
underlying issue of something not initializing properly during resume from S4.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (36 preceding siblings ...)
  2022-08-09 19:07 ` bugzilla-daemon
@ 2022-08-09 19:38 ` bugzilla-daemon
  2022-08-25  8:37 ` bugzilla-daemon
                   ` (19 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-08-09 19:38 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #38 from Alex Deucher (alexdeucher@gmail.com) ---
(In reply to Harald Judt from comment #36)
> Maybe these are also relevant, they occur right after resuming, before all
> those other messages:
> [drm] Fence fallback timer expired on ring sdma0
> [drm] Fence fallback timer expired on ring sdma0

Those are usually a sign of interrupt issues on the platform.  E.g., interrupts
not being proper enabled on the platform after resume.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (37 preceding siblings ...)
  2022-08-09 19:38 ` bugzilla-daemon
@ 2022-08-25  8:37 ` bugzilla-daemon
  2022-10-13 19:30 ` bugzilla-daemon
                   ` (18 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-08-25  8:37 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #39 from Harald Judt (h.judt@gmx.at) ---
Switching back to the original amdgpu_fb implementation (I've reverted this and
all relevant patches on stable-5.18.19), all remaining issues vanish. After two
hibernate/resume cycles, I can still successfully switch vts to the console and
back, and nothing freezes.

Regarding the "[drm] Fence fallback timer expired on ring sdma0 messages", they
also appear when using the amdgpu_fb implementation.

As for the display corruption on the console, this is an ascii art of how it
looks like - next time I'll try to take a picture.

-----------------------------------------------------------------------
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
|                       Beginning of line starts here not at column 0 |
-----------------------------------------------------------------------

Maybe that can give some clue what else could be wrong.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (38 preceding siblings ...)
  2022-08-25  8:37 ` bugzilla-daemon
@ 2022-10-13 19:30 ` bugzilla-daemon
  2022-10-13 20:39 ` bugzilla-daemon
                   ` (17 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-10-13 19:30 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #40 from Harald Judt (h.judt@gmx.at) ---
Any updates on this? Hibernate/resume is still borked after a few cycles
(rather sooner than later) and it gets harder and harder to revert these fb
patches on newer kernels. The prefer_shadow patch alone does not really fix
this.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (39 preceding siblings ...)
  2022-10-13 19:30 ` bugzilla-daemon
@ 2022-10-13 20:39 ` bugzilla-daemon
  2022-10-15  9:02 ` bugzilla-daemon
                   ` (16 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-10-13 20:39 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #41 from Alex Deucher (alexdeucher@gmail.com) ---
Does setting amdgpu.dc=0 make any difference?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (40 preceding siblings ...)
  2022-10-13 20:39 ` bugzilla-daemon
@ 2022-10-15  9:02 ` bugzilla-daemon
  2022-10-20 14:13 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-10-15  9:02 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #42 from Harald Judt (h.judt@gmx.at) ---
Created attachment 303004
  --> https://bugzilla.kernel.org/attachment.cgi?id=303004&action=edit
dmesg.out

Here is a new dmesg with linux-stable-5.19.11 and amdgpu.dc=0.

There are a couple more "Fence fallbasck timer expired on ring sdma0" than
before, but nothing else directly after resuming.

However, VT-switching to the console and back to X causes the GPU fault in the
last lines. I could login and produce this dmesg, but the machine wouldn't
reboot with sudo reboot and I had to do sys-rq finally.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (41 preceding siblings ...)
  2022-10-15  9:02 ` bugzilla-daemon
@ 2022-10-20 14:13 ` bugzilla-daemon
  2022-10-20 19:22 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-10-20 14:13 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #43 from Alex Deucher (alexdeucher@gmail.com) ---
Created attachment 303055
  --> https://bugzilla.kernel.org/attachment.cgi?id=303055&action=edit
possible fix

Can you try this patch?  You might also try adding:
https://patchwork.kernel.org/project/dri-devel/patch/20221020103755.24058-2-tzimmermann@suse.de/

If those two don't help, can you try this whole set:
https://patchwork.kernel.org/project/dri-devel/list/?series=687097

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (42 preceding siblings ...)
  2022-10-20 14:13 ` bugzilla-daemon
@ 2022-10-20 19:22 ` bugzilla-daemon
  2022-10-20 21:59 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-10-20 19:22 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #44 from Alex Deucher (alexdeucher@gmail.com) ---
Created attachment 303064
  --> https://bugzilla.kernel.org/attachment.cgi?id=303064&action=edit
another fix

You'll probably want this patch too.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (43 preceding siblings ...)
  2022-10-20 19:22 ` bugzilla-daemon
@ 2022-10-20 21:59 ` bugzilla-daemon
  2022-10-21 20:11 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-10-20 21:59 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #45 from Harald Judt (h.judt@gmx.at) ---
Thanks for the new patches.

Applying attachment 303055 and
https://patchwork.kernel.org/project/dri-devel/patch/20221020103755.24058-2-tzimmermann@suse.de/
on linux-5.19.16 did seem to have an effect at first, but after a few cycles
(and I booted into Windows and then resumed Linux again, switching VTs to
another X session and consoles and back, then hibernated/resumed again) the
machine crashed at resume, with the screen not frozen but dead.

I will try the whole patchset, however it seems I will have to adapt it to
5.19.16 - which needs more work - or update to the latest kernel dev release
and then try to apply it on this.

I have not yet tried the last fix, which reverts the prefer_shadow setting for
hawaii.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (44 preceding siblings ...)
  2022-10-20 21:59 ` bugzilla-daemon
@ 2022-10-21 20:11 ` bugzilla-daemon
  2022-10-24 21:19 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-10-21 20:11 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #46 from Alex Deucher (alexdeucher@gmail.com) ---
Please try with the prefer_shadow patch.  It sounds like we may be on the right
track.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (45 preceding siblings ...)
  2022-10-21 20:11 ` bugzilla-daemon
@ 2022-10-24 21:19 ` bugzilla-daemon
  2022-12-15 20:39 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-10-24 21:19 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #47 from Harald Judt (h.judt@gmx.at) ---
I have tried attachment 303055 and
https://patchwork.kernel.org/project/dri-devel/patch/20221020103755.24058-2-tzimmermann@suse.de/
together with attachment 303064, but unfortunately it made no difference.
screen goes off for a while, keyboard comes back but screen stays dark. I might
be able to test the whole patchset in a week or so, but not earlier.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (46 preceding siblings ...)
  2022-10-24 21:19 ` bugzilla-daemon
@ 2022-12-15 20:39 ` bugzilla-daemon
  2022-12-15 20:40 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-12-15 20:39 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #48 from Harald Judt (h.judt@gmx.at) ---
Ok. I am quite sure about this, but I have new observations which could mean
that the hibernation issue could be fixed but there is another issue.

First, I have tried 6.1.0. Hibernation/resume seems to work as long as I do not
VT switch, causing the ring gfx timeout but soft recovered messages and fences
timed out. I have not tested this thoroughly enough though.

Second, the
amdgpu: GPU fault detected: 146 0x0006c40c
amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x00000000
amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x060C400C
amdgpu: VM fault (0x0c, vmid 3, pasid 0) at page 0, read from 'TC7'
(0x54433700) (196)
and similar messages also happen with 5.18.19 when VT-switching, though *much*
more rarely.

It seems these remaining problems are likely more related to VT-switching than
having to do with hibernate/resume now. Maybe the new fb code or other changes
in the driver just cause these problems to happen more often?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (47 preceding siblings ...)
  2022-12-15 20:39 ` bugzilla-daemon
@ 2022-12-15 20:40 ` bugzilla-daemon
  2022-12-16  8:12 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-12-15 20:40 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #49 from Harald Judt (h.judt@gmx.at) ---
I meant "I am not quite sure about this."

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (48 preceding siblings ...)
  2022-12-15 20:40 ` bugzilla-daemon
@ 2022-12-16  8:12 ` bugzilla-daemon
  2023-02-03 11:25 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2022-12-16  8:12 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #50 from Harald Judt (h.judt@gmx.at) ---
On the other hand, I have not experienced any problems with vt-switching so far
_before_ hibernate/resume.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (49 preceding siblings ...)
  2022-12-16  8:12 ` bugzilla-daemon
@ 2023-02-03 11:25 ` bugzilla-daemon
  2023-05-16 16:21 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2023-02-03 11:25 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #51 from Harald Judt (h.judt@gmx.at) ---
Ok. After some tests with 6.1.8 and later, things seem to be a bit more stable,
though I do not know whether the reason is actually the newer kernel or more
exact tests on my part.

It now seems that as long as I only switch between X window sessions
(VT-switching from one X session to another one), the crash does not occur. As
soon as I switch to any non-X VT, the screen stays blank or freezes with the
text cursor not visible. I can restart the computer using Ctrl-Alt-Delete, and
switching back to another X VT also works, but of course the X session is
frozen too.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (50 preceding siblings ...)
  2023-02-03 11:25 ` bugzilla-daemon
@ 2023-05-16 16:21 ` bugzilla-daemon
  2023-05-16 17:02 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2023-05-16 16:21 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #52 from Harald Judt (h.judt@gmx.at) ---
I believe my last issue regarding hibernation after this rewrite has been fixed
somewhere in linux-stable 6.2.13: The desktop no longer freezes when
VT-switching after resuming from hibernation. Seems to work fine for some days
now.

It could have been this commit as there has not been much else, but I have not
investigated nor verified it:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.2.y&id=56a03f64fedf49a4f81c5605167b6e7bb0300a59

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (51 preceding siblings ...)
  2023-05-16 16:21 ` bugzilla-daemon
@ 2023-05-16 17:02 ` bugzilla-daemon
  2023-05-23 18:21 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2023-05-16 17:02 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

Mario Limonciello (AMD) (mario.limonciello@amd.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |PATCH_ALREADY_AVAILABLE

--- Comment #53 from Mario Limonciello (AMD) (mario.limonciello@amd.com) ---
> I believe my last issue regarding hibernation after this rewrite has been
> fixed somewhere in linux-stable 6.2.13: The desktop no longer freezes when
> VT-switching after resuming from hibernation. Seems to work fine for some
> days now.

That's great thanks!

> It could have been this commit as there has not been much else, but I have
> not investigated nor verified it:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.2.y&id=56a03f64fedf49a4f81c5605167b6e7bb0300a59

This seems plausible to me because the GPU does reset on the way down for
hibernate and if it's poorly timed it could manifest similarly.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (52 preceding siblings ...)
  2023-05-16 17:02 ` bugzilla-daemon
@ 2023-05-23 18:21 ` bugzilla-daemon
  2023-05-26  8:28 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2023-05-23 18:21 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #54 from Alex Deucher (alexdeucher@gmail.com) ---
Does the patch in https://bugzilla.kernel.org/attachment.cgi?id=303064 make a
difference?  It would be nice to remove the special treatment for hawaii if it
is not required.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (53 preceding siblings ...)
  2023-05-23 18:21 ` bugzilla-daemon
@ 2023-05-26  8:28 ` bugzilla-daemon
  2023-07-06  8:04 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2023-05-26  8:28 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #55 from Harald Judt (h.judt@gmx.at) ---
Unfortunately with the patch applied to 6.3.4 it causes the old problem. The
screen stays dark, USB keyboard offline when trying to resume. So special
treatment is still required it seems.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (54 preceding siblings ...)
  2023-05-26  8:28 ` bugzilla-daemon
@ 2023-07-06  8:04 ` bugzilla-daemon
  2023-07-06 14:51 ` bugzilla-daemon
  2023-07-06 15:03 ` bugzilla-daemon
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2023-07-06  8:04 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #56 from Harald Judt (h.judt@gmx.at) ---
I think that the issue with VT-switching is not fixed by the commit, but by
another measure, that is switching to a text console before hibernating (the
script I use has an option to do this). This seems to prevent the freezes.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (55 preceding siblings ...)
  2023-07-06  8:04 ` bugzilla-daemon
@ 2023-07-06 14:51 ` bugzilla-daemon
  2023-07-06 15:03 ` bugzilla-daemon
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2023-07-06 14:51 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #57 from Alex Deucher (alexdeucher@gmail.com) ---
Does this patch help?
https://gitlab.freedesktop.org/drm/amd/uploads/64dc2a05039b583e89da17309969fa50/0001-client-register-fix-plus-fbdev-debug-noise-2.patch

It's pretty noisy.  The meat of the patch is this hunk:

diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c
index 76e46713b2f0..5d28c54b2512 100644
--- a/drivers/gpu/drm/drm_fb_helper.c
+++ b/drivers/gpu/drm/drm_fb_helper.c
@@ -2634,10 +2678,12 @@ void drm_fbdev_generic_setup(struct drm_device *dev,
                preferred_bpp = 32;
        fb_helper->preferred_bpp = preferred_bpp;

+       drm_client_register(&fb_helper->client);
+
        ret = drm_fbdev_client_hotplug(&fb_helper->client);
        if (ret)
                drm_dbg_kms(dev, "client hotplug ret=%d\n", ret);

-       drm_client_register(&fb_helper->client);
+       drm_warn(dev, "%s:%d\n", __FILE__, __LINE__);
 }
 EXPORT_SYMBOL(drm_fbdev_generic_setup);

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply related	[flat|nested] 59+ messages in thread

* [Bug 216119] 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390
  2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
                   ` (56 preceding siblings ...)
  2023-07-06 14:51 ` bugzilla-daemon
@ 2023-07-06 15:03 ` bugzilla-daemon
  57 siblings, 0 replies; 59+ messages in thread
From: bugzilla-daemon @ 2023-07-06 15:03 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=216119

--- Comment #58 from Alex Deucher (alexdeucher@gmail.com) ---
Nevermind, sorry, wrong bug.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 59+ messages in thread

end of thread, other threads:[~2023-07-06 15:03 UTC | newest]

Thread overview: 59+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-12 21:42 [Bug 216119] New: 087451f372bf76d breaks hibernation on amdgpu Radeon R9 390 bugzilla-daemon
2022-06-12 21:46 ` [Bug 216119] " bugzilla-daemon
2022-06-13 10:27 ` bugzilla-daemon
2022-06-13 13:48 ` bugzilla-daemon
2022-06-16 18:40 ` bugzilla-daemon
2022-06-16 19:15 ` bugzilla-daemon
2022-06-16 19:16 ` bugzilla-daemon
2022-06-16 19:24 ` bugzilla-daemon
2022-06-16 19:35 ` bugzilla-daemon
2022-06-16 19:47 ` bugzilla-daemon
2022-06-16 19:55 ` bugzilla-daemon
2022-06-16 21:57 ` bugzilla-daemon
2022-06-16 22:36 ` bugzilla-daemon
2022-06-21 14:08 ` bugzilla-daemon
2022-06-21 14:08 ` bugzilla-daemon
2022-06-21 14:08 ` bugzilla-daemon
2022-06-21 14:09 ` bugzilla-daemon
2022-06-21 22:33 ` bugzilla-daemon
2022-06-22 13:22 ` bugzilla-daemon
2022-06-22 21:08 ` bugzilla-daemon
2022-06-24 19:51 ` bugzilla-daemon
2022-06-27 16:20 ` bugzilla-daemon
2022-06-27 19:26 ` bugzilla-daemon
2022-06-27 23:48 ` bugzilla-daemon
2022-06-28 15:43 ` bugzilla-daemon
2022-06-28 21:12 ` bugzilla-daemon
2022-06-28 21:33 ` bugzilla-daemon
2022-06-28 21:33 ` bugzilla-daemon
2022-06-29  6:16 ` bugzilla-daemon
2022-06-29 13:00 ` bugzilla-daemon
2022-06-29 13:30 ` bugzilla-daemon
2022-06-29 13:40 ` bugzilla-daemon
2022-07-16 22:39 ` bugzilla-daemon
2022-07-16 22:41 ` bugzilla-daemon
2022-08-09  5:04 ` bugzilla-daemon
2022-08-09 18:53 ` bugzilla-daemon
2022-08-09 18:55 ` bugzilla-daemon
2022-08-09 19:07 ` bugzilla-daemon
2022-08-09 19:38 ` bugzilla-daemon
2022-08-25  8:37 ` bugzilla-daemon
2022-10-13 19:30 ` bugzilla-daemon
2022-10-13 20:39 ` bugzilla-daemon
2022-10-15  9:02 ` bugzilla-daemon
2022-10-20 14:13 ` bugzilla-daemon
2022-10-20 19:22 ` bugzilla-daemon
2022-10-20 21:59 ` bugzilla-daemon
2022-10-21 20:11 ` bugzilla-daemon
2022-10-24 21:19 ` bugzilla-daemon
2022-12-15 20:39 ` bugzilla-daemon
2022-12-15 20:40 ` bugzilla-daemon
2022-12-16  8:12 ` bugzilla-daemon
2023-02-03 11:25 ` bugzilla-daemon
2023-05-16 16:21 ` bugzilla-daemon
2023-05-16 17:02 ` bugzilla-daemon
2023-05-23 18:21 ` bugzilla-daemon
2023-05-26  8:28 ` bugzilla-daemon
2023-07-06  8:04 ` bugzilla-daemon
2023-07-06 14:51 ` bugzilla-daemon
2023-07-06 15:03 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).