All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 217892] New: [amdgpu]: system freezes when trying to turn back on monitor
@ 2023-09-09 10:19 bugzilla-daemon
  2023-09-09 11:00   ` Bagas Sanjaya
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: bugzilla-daemon @ 2023-09-09 10:19 UTC (permalink / raw)
  To: dri-devel

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

            Bug ID: 217892
           Summary: [amdgpu]: system freezes when trying to turn back on
                    monitor
           Product: Drivers
           Version: 2.5
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Video(DRI - non Intel)
          Assignee: drivers_video-dri@kernel-bugs.osdl.org
          Reporter: mmk+bugs@levelnine.at
        Regression: No

Hi,

My setup is a dual monitor 4K/144Hz with running sway on it. Both monitors are
connected via DP to a Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX
7900 XT/7900 XTX]. Usually if i don't change monitor settings everything works
as expected. The monitors do also wake up flawlessly after system idling. 

However, sometimes i turn off the second monitor (for example for playing
games). For that i made a shortcut in sway which looks like this. 
> bindsym $mod+Shift+F12 output DP-2 toggle

Now, turning the monitor of works as expected. However, turning it back on i
encounter following erros/problems:
Main Workspace (Desktop) freezes, second monitor tries to get turned on. (The
monitor led goes up)
After some time (couple of seconds, around 10-15sec) the main desktop works
again, the second screen goes off again.
At that point i usually have to reboot the system to get the second monitor
back.

In dmesg is see following entries:
[ 8623.325357] [drm] enabling link 1 failed: 15
[ 8623.382238] [drm] REG_WAIT timeout 10us * 5000 tries -
enc32_stream_encoder_dp_unblank line:348
[ 8623.437493] [drm] REG_WAIT timeout 10us * 5000 tries -
enc32_stream_encoder_dp_unblank line:357
[ 8638.435963] [drm:amdgpu_dm_atomic_check] *ERROR* [CRTC:81:crtc-3] hw_done or
flip_done timed out

This is also something which can be reproduces quite easily. However sometimes
it works almost without problems. (in that case, the monitor comes back but the
desktop on the main monitor looks distorted/corruped - maximizing a application
fixes that)

This also seems to be a regression. With kernel 6.2 and 6.3 this worked as
expected.

I'm using following kernel:
Linux x2 6.5.2-gentoo #1 SMP PREEMPT_DYNAMIC Sat Sep  9 00:29:42 CEST 2023
x86_64 AMD Ryzen 9 7950X3D 16-Core Processor AuthenticAMD GNU/Linux

As soon as there is a linux-6.6 kernel available in gentoo i'll try that one
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] 6+ messages in thread

* Re: [Bug 217892] New: [amdgpu]: system freezes when trying to turn back on monitor
  2023-09-09 10:19 [Bug 217892] New: [amdgpu]: system freezes when trying to turn back on monitor bugzilla-daemon
@ 2023-09-09 11:00   ` Bagas Sanjaya
  2023-09-09 11:00 ` [Bug 217892] " bugzilla-daemon
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Bagas Sanjaya @ 2023-09-09 11:00 UTC (permalink / raw)
  To: bugzilla-daemon, dri-devel, Michael Mair-Keimberger
  Cc: Linux Regressions, Xinhui, Pan, Linux AMDGPU,
	Linux Kernel Mailing List, Alex Deucher, Christian König

[-- Attachment #1: Type: text/plain, Size: 2482 bytes --]

On Sat, Sep 09, 2023 at 10:19:36AM +0000, bugzilla-daemon@kernel.org wrote:
> Hi,
> 
> My setup is a dual monitor 4K/144Hz with running sway on it. Both monitors are
> connected via DP to a Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX
> 7900 XT/7900 XTX]. Usually if i don't change monitor settings everything works
> as expected. The monitors do also wake up flawlessly after system idling. 
> 
> However, sometimes i turn off the second monitor (for example for playing
> games). For that i made a shortcut in sway which looks like this. 
> > bindsym $mod+Shift+F12 output DP-2 toggle
> 
> Now, turning the monitor of works as expected. However, turning it back on i
> encounter following erros/problems:
> Main Workspace (Desktop) freezes, second monitor tries to get turned on. (The
> monitor led goes up)
> After some time (couple of seconds, around 10-15sec) the main desktop works
> again, the second screen goes off again.
> At that point i usually have to reboot the system to get the second monitor
> back.
> 
> In dmesg is see following entries:
> [ 8623.325357] [drm] enabling link 1 failed: 15
> [ 8623.382238] [drm] REG_WAIT timeout 10us * 5000 tries -
> enc32_stream_encoder_dp_unblank line:348
> [ 8623.437493] [drm] REG_WAIT timeout 10us * 5000 tries -
> enc32_stream_encoder_dp_unblank line:357
> [ 8638.435963] [drm:amdgpu_dm_atomic_check] *ERROR* [CRTC:81:crtc-3] hw_done or
> flip_done timed out
> 
> This is also something which can be reproduces quite easily. However sometimes
> it works almost without problems. (in that case, the monitor comes back but the
> desktop on the main monitor looks distorted/corruped - maximizing a application
> fixes that)
> 
> This also seems to be a regression. With kernel 6.2 and 6.3 this worked as
> expected.
> 
> I'm using following kernel:
> Linux x2 6.5.2-gentoo #1 SMP PREEMPT_DYNAMIC Sat Sep  9 00:29:42 CEST 2023
> x86_64 AMD Ryzen 9 7950X3D 16-Core Processor AuthenticAMD GNU/Linux
> 
> As soon as there is a linux-6.6 kernel available in gentoo i'll try that one
> too.

You may try compiling your own kernel instead of having to wait for the kernel
package to be updated. See
Documentation/admin-guide/quickly-build-trimmed-linux.rst for full
instructions.

In any case, please also report to freedesktop tracker [1].

Thanks.

[1]: https://gitlab.freedesktop.org/drm/amd/-/issues

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: [Bug 217892] New: [amdgpu]: system freezes when trying to turn back on monitor
@ 2023-09-09 11:00   ` Bagas Sanjaya
  0 siblings, 0 replies; 6+ messages in thread
