aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorRobert Hooker <sarvatt@ubuntu.com>2010-03-19 15:13:27 -0400
committerEric Anholt <eric@anholt.net>2010-03-25 14:06:16 -0400
commit8d06a1e1e9c69244f08beb7d17146483f9dcd120 (patch)
tree87362d973da3f949a415f3c2253ef03cf79b47c4 /drivers/gpu/drm
parent01e77706cdde7c0b47e5ca1f4284a795504c7c40 (diff)
drm/i915: Disable FBC on 915GM and 945GM.
It is causing hangs after a suspend/resume cycle with the default powersave=1 module option on these chipsets since 2.6.32-rc. BugLink: http://bugs.launchpad.net/bugs/492392 Signed-off-by: Robert Hooker <sarvatt@ubuntu.com> Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c4
-rw-r--r--drivers/gpu/drm/i915/intel_display.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 4b26919abdb2..1a39ec75d76b 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -80,14 +80,14 @@ const static struct intel_device_info intel_i915g_info = {
80 .is_i915g = 1, .is_i9xx = 1, .cursor_needs_physical = 1, 80 .is_i915g = 1, .is_i9xx = 1, .cursor_needs_physical = 1,
81}; 81};
82const static struct intel_device_info intel_i915gm_info = { 82const static struct intel_device_info intel_i915gm_info = {
83 .is_i9xx = 1, .is_mobile = 1, .has_fbc = 1, 83 .is_i9xx = 1, .is_mobile = 1,
84 .cursor_needs_physical = 1, 84 .cursor_needs_physical = 1,
85}; 85};
86const static struct intel_device_info intel_i945g_info = { 86const static struct intel_device_info intel_i945g_info = {
87 .is_i9xx = 1, .has_hotplug = 1, .cursor_needs_physical = 1, 87 .is_i9xx = 1, .has_hotplug = 1, .cursor_needs_physical = 1,
88}; 88};
89const static struct intel_device_info intel_i945gm_info = { 89const static struct intel_device_info intel_i945gm_info = {
90 .is_i945gm = 1, .is_i9xx = 1, .is_mobile = 1, .has_fbc = 1, 90 .is_i945gm = 1, .is_i9xx = 1, .is_mobile = 1,
91 .has_hotplug = 1, .cursor_needs_physical = 1, 91 .has_hotplug = 1, .cursor_needs_physical = 1,
92}; 92};
93 93
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 58fc7fa0eb1d..f0214908a935 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -4814,7 +4814,7 @@ static void intel_init_display(struct drm_device *dev)
4814 dev_priv->display.fbc_enabled = g4x_fbc_enabled; 4814 dev_priv->display.fbc_enabled = g4x_fbc_enabled;
4815 dev_priv->display.enable_fbc = g4x_enable_fbc; 4815 dev_priv->display.enable_fbc = g4x_enable_fbc;
4816 dev_priv->display.disable_fbc = g4x_disable_fbc; 4816 dev_priv->display.disable_fbc = g4x_disable_fbc;
4817 } else if (IS_I965GM(dev) || IS_I945GM(dev) || IS_I915GM(dev)) { 4817 } else if (IS_I965GM(dev)) {
4818 dev_priv->display.fbc_enabled = i8xx_fbc_enabled; 4818 dev_priv->display.fbc_enabled = i8xx_fbc_enabled;
4819 dev_priv->display.enable_fbc = i8xx_enable_fbc; 4819 dev_priv->display.enable_fbc = i8xx_enable_fbc;
4820 dev_priv->display.disable_fbc = i8xx_disable_fbc; 4820 dev_priv->display.disable_fbc = i8xx_disable_fbc;