drm/amd/display: Fix DSC-re-computing
BugLink: https://bugs.launchpad.net/bugs/2101915
[ Upstream commit b9b5a82c532109a09f4340ef5cabdfdbb0691a9d ]
[Why]
This fixes a bug introduced by commit c536555451 ("drm/amd/display: dsc
mst re-compute pbn for changes on hub").
The change caused light-up issues with a second display that required
DSC on some MST docks.
[How]
Use Virtual DPCD for DSC caps in MST case.
[Limitations]
This change only affects MST DSC devices that follow specifications
additional changes are required to check for old MST DSC devices such as
ones which do not check for Virtual DPCD registers.
Reviewed-by: Swapnil Patel <swapnil.patel@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Agustin Gutierrez <agustin.gutierrez@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: 4641169a8c95 ("drm/amd/display: Fix incorrect DSC recompute trigger")
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 3f9f631f9b910c4aeafbeaee6ef08a3c193f0c29 linux-6.6.y)
[koichiroden: from v6.6.70, as a prerequisite for "drm/amd/display: Fix
incorrect DSC recompute trigger"]
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
This commit is contained in:
committed by
Stefan Bader
parent
79a4ab47c5
commit
dd8574ef16
@@ -1246,10 +1246,6 @@ static bool is_dsc_need_re_compute(
|
||||
if (dc_link->type != dc_connection_mst_branch)
|
||||
return false;
|
||||
|
||||
if (!(dc_link->dpcd_caps.dsc_caps.dsc_basic_caps.fields.dsc_support.DSC_SUPPORT ||
|
||||
dc_link->dpcd_caps.dsc_caps.dsc_basic_caps.fields.dsc_support.DSC_PASSTHROUGH_SUPPORT))
|
||||
return false;
|
||||
|
||||
for (i = 0; i < MAX_PIPES; i++)
|
||||
stream_on_link[i] = NULL;
|
||||
|
||||
@@ -1267,7 +1263,19 @@ static bool is_dsc_need_re_compute(
|
||||
continue;
|
||||
|
||||
aconnector = (struct amdgpu_dm_connector *) stream->dm_stream_context;
|
||||
if (!aconnector)
|
||||
if (!aconnector || !aconnector->dsc_aux)
|
||||
continue;
|
||||
|
||||
/*
|
||||
* Check if cached virtual MST DSC caps are available and DSC is supported
|
||||
* this change takes care of newer MST DSC capable devices that report their
|
||||
* DPCD caps as per specifications in their Virtual DPCD registers.
|
||||
|
||||
* TODO: implement the check for older MST DSC devices that do not conform to
|
||||
* specifications.
|
||||
*/
|
||||
if (!(aconnector->dc_sink->dsc_caps.dsc_dec_caps.is_dsc_supported ||
|
||||
aconnector->dc_link->dpcd_caps.dsc_caps.dsc_basic_caps.fields.dsc_support.DSC_PASSTHROUGH_SUPPORT))
|
||||
continue;
|
||||
|
||||
stream_on_link[new_stream_on_link_num] = aconnector;
|
||||
|
||||
Reference in New Issue
Block a user