aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMika Kuoppala <mika.kuoppala@linux.intel.com>2016-06-07 10:18:55 -0400
committerMika Kuoppala <mika.kuoppala@intel.com>2016-07-15 08:51:22 -0400
commita1d97ca5b2998d137da4f4673edae472d23742e5 (patch)
treeb86bbe7d3f354b86149ac4df9b77da9b8fe12c85
parent68370e0ab1636efce7b7e8254430c1ec321564bc (diff)
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 (cherry picked from commit c033a37cd42c1b5492d95bfbc8c0891088e04b57) Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
-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 7c334e902266..6ddd1655f6fe 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -2600,6 +2600,12 @@ struct drm_i915_cmd_table {
2600 2600
2601#define IS_BXT_REVID(p, since, until) (IS_BROXTON(p) && IS_REVID(p, since, until)) 2601#define IS_BXT_REVID(p, since, until) (IS_BROXTON(p) && IS_REVID(p, since, until))
2602 2602
2603#define KBL_REVID_A0 0x0
2604#define KBL_REVID_B0 0x1
2605
2606#define IS_KBL_REVID(p, since, until) \
2607 (IS_KABYLAKE(p) && IS_REVID(p, since, until))
2608
2603/* 2609/*
2604 * The genX designation typically refers to the render engine, so render 2610 * The genX designation typically refers to the render engine, so render
2605 * capability related checks should use IS_GEN, while display and other checks 2611 * capability related checks should use IS_GEN, while display and other checks