Skip to content

Commit 6d181a2

Browse files
vgovind2hogander
authored andcommitted
drm/i915/xe2lpd: update the dsc feature capability
Update the global dsc flag based on the display capabilities reported. v1: define the field values instead of the magic number (JaniN) Bspec: 71161 Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Reviewed-by: Jouni Högander <jouni.hogander@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231001113155.80659-3-vinod.govindapillai@intel.com Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
1 parent 9a3acd8 commit 6d181a2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/gpu/drm/i915/display/intel_display_device.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,14 @@ static void __intel_display_device_info_runtime_init(struct drm_i915_private *i9
10721072
display_runtime->has_dsc = 0;
10731073
}
10741074

1075+
if (DISPLAY_VER(i915) >= 20) {
1076+
u32 cap = intel_de_read(i915, XE2LPD_DE_CAP);
1077+
1078+
if (REG_FIELD_GET(XE2LPD_DE_CAP_DSC_MASK, cap) ==
1079+
XE2LPD_DE_CAP_DSC_REMOVED)
1080+
display_runtime->has_dsc = 0;
1081+
}
1082+
10751083
return;
10761084

10771085
display_fused_off:

0 commit comments

Comments
 (0)