[PATCH 3/6] drm/i915/wm: DG2 doesn't have dram info to look up wm_lv_0_adjust_needed

Jani Nikula jani.nikula at intel.com
Wed May 7 15:18:19 UTC 2025


There's no dram info on DG2 that we could use. The struct dram_info is
all zero on it, but be explicit about this.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 drivers/gpu/drm/i915/display/skl_watermark.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/skl_watermark.c b/drivers/gpu/drm/i915/display/skl_watermark.c
index f5600f4b7772..817939f6d4dd 100644
--- a/drivers/gpu/drm/i915/display/skl_watermark.c
+++ b/drivers/gpu/drm/i915/display/skl_watermark.c
@@ -3251,7 +3251,7 @@ adjust_wm_latency(struct intel_display *display,
 	 * any underrun. If not able to get Dimm info assume 16GB dimm
 	 * to avoid any underrun.
 	 */
-	if (dram_info->wm_lv_0_adjust_needed)
+	if (!display->platform.dg2 && dram_info->wm_lv_0_adjust_needed)
 		wm[0] += 1;
 }
 
-- 
2.39.5



More information about the Intel-xe mailing list