diff options
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 3 | ||||
-rw-r--r-- | include/drm/i915_drm.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index f167ff68a4bf..ea85d71cab04 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -689,6 +689,9 @@ static int i915_getparam(struct drm_device *dev, void *data, | |||
689 | case I915_PARAM_LAST_DISPATCH: | 689 | case I915_PARAM_LAST_DISPATCH: |
690 | value = READ_BREADCRUMB(dev_priv); | 690 | value = READ_BREADCRUMB(dev_priv); |
691 | break; | 691 | break; |
692 | case I915_PARAM_CHIPSET_ID: | ||
693 | value = dev->pci_device; | ||
694 | break; | ||
692 | case I915_PARAM_HAS_GEM: | 695 | case I915_PARAM_HAS_GEM: |
693 | value = 1; | 696 | value = 1; |
694 | break; | 697 | break; |
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h index 59d08fca25a4..eb4b35031a55 100644 --- a/include/drm/i915_drm.h +++ b/include/drm/i915_drm.h | |||
@@ -230,6 +230,7 @@ typedef struct drm_i915_irq_wait { | |||
230 | #define I915_PARAM_IRQ_ACTIVE 1 | 230 | #define I915_PARAM_IRQ_ACTIVE 1 |
231 | #define I915_PARAM_ALLOW_BATCHBUFFER 2 | 231 | #define I915_PARAM_ALLOW_BATCHBUFFER 2 |
232 | #define I915_PARAM_LAST_DISPATCH 3 | 232 | #define I915_PARAM_LAST_DISPATCH 3 |
233 | #define I915_PARAM_CHIPSET_ID 4 | ||
233 | #define I915_PARAM_HAS_GEM 5 | 234 | #define I915_PARAM_HAS_GEM 5 |
234 | 235 | ||
235 | typedef struct drm_i915_getparam { | 236 | typedef struct drm_i915_getparam { |