aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2009-06-05 03:38:40 -0400
committerEric Anholt <eric@anholt.net>2009-06-05 07:34:16 -0400
commite170b030dcd6aed11dde2d124c09991ec771f529 (patch)
tree540dc4c63d1082290926fa88def8aa76821524b7 /drivers/gpu
parentb9055052d3e0388b4a5e8c3e0bbab665c5996f50 (diff)
drm/i915: Disable opregion on IGDNG for now
Disable OpRegion support for now until verified on new chipsets. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c7
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 0c222c28b8c1..fa105bd119a6 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1206,7 +1206,9 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
1206 } 1206 }
1207 1207
1208 /* Must be done after probing outputs */ 1208 /* Must be done after probing outputs */
1209 intel_opregion_init(dev, 0); 1209 /* FIXME: verify on IGDNG */
1210 if (!IS_IGDNG(dev))
1211 intel_opregion_init(dev, 0);
1210 1212
1211 return 0; 1213 return 0;
1212 1214
@@ -1240,7 +1242,8 @@ int i915_driver_unload(struct drm_device *dev)
1240 if (dev_priv->regs != NULL) 1242 if (dev_priv->regs != NULL)
1241 iounmap(dev_priv->regs); 1243 iounmap(dev_priv->regs);
1242 1244
1243 intel_opregion_free(dev, 0); 1245 if (!IS_IGDNG(dev))
1246 intel_opregion_free(dev, 0);
1244 1247
1245 if (drm_core_check_feature(dev, DRIVER_MODESET)) { 1248 if (drm_core_check_feature(dev, DRIVER_MODESET)) {
1246 intel_modeset_cleanup(dev); 1249 intel_modeset_cleanup(dev);
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 98bb4c878c4e..4b0bcbd58b8f 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -484,7 +484,9 @@ void i915_disable_vblank(struct drm_device *dev, int pipe)
484void i915_enable_interrupt (struct drm_device *dev) 484void i915_enable_interrupt (struct drm_device *dev)
485{ 485{
486 struct drm_i915_private *dev_priv = dev->dev_private; 486 struct drm_i915_private *dev_priv = dev->dev_private;
487 opregion_enable_asle(dev); 487
488 if (!IS_IGDNG(dev))
489 opregion_enable_asle(dev);
488 dev_priv->irq_enabled = 1; 490 dev_priv->irq_enabled = 1;
489} 491}
490 492