From: Bagas Sanjaya @ 2023-09-09 11:00 UTC (permalink / raw)
  To: bugzilla-daemon, dri-devel, Michael Mair-Keimberger
  Cc: Alex Deucher, Christian König, Pan, Xinhui, Linux AMDGPU,
	Linux Regressions, Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 2482 bytes --]

On Sat, Sep 09, 2023 at 10:19:36AM +0000, bugzilla-daemon@kernel.org wrote:
> Hi,
> 
> My setup is a dual monitor 4K/144Hz with running sway on it. Both monitors are
> connected via DP to a Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX
> 7900 XT/7900 XTX]. Usually if i don't change monitor settings everything works
> as expected. The monitors do also wake up flawlessly after system idling. 
> 
> However, sometimes i turn off the second monitor (for example for playing
> games). For that i made a shortcut in sway which looks like this. 
> > bindsym $mod+Shift+F12 output DP-2 toggle
> 
> Now, turning the monitor of works as expected. However, turning it back on i
> encounter following erros/problems:
> Main Workspace (Desktop) freezes, second monitor tries to get turned on. (The
> monitor led goes up)
> After some time (couple of seconds, around 10-15sec) the main desktop works
> again, the second screen goes off again.
> At that point i usually have to reboot the system to get the second monitor
> back.
> 
> In dmesg is see following entries:
> [ 8623.325357] [drm] enabling link 1 failed: 15
> [ 8623.382238] [drm] REG_WAIT timeout 10us * 5000 tries -
> enc32_stream_encoder_dp_unblank line:348
> [ 8623.437493] [drm] REG_WAIT timeout 10us * 5000 tries -
> enc32_stream_encoder_dp_unblank line:357
> [ 8638.435963] [drm:amdgpu_dm_atomic_check] *ERROR* [CRTC:81:crtc-3] hw_done or
> flip_done timed out
> 
> This is also something which can be reproduces quite easily. However sometimes
> it works almost without problems. (in that case, the monitor comes back but the
> desktop on the main monitor looks distorted/corruped - maximizing a application
> fixes that)
> 
> This also seems to be a regression. With kernel 6.2 and 6.3 this worked as
> expected.
> 
> I'm using following kernel:
> Linux x2 6.5.2-gentoo #1 SMP PREEMPT_DYNAMIC Sat Sep  9 00:29:42 CEST 2023
> x86_64 AMD Ryzen 9 7950X3D 16-Core Processor AuthenticAMD GNU/Linux
> 
> As soon as there is a linux-6.6 kernel available in gentoo i'll try that one
> too.

You may try compiling your own kernel instead of having to wait for the kernel
package to be updated. See
Documentation/admin-guide/quickly-build-trimmed-linux.rst for full
instructions.

In any case, please also report to freedesktop tracker [1].

Thanks.

[1]: https://gitlab.freedesktop.org/drm/amd/-/issues

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* [Bug 217892] [amdgpu]: system freezes when trying to turn back on monitor
  2023-09-09 10:19 [Bug 217892] New: [amdgpu]: system freezes when trying to turn back on monitor bugzilla-daemon
  2023-09-09 11:00   ` Bagas Sanjaya
@ 2023-09-09 11:00 ` bugzilla-daemon
  2023-09-09 15:09 ` bugzilla-daemon
  2023-09-10 11:02 ` bugzilla-daemon
  3 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2023-09-09 11:00 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #1 from Bagas Sanjaya (bagasdotme@gmail.com) ---
