[Intel-gfx] [PATCH v1 3/3] drm/i915/xe2lpd: update the scaler feature capability

Vinod Govindapillai vinod.govindapillai at intel.com
Sun Oct 1 11:31:55 UTC 2023


Update the number of scalers per pipe 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 at intel.com>
---
 drivers/gpu/drm/i915/display/intel_display_device.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_display_device.c b/drivers/gpu/drm/i915/display/intel_display_device.c
index 2c891fe4d74b..bb4fdfba138c 100644
--- a/drivers/gpu/drm/i915/display/intel_display_device.c
+++ b/drivers/gpu/drm/i915/display/intel_display_device.c
@@ -1071,6 +1071,13 @@ void intel_display_device_info_runtime_init(struct drm_i915_private *i915)
 		if (REG_FIELD_GET(XE2LPD_DE_CAP_DSC_MASK, cap) ==
 		    XE2LPD_DE_CAP_DSC_REMOVED)
 			display_runtime->has_dsc = 0;
+
+		if (REG_FIELD_GET(XE2LPD_DE_CAP_SCALER_MASK, cap) ==
+		    XE2LPD_DE_CAP_SCALER_SINGLE) {
+			for_each_pipe(i915, pipe)
+				if (display_runtime->num_scalers[pipe])
+					display_runtime->num_scalers[pipe] = 1;
+		}
 	}
 
 	return;
-- 
2.34.1



More information about the Intel-gfx mailing list