diff mbox

[01/10] drm/i915: ring w/a initialisation for gen 9

Message ID 1423133245-23953-2-git-send-email-nicholas.hoath@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Nick Hoath Feb. 5, 2015, 10:47 a.m. UTC
From: "Hoath, Nicholas" <nicholas.hoath@intel.com>

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>
---
 drivers/gpu/drm/i915/intel_ringbuffer.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Lespiau, Damien Feb. 5, 2015, 5:39 p.m. UTC | #1
On Thu, Feb 05, 2015 at 10:47:16AM +0000, Nick Hoath wrote:
> From: "Hoath, Nicholas" <nicholas.hoath@intel.com>
> 
> 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>

> ---
>  drivers/gpu/drm/i915/intel_ringbuffer.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
> index e1036c8..fbfe65a 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;
>  }
>  
> -- 
> 2.1.1
>
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index e1036c8..fbfe65a 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;
 }