drm/i915/bxt: HardWare WorkAround ring initialisation for Broxton
authorNick Hoath <nicholas.hoath@intel.com>
Tue, 17 Mar 2015 09:39:38 +0000 (11:39 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 9 Apr 2015 13:57:51 +0000 (15:57 +0200)
Adds framework for Broxton HW WAs

Signed-off-by: Nick Hoath <nicholas.hoath@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Nick Hoath <nicholas.hoath@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c

index 441e2502b88946ff2d7455a9f26cc32faa87d8fc..abe062a95be8b53039159b1c544fd6e4b6cb87f9 100644 (file)
@@ -1027,6 +1027,13 @@ static int skl_init_workarounds(struct intel_engine_cs *ring)
        return skl_tune_iz_hashing(ring);
 }
 
+static int bxt_init_workarounds(struct intel_engine_cs *ring)
+{
+       gen9_init_workarounds(ring);
+
+       return 0;
+}
+
 int init_workarounds_ring(struct intel_engine_cs *ring)
 {
        struct drm_device *dev = ring->dev;
@@ -1044,8 +1051,9 @@ int init_workarounds_ring(struct intel_engine_cs *ring)
 
        if (IS_SKYLAKE(dev))
                return skl_init_workarounds(ring);
-       else if (IS_GEN9(dev))
-               return gen9_init_workarounds(ring);
+
+       if (IS_BROXTON(dev))
+               return bxt_init_workarounds(ring);
 
        return 0;
 }