Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307427
b: refs/heads/master
c: 1833b13
h: refs/heads/master
i:
  307425: 8530c1a
  307423: 8fe08b9
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed May 19, 2012
1 parent 293f7b5 commit cd0f208
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e43406bcc1868a316eea6012a0a09d992c53521
refs/heads/master: 1833b134454d5300d8a9d07b78876a20395f01a9
10 changes: 4 additions & 6 deletions trunk/drivers/gpu/drm/i915/i915_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,25 +624,23 @@ static int i915_drm_thaw(struct drm_device *dev)

/* KMS EnterVT equivalent */
if (drm_core_check_feature(dev, DRIVER_MODESET)) {
if (HAS_PCH_SPLIT(dev))
ironlake_init_pch_refclk(dev);

mutex_lock(&dev->struct_mutex);
dev_priv->mm.suspended = 0;

error = i915_gem_init_hw(dev);
mutex_unlock(&dev->struct_mutex);

if (HAS_PCH_SPLIT(dev))
ironlake_init_pch_refclk(dev);

intel_modeset_init_hw(dev);
drm_mode_config_reset(dev);
drm_irq_install(dev);

/* Resume the modeset for every activated CRTC */
mutex_lock(&dev->mode_config.mutex);
drm_helper_resume_force_mode(dev);
mutex_unlock(&dev->mode_config.mutex);

if (IS_IRONLAKE_M(dev))
ironlake_enable_rc6(dev);
}

intel_opregion_init(dev);
Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/gpu/drm/i915/i915_suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -876,12 +876,6 @@ int i915_restore_state(struct drm_device *dev)
I915_WRITE(IER, dev_priv->saveIER);
I915_WRITE(IMR, dev_priv->saveIMR);
}
mutex_unlock(&dev->struct_mutex);

if (drm_core_check_feature(dev, DRIVER_MODESET))
intel_modeset_init_hw(dev);

mutex_lock(&dev->struct_mutex);

/* Cache mode state */
I915_WRITE(CACHE_MODE_0, dev_priv->saveCACHE_MODE_0 | 0xffff0000);
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -6658,6 +6658,7 @@ void intel_modeset_init_hw(struct drm_device *dev)

if (IS_IRONLAKE_M(dev)) {
ironlake_enable_drps(dev);
ironlake_enable_rc6(dev);
intel_init_emon(dev);
}

Expand Down Expand Up @@ -6719,17 +6720,14 @@ void intel_modeset_init(struct drm_device *dev)
i915_disable_vga(dev);
intel_setup_outputs(dev);

intel_modeset_init_hw(dev);

INIT_WORK(&dev_priv->idle_work, intel_idle_update);
setup_timer(&dev_priv->idle_timer, intel_gpu_idle_timer,
(unsigned long)dev);
}

void intel_modeset_gem_init(struct drm_device *dev)
{
if (IS_IRONLAKE_M(dev))
ironlake_enable_rc6(dev);
intel_modeset_init_hw(dev);

intel_setup_overlay(dev);
}
Expand Down

0 comments on commit cd0f208

Please sign in to comment.