[Intel-gfx] [PATCH 4/4] drm/i915: Add a fallback for unimplemented gen9 w/a

Ben Widawsky benjamin.widawsky at intel.com
Thu Jan 8 19:59:13 PST 2015


We know certain future platforms need things. Don't let them go unnoticed as
they did for SKL by adding an error message and falling back to the possibly
more conservative SKL values.

Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
 drivers/gpu/drm/i915/intel_ringbuffer.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index e14748d..557204b 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -873,6 +873,10 @@ int init_workarounds_ring(struct intel_engine_cs *ring)
 
 	if (IS_SKYLAKE(dev))
 		return skl_init_workarounds(ring);
+	else if (INTEL_INFO(dev)->gen == 9) {
+		DRM_ERROR("Possibly missing workarounds\n");
+		return skl_init_workarounds(ring);
+	}
 
 	return 0;
 }
-- 
2.2.1



More information about the Intel-gfx mailing list