[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
Since beginning of September the bug disappeared for me. I'm not sure what update caused it but the usual suspects are: linux- image-5.4.0-45-generic:amd64 (5.4.0-45.49~18.04.2, automatic) with its kernel module amdgpu.ko or some xorg-...-hwe parts or a combination of them. But I tried with a boot of a kernel 5.3.0-40 and the bug emerged again. So it is more likely that it was a kernel related problem. I have to note that I removed the line with "EnablePageFlip" within the configuration file "/usr/share/X11/xorg.conf.d/10-amdgpu.conf" of my suggested workaround #54 like this: Section "OutputClass" Identifier "AMDgpu" MatchDriver "amdgpu" Driver "amdgpu" EndSection -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
For all who used the workaround #61: The current update xserver-xorg- video-amdgpu-hwe-18.04:amd64 19.0.1-1ubuntu1~18.04.1 19.1.0-1~18.04.1 overwrites the file /usr/lib/xorg/modules/drivers/amdgpu_drv.so (file date May 21 09:16) and the bug returns again. It is one step forward one step back ... Hence either apply the workaround #61 again or step back to my suggested workaround #54. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
I can confirm that #61 removes the bug. I'm running Kubuntu 18.04 with a hwe kernel 5.3.0-51-generic #44~18.04.2-Ubuntu. (Not 5.3.0-53 because it contains a power off bug.) Great! Now I hope it will find a way to an "official" update. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
@jose: The above workaround seems to be related with your patch mentioned at #42. The function "amdgpu_present_check_flip()" returns prematurely if the variable "info->allowPageFlip" is set to false. "info->allowPageFlip" contains the evaluation of the configuration "OPTION_PAGE_FLIP" evaluated from the option setting "EnablePageFlip". So the mentioned part of code where the patch is located is never processed. Maybe this helps a piece more. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
At least for me I found a reproducible workaround for the resume bug. I found it more or less with try and error. I added the option "EnablePageFlip" to the configuration file "/usr/share/X11/xorg.conf.d/10-amdgpu.conf" like this: Section "OutputClass" Identifier "AMDgpu" MatchDriver "amdgpu" Driver "amdgpu" Option "EnablePageFlip" "off" EndSection and restarted. With this option set my computer always return from suspend. I do not really know about the impact of "EnablePageFlip" but I do not feel any significant degradation of video performance. Maybe this will help to catch the annoying bug. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
@jose: It seems that I already have installed a "amdgpu_drv.so" containing your mentioned patch. My package manager claims that I have installed "xserver-xorg-video- amdgpu-hwe-18.04_19.0.1-1ubuntu1~18.04.1_amd64.deb" with version "19.0.1-1ubuntu1~18.04.1". I compared the binary deb-package of my local apt-archive with the package provided at launchpad.net and tracked the originating sources. They already contain the patch. Unfortunately it seems that the patch does not work for me. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
@Richard: I tried your suggestion without luck. The screen remains black, the backlight was switched on. To verify I tried multiple times. The only true workaround (with KDE) is to switch the compositor off before turning into sleep. You have to switch the compositor on after return from suspend. Somewhere I've found a systemctl script to manage this automatically, but I experienced the script's working not reliable. With KDE you have to press Shift-Alt-F12 to toggle manually the compositor's state. This is the output after returning from suspend with compositor switched off: klaus@Lin:~$ sudo systemctl status plasma-restart@$USER.service ● plasma-restart@klaus.service - Plasma Restart Service Loaded: loaded (/etc/systemd/system/plasma-restart@.service; indirect; vendor preset: enabled) Active: inactive (dead) Mai 03 16:20:59 Lin systemd[1]: plasma-restart@klaus.service: Unit not needed anymore. Stopping. Mai 03 16:20:59 Lin systemd[1]: plasma-restart@klaus.service: Failed to enqueue stop job, ignoring: Transaction is destructive. Mai 03 16:20:59 Lin systemd[1]: Starting Plasma Restart Service... Mai 03 16:20:59 Lin sudo[3652]:klaus : TTY=unknown ; PWD=/home/klaus ; USER=klaus ; COMMAND=/bin/bash -c pkill -ABRT plasmashell Mai 03 16:20:59 Lin sudo[3652]: pam_unix(sudo:session): session opened for user klaus by (uid=0) Mai 03 16:20:59 Lin sudo[3652]: pam_unix(sudo:session): session closed for user klaus Mai 03 16:20:59 Lin systemd[1]: Started Plasma Restart Service. Mai 03 16:20:59 Lin systemd[1]: plasma-restart@klaus.service: Unit not needed anymore. Stopping. Mai 03 16:20:59 Lin systemd[1]: Stopped Plasma Restart Service. Something seems to be wrong, but I'm not the specialist for systemctl scripts. Regards, Klaus -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
@jose: I'm not able to manage a setup to verify your reported bug fix. Sorry. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
@jose: The next days I'll try to verify if this fix will remove the bug with my computer. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
@Richard: Did you mean Ubuntu 20.04? What kernel have you running (uname -r)? -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Dependencies.txt
apport information ** Attachment added: "Dependencies.txt" https://bugs.launchpad.net/bugs/1849084/+attachment/5353477/+files/Dependencies.txt -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
ProblemType: Bug ApportVersion: 2.20.9-0ubuntu7.14 Architecture: amd64 CurrentDesktop: KDE DistroRelease: Ubuntu 18.04 InstallationDate: Installed on 2019-06-17 (301 days ago) InstallationMedia: Kubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210) Package: xserver-xorg-video-amdgpu PackageArchitecture: all ProcVersionSignature: Ubuntu 5.3.0-46.38~18.04.1-generic 5.3.18 Tags: bionic third-party-packages Uname: Linux 5.3.0-46-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo _MarkForUpload: True ** Tags added: bionic third-party-packages -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] ProcCpuinfoMinimal.txt
apport information ** Attachment added: "ProcCpuinfoMinimal.txt" https://bugs.launchpad.net/bugs/1849084/+attachment/5353478/+files/ProcCpuinfoMinimal.txt -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] ProcEnviron.txt
apport information ** Attachment added: "ProcEnviron.txt" https://bugs.launchpad.net/bugs/1849084/+attachment/5353479/+files/ProcEnviron.txt -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
I can confirm that with switched off compositor (KDE, Shift-ALT-F12) resume is working. But I think the compositor act as trigger only and is not the reason for the bug. I've attached the relevant journalctl output of a current unsuccessful resume. I started the sleep at 13th april about 20:28:06 and tried to resume about 20:28:20. Some minutes later I logged in via ssh and initialized a reboot. ** Attachment added: "Journalctl output of an unsusccessful resume" https://bugs.launchpad.net/ubuntu/+source/plasma-desktop/+bug/1849084/+attachment/5353469/+files/journalctl-20200413.txt -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
P.B. I tried to verify your observation. Without luck. First I generated a Windows-10 bootable USB drive and managed to install and run the "AMD Driver Auto-detect tool". On Windows it was successful to set the computer into standby and resume. Then I've done a warm-start of the computer an booted into Linux. Now I was able to set the machine into standby and back to resume successfully. The next experiment was to do a power down reset and try the standby/resume with Linux again. It stopped with a blank black screen with backlight switched on. After a warm start (Alt-SysReq-B) all subsequent standby/resume cycles worked perfectly. My guess is that after a warm start some GPU register settings remain untouched causing success of the resume. Or in other words, the initial setup of the GPU is missing something which is done with the first (unsuccessful) standby/resume after power up. My ubuntu kernel version is meanwhile 5.3.0-46-generic. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
This is a very interesting observation! In one of my previous posts I described the fact that after the first unsuccessful resume and a following soft-reset with Alt+SysReq+B all subsequent resumes will succeed. My guess was that there was something changed in the GPU's hardware registers before or after the first resume. It cannot be any software influence since the software started again. After a cold reset the game starts again. My assumption was that the GPU's hardware register change was volatile. Maybe the "AMD Driver Auto-detect tool" stores this one time change non- volatile in any kind of configuration storage element within the GPU. Then it behaves the same like you described. Currently I do not know of any dual use of drivers between Linux and Windows, but to have a built- in non-volatile configuration storage supporting the GPU is very likely. Unfortunately I do not have a dual boot machine. I'm running only Linux. So I'll try to create a USB-stick based Windows 10 to verify your experience. It will take some time. Again, very interesting ... -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
The above mentioned workaround (#27) is working again after this updates: $ cat /var/log/apt/history.log Start-Date: 2020-03-16 19:54:48 Commandline: packagekit role='update-packages' Requested-By: klaus (1000) Install: linux-image-5.3.0-42-generic:amd64 (5.3.0-42.34~18.04.1, automatic), linux-headers-5.3.0-42-generic:amd64 (5.3.0-42.34~18.04.1, automatic), linux-modules-extra-5.3.0-42-generic:amd64 (5.3.0-42.34~18.04.1, automatic), linux-headers-5.3.0-42:amd64 (5.3.0-42.34~18.04.1, automatic), linux-modules-5.3.0-42-generic:amd64 (5.3.0-42.34~18.04.1, automatic) Upgrade: linux-libc-dev:amd64 (4.15.0-88.88, 4.15.0-91.92), linux-source-4.15.0:amd64 (4.15.0-88.88, 4.15.0-91.92), linux-headers-generic-hwe-18.04:amd64 (5.3.0.40.97, 5.3.0.42.99), linux-source-5.3.0:amd64 (5.3.0-40.32~18.04.1, 5.3.0-42.34~18.04.1), linux-source:amd64 (4.15.0.88.80, 4.15.0.91.83), linux-image-generic-hwe-18.04:amd64 (5.3.0.40.97, 5.3.0.42.99), linux-signed-generic-hwe-18.04:amd64 (5.3.0.40.97, 5.3.0.42.99), linux-generic-hwe-18.04:amd64 (5.3.0.40.97, 5.3.0.42.99) End-Date: 2020-03-16 19:55:27 Start-Date: 2020-03-17 18:41:03 Commandline: packagekit role='update-packages' Requested-By: klaus (1000) Upgrade: libicu60:amd64 (60.2-3ubuntu3, 60.2-3ubuntu3.1), libicu60:i386 (60.2-3ubuntu3, 60.2-3ubuntu3.1) End-Date: 2020-03-17 18:41:05 -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
Yes it was only a workaround. The workaround running well for a few days until this update: $ cat /var/log/apt/history.log Start-Date: 2020-03-02 21:13:02 Commandline: packagekit role='update-packages' Requested-By: klaus (1000) Upgrade: libegl-mesa0:amd64 (19.2.8-0ubuntu0~18.04.2, 19.2.8-0ubuntu0~18.04.3), devolo-dlan-cockpit:amd64 (5.1.1-0, 5.1.2-0), libglapi-mesa:amd64 (19.2.8-0ubuntu0~18.04.2, 19.2.8-0ubuntu0~18.04.3), libarchive13:amd64 (3.2.2-3.1ubuntu0.5, 3.2.2-3.1ubuntu0.6), libxatracker2:amd64 (19.2.8-0ubuntu0~18.04.2, 19.2.8-0ubuntu0~18.04.3), libegl1-mesa:amd64 (19.2.8-0ubuntu0~18.04.2, 19.2.8-0ubuntu0~18.04.3), libgbm1:amd64 (19.2.8-0ubuntu0~18.04.2, 19.2.8-0ubuntu0~18.04.3), libwayland-egl1-mesa:amd64 (19.2.8-0ubuntu0~18.04.2, 19.2.8-0ubuntu0~18.04.3), libgl1-mesa-dri:amd64 (19.2.8-0ubuntu0~18.04.2, 19.2.8-0ubuntu0~18.04.3), libgl1-mesa-glx:amd64 (19.2.8-0ubuntu0~18.04.2, 19.2.8-0ubuntu0~18.04.3), mesa-vdpau-drivers:amd64 (19.2.8-0ubuntu0~18.04.2, 19.2.8-0ubuntu0~18.04.3), mesa-va-drivers:amd64 (19.2.8-0ubuntu0~18.04.2, 19.2.8-0ubuntu0~18.04.3), libglx-mesa0:amd64 (19.2.8-0ubuntu0~18.04.2, 19.2.8-0ubuntu0~18.04.3) End-Date: 2020-03-02 21:13:07 Now the behavior is the same as before. Start of a new game :-) -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
Sorry, I made a mistake I'm running kubuntu (not Ubuntu like mentioned in #24). Indeed I can confirm that with a switched off compositor resume will work. And I can confirm that resume only fails the first time after a power up reset of the computer. When the screen turn blank after the first time resume I do a login via SSH and initiate a reboot. After this all suspend / resume cycles will work perfectly. It is strange that a compositor's bug will affect the amdgpu driver module. This snippet of journalctl log shows a line emitted by the amdgpu module where a test runs into a timeout: Feb 27 10:43:02 Lin kernel: PM: suspend exit Feb 27 10:43:02 Lin systemd-sleep[2125]: System resumed. Feb 27 10:43:02 Lin kernel: [drm] pstate TEST_DEBUG_DATA: 0xB7F6 Feb 27 10:43:02 Lin kernel: [ cut here ] Feb 27 10:43:02 Lin kernel: WARNING: CPU: 2 PID: 2191 at /build/linux-hwe-LNyirI/linux-hwe-5.3.0/drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:932 dcn10_verify_allow_pstate_change_high+0x37/0x2d0 [amdgpu] I've attached the log parts of a failing resume (compositor is switched on): * 10:40 Start * 10:42 Suspend 1st time * 10:43 Resume 1st time * 10:45 reboot * 10:46 Suspend 2nd time * 10:47 Resume second time I think I'll try the workaround mentioned in https://forum.manjaro.org/t /lenovo-laptop-wont-resume-after-sleep/105233/27 ** Attachment added: "journalctl-20200227-resume-kwin.txt" https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-amdgpu/+bug/1849084/+attachment/5331541/+files/journalctl-20200227-resume-kwin.txt -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
Please note the lines * Feb 16 15:47:43 Lin kernel: [drm] pstate TEST_DEBUG_DATA: 0xB7F6 and * Feb 16 15:47:43 Lin kernel: [drm] pstate TEST_DEBUG_DATA: 0x37F6 (I've cut the repeating parts) The lines are emitted in the kernel source code at ../drivers/gpu/drm/amd/display/dc/dcn10/ by the function hubbub1_verify_allow_pstate_change_high() ** Attachment added: "journalctl: suspend resume failing" https://bugs.launchpad.net/ubuntu/+source/plasma-desktop/+bug/1849084/+attachment/5328701/+files/suspend-resume-blank-screen.txt -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
Back to freeze on resume. I'm running Ubuntu 18.04.4 LTS on a Lenovo Desktop V530-15ARR with AMD Ryzen 5 2400G with Vega 11 Graphics and a kernel 5.3.0-28-generic. With a kernel 5.0.0-29 suspend and resume were perfect (from the users point of view). But I had sometimes graphic freezes during normal usage like browsing. So I upgraded the kernel to 5.3.0-28. This kernel shows suspend and resume problems. I think I've found a workaround for the failing suspend described at https://bugs.launchpad.net/ubuntu/+source/linux-signed-hwe/+bug/1851054 . But now resume sometimes traps into a black screen. It seems that only the first resume after a cold start fails. When resume fail I'm able to login via SSH and to initiate a reboot. Subsequent suspend and resumes do survive. Since I've repeated only a few times the same experiment I'm not 100% sure about this. Working resume: Please see attachment suspend-resume-ok.txt Failing resume: Please see attachment suspend-resume-blank-screen,txt -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp
[Ubuntu-x-swat] [Bug 1849084] Re: Freeze on system-resume caused by kwin and amdgpu driver
** Attachment added: "journalctl: suspend resume working" https://bugs.launchpad.net/ubuntu/+source/plasma-desktop/+bug/1849084/+attachment/5328692/+files/suspend-resume-ok.txt -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu. https://bugs.launchpad.net/bugs/1849084 Title: Freeze on system-resume caused by kwin and amdgpu driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kwin/+bug/1849084/+subscriptions ___ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp