diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 8e914303b831..d49ed68f041e 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -153,6 +153,16 @@ static int i915_getparam(struct drm_device *dev, void *data, | |||
153 | case I915_PARAM_MMAP_VERSION: | 153 | case I915_PARAM_MMAP_VERSION: |
154 | value = 1; | 154 | value = 1; |
155 | break; | 155 | break; |
156 | case I915_PARAM_SUBSLICE_TOTAL: | ||
157 | value = INTEL_INFO(dev)->subslice_total; | ||
158 | if (!value) | ||
159 | return -ENODEV; | ||
160 | break; | ||
161 | case I915_PARAM_EU_TOTAL: | ||
162 | value = INTEL_INFO(dev)->eu_total; | ||
163 | if (!value) | ||
164 | return -ENODEV; | ||
165 | break; | ||
156 | default: | 166 | default: |
157 | DRM_DEBUG("Unknown parameter %d\n", param->param); | 167 | DRM_DEBUG("Unknown parameter %d\n", param->param); |
158 | return -EINVAL; | 168 | return -EINVAL; |