On Sat, Sep 09, 2023 at 10:19:36AM +0000, bugzilla-daemon@kernel.org wrote:
> Hi,
> 
> My setup is a dual monitor 4K/144Hz with running sway on it. Both monitors
> are
> connected via DP to a Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon
> RX
> 7900 XT/7900 XTX]. Usually if i don't change monitor settings everything
> works
> as expected. The monitors do also wake up flawlessly after system idling. 
> 
> However, sometimes i turn off the second monitor (for example for playing
> games). For that i made a shortcut in sway which looks like this. 
> > bindsym $mod+Shift+F12 output DP-2 toggle
> 
> Now, turning the monitor of works as expected. However, turning it back on i
> encounter following erros/problems:
> Main Workspace (Desktop) freezes, second monitor tries to get turned on. (The
> monitor led goes up)
> After some time (couple of seconds, around 10-15sec) the main desktop works
> again, the second screen goes off again.
> At that point i usually have to reboot the system to get the second monitor
> back.
> 
> In dmesg is see following entries:
> [ 8623.325357] [drm] enabling link 1 failed: 15
> [ 8623.382238] [drm] REG_WAIT timeout 10us * 5000 tries -
> enc32_stream_encoder_dp_unblank line:348
> [ 8623.437493] [drm] REG_WAIT timeout 10us * 5000 tries -
> enc32_stream_encoder_dp_unblank line:357
> [ 8638.435963] [drm:amdgpu_dm_atomic_check] *ERROR* [CRTC:81:crtc-3] hw_done
> or
> flip_done timed out
> 
> This is also something which can be reproduces quite easily. However
> sometimes
> it works almost without problems. (in that case, the monitor comes back but
> the
> desktop on the main monitor looks distorted/corruped - maximizing a
> application
> fixes that)
> 
> This also seems to be a regression. With kernel 6.2 and 6.3 this worked as
> expected.
> 
> I'm using following kernel:
> Linux x2 6.5.2-gentoo #1 SMP PREEMPT_DYNAMIC Sat Sep  9 00:29:42 CEST 2023
> x86_64 AMD Ryzen 9 7950X3D 16-Core Processor AuthenticAMD GNU/Linux
> 
> As soon as there is a linux-6.6 kernel available in gentoo i'll try that one
> too.

You may try compiling your own kernel instead of having to wait for the kernel
package to be updated. See
Documentation/admin-guide/quickly-build-trimmed-linux.rst for full
instructions.

In any case, please also report to freedesktop tracker [1].

Thanks.

[1]: https://gitlab.freedesktop.org/drm/amd/-/issues

-- 
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] 6+ messages in thread

* [Bug 217892] [amdgpu]: system freezes when trying to turn back on monitor
  2023-09-09 10:19 [Bug 217892] New: [amdgpu]: system freezes when trying to turn back on monitor bugzilla-daemon
  2023-09-09 11:00   ` Bagas Sanjaya
  2023-09-09 11:00 ` [Bug 217892] " bugzilla-daemon
@ 2023-09-09 15:09 ` bugzilla-daemon
  2023-09-10 11:02 ` bugzilla-daemon
  3 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2023-09-09 15:09 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #2 from Michael Mair-Keimberger (mmk+bugs@levelnine.at) ---
Hello Bagas,

Thanks for the hint. 
I'll wait for the rc1 and then try with the latest kernel.

FYI: I've open a issue freedesktop issue [1]

[1] https://gitlab.freedesktop.org/drm/amd/-/issues/2836

BTW, i forgot to mentioned. I think the regression started with 6.4. I already
mentioned that it worked with 6.2 and 6.3 but i had problems with 6.4 already
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] 6+ messages in thread

* [Bug 217892] [amdgpu]: system freezes when trying to turn back on monitor
  2023-09-09 10:19 [Bug 217892] New: [amdgpu]: system freezes when trying to turn back on monitor bugzilla-daemon
                   ` (2 preceding siblings ...)
  2023-09-09 15:09 ` bugzilla-daemon
@ 2023-09-10 11:02 ` bugzilla-daemon
  3 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2023-09-10 11:02 UTC (permalink / raw)
  To: dri-devel

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

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

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

--- Comment #3 from Artem S. Tashkinov (aros@gmx.com) ---
AMDGPU driver bug tracker is here:
https://gitlab.freedesktop.org/drm/amd/-/issues

-- 
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] 6+ messages in thread

end of thread, other threads:[~2023-09-11 13:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-09 10:19 [Bug 217892] New: [amdgpu]: system freezes when trying to turn back on monitor bugzilla-daemon
2023-09-09 11:00 ` Bagas Sanjaya
2023-09-09 11:00   ` Bagas Sanjaya
2023-09-09 11:00 ` [Bug 217892] " bugzilla-daemon
2023-09-09 15:09 ` bugzilla-daemon
2023-09-10 11:02 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.