OSDN Git Service

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)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Jan 2023 22:02:18 +0000 (17:02 -0500)
commit13b90cf900ab69dd5cab3cc5035bc7614037e64e
tree113770dcac3088a961abb15250e79dfdecf0c5ab
parent69939009bde70c87a4fa0d7e03e9d169ab853d88
drm/amd/display: fix PSR-SU/DSC interoperability support

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>
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