Make AMD gpus choose YCbCr420 encoding automatically when required for 4k 60Hz output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Groovy |
Fix Released
|
Medium
|
Unassigned | ||
Hirsute |
Fix Released
|
Medium
|
Unassigned |
Bug Description
SRU Justification:
Impact:
On some setups, while the monitor and the gpu support display modes with pixel clocks of up to 600MHz, the link encoder might not. This prevents YCbCr444 and RGB encoding for 4k60Hz, but YCbCr420 encoding might still be possible. However, which color mode is used is decided before the link encoder capabilities are checked, causing the check to fail and discarding 4k60Hz from the list of possible display modes.
Fix:
This patch fixes the problem by retrying to find a display mode with YCbCr420 enforced and using it, if it is valid.
Testcase:
Tested on an Clevo NL50RU. General: Find a PC with a current AMD Radeon GPU, but only a hdmi 1.4 output (e.g. current Clevo laptops with AMD APU's). Connect a 4k@60Hz display supporting YCbCr420 encoding to the hdmi port. Without the patch the maximum that can be set via xrandr is 3840 × 2160 30Hz. With the Patch 3840 × 2160 60Hz can be selected which will use YCbCr420 automatically.
Patch already got accepted upstream for linux-next: https:/
Commit-hash: 14e4a095b29fd29
---
ProblemType: Bug
ApportVersion: 2.20.11-
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CasperMD5CheckR
CurrentDesktop: Budgie:GNOME
DistroRelease: Ubuntu 20.04
MachineType: TUXEDO TUXEDO Aura 15 Gen1
Package: linux (not installed)
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.187.9
Tags: focal
Uname: Linux 5.8.0-48-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 11/13/2020
dmi.bios.release: 7.3
dmi.bios.vendor: INSYDE Corp.
dmi.bios.version: 1.07.03RTR2
dmi.board.
dmi.board.name: AURA1501
dmi.board.vendor: TUXEDO Computers
dmi.board.version: Not Applicable
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: Notebook
dmi.chassis.
dmi.modalias: dmi:bvnINSYDECo
dmi.product.family: Not Applicable
dmi.product.name: TUXEDO Aura 15 Gen1
dmi.product.sku: AURA1501
dmi.product.
dmi.sys.vendor: TUXEDO
description: | updated |
tags: | added: patch |
description: | updated |
description: | updated |
Changed in linux (Ubuntu Hirsute): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Groovy): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-groovy removed: verification-needed-groovy |
tags: |
added: verification-done-focal removed: verification-needed-focal |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1922754
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.