Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] Copy highest enabled wm level to disabled wm levels for gen >= 12
@ 2022-12-19  7:29 Stanislav Lisovskiy
  2022-12-19  8:19 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Stanislav Lisovskiy @ 2022-12-19  7:29 UTC (permalink / raw)
  To: intel-gfx

There was a specific SW workaround requested, which should prevent
some watermark issues happening, which requires copying highest
enabled wm level to those disabled wm levels(bit 31 is of course
still needs to be cleared).

Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
---
 drivers/gpu/drm/i915/display/skl_watermark.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/skl_watermark.c b/drivers/gpu/drm/i915/display/skl_watermark.c
index ae4e9e680c2e3..b12e11cd6e579 100644
--- a/drivers/gpu/drm/i915/display/skl_watermark.c
+++ b/drivers/gpu/drm/i915/display/skl_watermark.c
@@ -1591,6 +1591,13 @@ skl_crtc_allocate_plane_ddb(struct intel_atomic_state *state,
 				wm->wm[level].lines = wm->wm[0].lines;
 				wm->wm[level].ignore_lines = wm->wm[0].ignore_lines;
 			}
+
+			/* Wa_14017887344 */
+			if (DISPLAY_VER(i915) >= 12 && level > 0) {
+				wm->wm[level].blocks = wm->wm[level - 1].blocks;
+				wm->wm[level].lines = wm->wm[level - 1].lines;
+				wm->wm[level].ignore_lines = wm->wm[level - 1].ignore_lines;
+			}
 		}
 	}
 
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-10 14:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-19  7:29 [Intel-gfx] [PATCH] Copy highest enabled wm level to disabled wm levels for gen >= 12 Stanislav Lisovskiy
2022-12-19  8:19 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2022-12-19  9:51 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2022-12-20 11:19 ` [Intel-gfx] [PATCH] " Ville Syrjälä
2023-01-10 14:55   ` Lisovskiy, Stanislav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox