File 0006-drm-i915-Add-IS_BDW_GT3-macro.patch of Package drm

From e984cf762febc562616b40dd34a27c0743bf6a80 Mon Sep 17 00:00:00 2001
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
Date: Fri, 19 Sep 2014 20:16:26 -0400
Subject: [PATCH 6/9] drm/i915: Add IS_BDW_GT3 macro.

Upstream commit id a0fcbd95354e5ac2400be74077cc668c91429ea7.

It will be usefull to specify w/a that affects only BDW GT3.

Conflicts:
	drivers/gpu/drm/i915/i915_drv.h

Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 drivers/gpu/drm/i915/i915_drv.h |    2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -2025,6 +2025,8 @@ struct drm_i915_cmd_table {
 				 (((dev)->pdev->device & 0xf) == 0x2  || \
 				 ((dev)->pdev->device & 0xf) == 0x6 || \
 				 ((dev)->pdev->device & 0xf) == 0xe))
+#define IS_BDW_GT3(dev)		(IS_BROADWELL(dev) && \
+				 ((dev)->pdev->device & 0x00F0) == 0x0020)
 #define IS_HSW_ULT(dev)		(IS_HASWELL(dev) && \
 				 ((dev)->pdev->device & 0xFF00) == 0x0A00)
 #define IS_ULT(dev)		(IS_HSW_ULT(dev) || IS_BDW_ULT(dev))