aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 033c943b6bae..1d65dbd15c39 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1483,9 +1483,12 @@ static void intel_device_info_runtime_init(struct drm_device *dev)
1483 if (IS_VALLEYVIEW(dev)) 1483 if (IS_VALLEYVIEW(dev))
1484 info->num_sprites = 2; 1484 info->num_sprites = 2;
1485 1485
1486 if (info->num_pipes > 0 && 1486 if (i915.disable_display) {
1487 (INTEL_INFO(dev)->gen == 7 || INTEL_INFO(dev)->gen == 8) && 1487 DRM_INFO("Display disabled (module parameter)\n");
1488 !IS_VALLEYVIEW(dev)) { 1488 info->num_pipes = 0;
1489 } else if (info->num_pipes > 0 &&
1490 (INTEL_INFO(dev)->gen == 7 || INTEL_INFO(dev)->gen == 8) &&
1491 !IS_VALLEYVIEW(dev)) {
1489 u32 fuse_strap = I915_READ(FUSE_STRAP); 1492 u32 fuse_strap = I915_READ(FUSE_STRAP);
1490 u32 sfuse_strap = I915_READ(SFUSE_STRAP); 1493 u32 sfuse_strap = I915_READ(SFUSE_STRAP);
1491 1494