diff options
author | Neil Roberts <neil@linux.intel.com> | 2015-03-04 09:41:16 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-03-17 17:29:54 -0400 |
commit | 27cd44618b92fc8c6889e4628407791e45422bac (patch) | |
tree | 277a7e4cbc67622124050d46496a0294ae3ce099 /drivers/gpu/drm/i915 | |
parent | 10634189fc50d30c7269e3e1af167608f7aebcfc (diff) |
drm/i915: Add I915_PARAM_REVISION
Adds a parameter which can be used with DRM_I915_GETPARAM to query the
GPU revision. The intention is to use this in Mesa to implement the
WaDisableSIMD16On3SrcInstr workaround on Skylake but only for
revision 2.
Signed-off-by: Neil Roberts <neil@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 053e1788f578..3b64c526b6b9 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -68,6 +68,9 @@ static int i915_getparam(struct drm_device *dev, void *data, | |||
68 | case I915_PARAM_CHIPSET_ID: | 68 | case I915_PARAM_CHIPSET_ID: |
69 | value = dev->pdev->device; | 69 | value = dev->pdev->device; |
70 | break; | 70 | break; |
71 | case I915_PARAM_REVISION: | ||
72 | value = dev->pdev->revision; | ||
73 | break; | ||
71 | case I915_PARAM_HAS_GEM: | 74 | case I915_PARAM_HAS_GEM: |
72 | value = 1; | 75 | value = 1; |
73 | break; | 76 | break; |