[Intel-xe] [PATCH 4/6] drm/xe: Fix XE_LPDP and meteorlake display info.

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Fri Mar 31 10:24:17 UTC 2023


MTL has modular FIA, and LPDP also has FBC on pipe B.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 drivers/gpu/drm/xe/xe_display.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_display.c b/drivers/gpu/drm/xe/xe_display.c
index e9b3997c4028..64e65b29d8de 100644
--- a/drivers/gpu/drm/xe/xe_display.c
+++ b/drivers/gpu/drm/xe/xe_display.c
@@ -475,8 +475,8 @@ __diag_ignore_all("-Woverride-init", "Allow field overrides in table");
 	XE_LPD,								\
 	.ver = 14,							\
 	.has_cdclk_crawl = 1,						\
-	.has_cdclk_squash = 1
-
+	.has_cdclk_squash = 1,						\
+	.fbc_mask = BIT(INTEL_FBC_A) | BIT(INTEL_FBC_B)
 
 void xe_display_info_init(struct xe_device *xe)
 {
@@ -513,7 +513,10 @@ void xe_display_info_init(struct xe_device *xe)
 		};
 		break;
 	case XE_METEORLAKE:
-		xe->info.display = (struct xe_device_display_info) { XE_LPDP };
+		xe->info.display = (struct xe_device_display_info) {
+			XE_LPDP,
+			.has_modular_fia = 1,
+		};
 		break;
 	default:
 		drm_dbg(&xe->drm, "No display IP, skipping\n");
-- 
2.34.1



More information about the Intel-xe mailing list