drm/i915: ring w/a initialisation for gen 9
authorHoath, Nicholas <nicholas.hoath@intel.com>
Thu, 5 Feb 2015 10:47:16 +0000 (10:47 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Feb 2015 22:28:06 +0000 (23:28 +0100)
Add framework for gen 9 HW WAs

v1: Changed SOC specific WA function to gen 9 common function (Req: Damien Lespiau)

Signed-off-by: Nick Hoath <nicholas.hoath@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c

index e1036c8e3dd13853eda1d28adb1a43a80131ff4c..fbfe65ac590bd9e0c516744d6229f710691a4054 100644 (file)
@@ -873,6 +873,11 @@ static int chv_init_workarounds(struct intel_engine_cs *ring)
        return 0;
 }
 
+static int gen9_init_workarounds(struct intel_engine_cs *ring)
+{
+       return 0;
+}
+
 int init_workarounds_ring(struct intel_engine_cs *ring)
 {
        struct drm_device *dev = ring->dev;
@@ -888,6 +893,9 @@ int init_workarounds_ring(struct intel_engine_cs *ring)
        if (IS_CHERRYVIEW(dev))
                return chv_init_workarounds(ring);
 
+       if (IS_GEN9(dev))
+               return gen9_init_workarounds(ring);
+
        return 0;
 }