aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index c0bfad2948af..64fb21e4bd2d 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -46,6 +46,9 @@ module_param_named(fbpercrtc, i915_fbpercrtc, int, 0400);
46unsigned int i915_powersave = 1; 46unsigned int i915_powersave = 1;
47module_param_named(powersave, i915_powersave, int, 0600); 47module_param_named(powersave, i915_powersave, int, 0600);
48 48
49unsigned int i915_enable_rc6 = 0;
50module_param_named(i915_enable_rc6, i915_enable_rc6, int, 0600);
51
49unsigned int i915_lvds_downclock = 0; 52unsigned int i915_lvds_downclock = 0;
50module_param_named(lvds_downclock, i915_lvds_downclock, int, 0400); 53module_param_named(lvds_downclock, i915_lvds_downclock, int, 0400);
51 54
@@ -363,7 +366,7 @@ static int i915_drm_thaw(struct drm_device *dev)
363 /* Resume the modeset for every activated CRTC */ 366 /* Resume the modeset for every activated CRTC */
364 drm_helper_resume_force_mode(dev); 367 drm_helper_resume_force_mode(dev);
365 368
366 if (dev_priv->renderctx && dev_priv->pwrctx) 369 if (IS_IRONLAKE_M(dev))
367 ironlake_enable_rc6(dev); 370 ironlake_enable_rc6(dev);
368 } 371 }
369 372
@@ -571,6 +574,14 @@ int i915_reset(struct drm_device *dev, u8 flags)
571static int __devinit 574static int __devinit
572i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 575i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
573{ 576{
577 /* Only bind to function 0 of the device. Early generations
578 * used function 1 as a placeholder for multi-head. This causes
579 * us confusion instead, especially on the systems where both
580 * functions have the same PCI-ID!
581 */
582 if (PCI_FUNC(pdev->devfn))
583 return -ENODEV;
584
574 return drm_get_pci_dev(pdev, ent, &driver); 585 return drm_get_pci_dev(pdev, ent, &driver);
575} 586}
576 587