Message ID | 1423510402-12605-12-git-send-email-damien.lespiau@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 09/02/2015 19:33, Damien Lespiau wrote: > 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> > --- > drivers/gpu/drm/i915/intel_ringbuffer.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c > index b15d596..27d101c 100644 > --- a/drivers/gpu/drm/i915/intel_ringbuffer.c > +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c > @@ -928,6 +928,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; > @@ -943,7 +950,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; >
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index b15d596..27d101c 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c @@ -928,6 +928,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; @@ -943,7 +950,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;
This function will host SKL-only W/As. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> --- drivers/gpu/drm/i915/intel_ringbuffer.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)