Skip to content

Commit

Permalink
drm/i915/skl: Introduce a SKL specific init_workarounds()
Browse files Browse the repository at this point in the history
This function will host SKL-only W/As.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Nick Hoath <nicholas.hoath@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Damien Lespiau authored and Daniel Vetter committed Feb 13, 2015
1 parent 8543747 commit 8d20549
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,13 @@ static int gen9_init_workarounds(struct intel_engine_cs *ring)
return 0;
}

static int skl_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;
Expand All @@ -999,7 +1006,9 @@ int init_workarounds_ring(struct intel_engine_cs *ring)
if (IS_CHERRYVIEW(dev))
return chv_init_workarounds(ring);

if (IS_GEN9(dev))
if (IS_SKYLAKE(dev))
return skl_init_workarounds(ring);
else if (IS_GEN9(dev))
return gen9_init_workarounds(ring);

return 0;
Expand Down

0 comments on commit 8d20549

Please sign in to comment.