diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 13 |
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); | |||
46 | unsigned int i915_powersave = 1; | 46 | unsigned int i915_powersave = 1; |
47 | module_param_named(powersave, i915_powersave, int, 0600); | 47 | module_param_named(powersave, i915_powersave, int, 0600); |
48 | 48 | ||
49 | unsigned int i915_enable_rc6 = 0; | ||
50 | module_param_named(i915_enable_rc6, i915_enable_rc6, int, 0600); | ||
51 | |||
49 | unsigned int i915_lvds_downclock = 0; | 52 | unsigned int i915_lvds_downclock = 0; |
50 | module_param_named(lvds_downclock, i915_lvds_downclock, int, 0400); | 53 | module_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) | |||
571 | static int __devinit | 574 | static int __devinit |
572 | i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | 575 | i915_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 | ||