summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-02-26 00:04:19 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-02-26 00:04:19 +0000
commit856cef7c40e4bbd576b535780ac64ff400ff331e (patch)
tree0464da73cd6af14d2b34aa66c254182616a27482 /sys
parent394ba98e5d7e00c9514e16ae124554487d1c6851 (diff)
drm/amd/display: Fix MST Null Ptr for RV
From Fangzhi Zuo 7407c61f43b66e90ad127d0cdd13cbc9d87141a5 in linux-6.6.y/6.6.18 e6a7df96facdcf5b1f71eb3ec26f2f9f6ad61e57 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index c4e5c6ab034..9a3904921e1 100644
--- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -10364,11 +10364,13 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
goto fail;
}
- ret = compute_mst_dsc_configs_for_state(state, dm_state->context, vars);
- if (ret) {
- DRM_DEBUG_DRIVER("compute_mst_dsc_configs_for_state() failed\n");
- ret = -EINVAL;
- goto fail;
+ if (dc_resource_is_dsc_encoding_supported(dc)) {
+ ret = compute_mst_dsc_configs_for_state(state, dm_state->context, vars);
+ if (ret) {
+ DRM_DEBUG_DRIVER("compute_mst_dsc_configs_for_state() failed\n");
+ ret = -EINVAL;
+ goto fail;
+ }
}
ret = dm_update_mst_vcpi_slots_for_dsc(state, dm_state->context, vars);