summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_ringbuffer.c
diff options
context:
space:
mode:
authorHoath, Nicholas <nicholas.hoath@intel.com>2015-02-05 10:47:16 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-13 23:28:06 +0100
commit3b10653178473c44e8909b5f23ab6f515fb63259 (patch)
treea9d3aa3013f7b381a15f80dafca7b3ab3c1106d7 /drivers/gpu/drm/i915/intel_ringbuffer.c
parent42a7b088127f7725b6d445d7d9e1e1855988a157 (diff)
drm/i915: ring w/a initialisation for gen 9
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>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index e1036c8e3dd1..fbfe65ac590b 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -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;
}