diff options
author | 2023-10-01 14:31:54 +0300 | |
---|---|---|
committer | 2023-10-11 13:54:58 +0300 | |
commit | 6d181a288e64f606e501f6f04f382edfbe4b1cd8 (patch) | |
tree | a9d2990c9715e4513ddcabd8673034b4ffba7c6c | |
parent | drm/i915/xe2lpd: display capability register definitions (diff) | |
download | wireguard-linux-6d181a288e64f606e501f6f04f382edfbe4b1cd8.tar.xz wireguard-linux-6d181a288e64f606e501f6f04f382edfbe4b1cd8.zip |
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>
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_display_device.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_display_device.c b/drivers/gpu/drm/i915/display/intel_display_device.c index 9f0266318a41..c38c5191afa4 100644 --- a/drivers/gpu/drm/i915/display/intel_display_device.c +++ b/drivers/gpu/drm/i915/display/intel_display_device.c @@ -1072,6 +1072,14 @@ static void __intel_display_device_info_runtime_init(struct drm_i915_private *i9 display_runtime->has_dsc = 0; } + if (DISPLAY_VER(i915) >= 20) { + u32 cap = intel_de_read(i915, XE2LPD_DE_CAP); + + if (REG_FIELD_GET(XE2LPD_DE_CAP_DSC_MASK, cap) == + XE2LPD_DE_CAP_DSC_REMOVED) + display_runtime->has_dsc = 0; + } + return; display_fused_off: |