Fix slow refresh rate when AMD GPU screen in reverse prime mode

Bug #1987038 reported by Kai-Heng Feng
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HWE Next
Fix Released
Undecided
Unassigned
xserver-xorg-video-amdgpu (Ubuntu)
Fix Released
Medium
Unassigned
Focal
Fix Released
Medium
Unassigned
Jammy
Fix Released
Medium
Unassigned
Kinetic
Fix Released
Medium
Unassigned

Bug Description

[Impact]
When AMD GPU is a GPU screen using reverse prime and its the only display, the fresh rate is very slow.

[Fix]
Enable present extension for GPU screen so it can be a viable CRTC to be selected.

[Test]
On a I+A laptop and external displays are routed to AMDGPU, disable internal display like closing lid can observe the issue.

With the fix applied, the external display becomes very smooth.

[Where problems could occur]
I personally don't see why GPU screen can't use present extension, but this is Xorg so there might be some arcane reasons I didn't think of.

Changed in xserver-xorg-video-amdgpu (Ubuntu Jammy):
status: New → Confirmed
Changed in xserver-xorg-video-amdgpu (Ubuntu Kinetic):
status: New → Confirmed
importance: Undecided → Medium
Changed in xserver-xorg-video-amdgpu (Ubuntu Jammy):
importance: Undecided → Medium
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

debdiff for Unstable/Kinetic.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

debdiff for Jammy.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "xserver-xorg-video-amdgpu_22.0.0-3.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
tags: added: oem-priority originate-from-1979015 stella
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-amdgpu - 22.0.0-3

---------------
xserver-xorg-video-amdgpu (22.0.0-3) unstable; urgency=medium

  * Added patch from git to fix slow refresh rate with AMD GPU Screen
    output in reverse prime mode. (LP: #1987038)

 -- Kai-Heng Feng <email address hidden> Fri, 19 Aug 2022 13:16:55 +0800

Changed in xserver-xorg-video-amdgpu (Ubuntu Kinetic):
status: Confirmed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

sru uploaded

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

debdiff for Focal.

Changed in xserver-xorg-video-amdgpu (Ubuntu Focal):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Chris Halse Rogers (raof) wrote : Proposed package upload rejected

An upload of xserver-xorg-video-amdgpu to jammy-proposed has been rejected from the upload queue for the following reason: "This looks like an SRU-acceptable bug, but the uploaded package has weirdly-doubled patches and FTBFS. Please fix and reupload a package that builds! ☺".

Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello Kai-Heng, or anyone else affected,

Accepted xserver-xorg-video-amdgpu into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xserver-xorg-video-amdgpu/22.0.0-1ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in xserver-xorg-video-amdgpu (Ubuntu Jammy):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

I enabled jammy-proposed and upgrade xserver-xorg-video-amdgpu. Made sure Xorg was selected in GDM, then connected an external monitor which routes to AMDGPU instead of Intel. Close the lid to make the external monitor the single display, the refresh rate is smooth so the issue is resolved.

I also boot up an AMD APU laptop to test the package and no regression was found.

tags: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Timo Aaltonen (tjaalton)
Changed in hwe-next:
status: New → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hello Kai-Heng, or anyone else affected,

Accepted xserver-xorg-video-amdgpu into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xserver-xorg-video-amdgpu/19.1.0-1ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in xserver-xorg-video-amdgpu (Ubuntu Focal):
status: Confirmed → Fix Committed
tags: added: verification-needed verification-needed-focal
removed: verification-done
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-amdgpu - 22.0.0-1ubuntu0.1

---------------
xserver-xorg-video-amdgpu (22.0.0-1ubuntu0.1) jammy; urgency=medium

  * Added patch from git to fix slow refresh rate with AMD GPU Screen
    output in reverse prime mode. (LP: #1987038)

 -- Kai-Heng Feng <email address hidden> Mon, 22 Aug 2022 10:49:09 +0800

Changed in xserver-xorg-video-amdgpu (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for xserver-xorg-video-amdgpu has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Basically the same as Jammy.

I enabled focal-proposed and upgrade xserver-xorg-video-amdgpu. Made sure Wayland was not selected in GDM as Xorg is the default, then connected an external monitor which routes to AMDGPU instead of Intel. Close the lid to make the external monitor the single display, the refresh rate is smooth so the issue is resolved.

I also boot up an AMD APU laptop to test the package and no regression was found.

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xserver-xorg-video-amdgpu - 19.1.0-1ubuntu0.1

---------------
xserver-xorg-video-amdgpu (19.1.0-1ubuntu0.1) focal; urgency=medium

  * Added patch from git to fix slow refresh rate with AMD GPU Screen
    output in reverse prime mode. (LP: #1987038)

 -- Kai-Heng Feng <email address hidden> Wed, 24 Aug 2022 15:42:19 +0800

Changed in xserver-xorg-video-amdgpu (Ubuntu Focal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.