]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: fix PSR-SU/DSC interoperability support
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Thu, 5 Jan 2023 15:54:12 +0000 (10:54 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 Jul 2023 10:16:44 +0000 (12:16 +0200)
commit9fbd2c2816044ee2203e01dbd93fbd465769d40b
treed075206436392b68e331fd8003fe410d08d7c071
parent16cc3f57e829693430f865b57101105188c2b02d
drm/amd/display: fix PSR-SU/DSC interoperability support

BugLink: https://bugs.launchpad.net/bugs/2025067
[ Upstream commit 13b90cf900ab69dd5cab3cc5035bc7614037e64e ]

Currently, there are issues with enabling PSR-SU + DSC. This stems from
the fact that DSC imposes a slice height on transmitted video data and
we are not conforming to that slice height in PSR-SU regions. So, pass
slice_height into su_y_granularity to feed the DSC slice height into
PSR-SU code.

Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: 0b5dfe12755f ("drm/amd/display: fix a divided-by-zero error")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
drivers/gpu/drm/amd/display/modules/power/power_helpers.h