summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorMika Kuoppala2016-06-07 16:18:55 +0200
committerMika Kuoppala2016-06-08 15:20:03 +0200
commitc033a37cd42c1b5492d95bfbc8c0891088e04b57 (patch)
treeb616642334e838982fe79038c0eba7b4854fadde /drivers/gpu/drm/i915/i915_drv.h
parentdrm/i915/kbl: Init gen9 workarounds (diff)
downloadkernel-qcow2-linux-c033a37cd42c1b5492d95bfbc8c0891088e04b57.tar.gz
kernel-qcow2-linux-c033a37cd42c1b5492d95bfbc8c0891088e04b57.tar.xz
kernel-qcow2-linux-c033a37cd42c1b5492d95bfbc8c0891088e04b57.zip
drm/i915/kbl: Add REVID macro
Add REVID macro for kbl to limit wa applicability to particular revision range. Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1465309159-30531-4-git-send-email-mika.kuoppala@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index adc5e7df192e..5905c84a38a9 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -2717,6 +2717,12 @@ struct drm_i915_cmd_table {
#define IS_BXT_REVID(p, since, until) (IS_BROXTON(p) && IS_REVID(p, since, until))
+#define KBL_REVID_A0 0x0
+#define KBL_REVID_B0 0x1
+
+#define IS_KBL_REVID(p, since, until) \
+ (IS_KABYLAKE(p) && IS_REVID(p, since, until))
+
/*
* The genX designation typically refers to the render engine, so render
* capability related checks should use IS_GEN, while display and other checks