diff options
| author | Linus Torvalds <[email protected]> | 2019-02-22 10:35:06 -0800 | 
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2019-02-22 10:35:06 -0800 | 
| commit | 6ee2846cb4e7c6e8acdcb265299ad1c6de42b437 (patch) | |
| tree | 2dbeffd231782f58c186b1cdeee738143e204cfa /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | |
| parent | 168bd29830e8ebbffcd70d2af50249dca088e1a8 (diff) | |
| parent | 019276ed65f364de27b929da4e083bb86ce7d1ef (diff) | |
Merge tag 'drm-fixes-2019-02-22' of git://anongit.freedesktop.org/drm/drm
Pull drm fixes from Dave Airlie:
 "This contains a single i915 tiled display fix, and a set of
  amdgpu/radeon fixes.
  i915:
   - tiled display fix
  amdgpu/radeon:
   - runtime PM fix
   - bulk moves disable (fix is too large for 5.0)
   - a set of display fixes that are all cc'ed stable so we didn't want
     to leave them until -next"
* tag 'drm-fixes-2019-02-22' of git://anongit.freedesktop.org/drm/drm:
  drm/amdgpu: disable bulk moves for now
  drm/amd/display: set clocks to 0 on suspend on dce80
  drm/amd/display: fix optimize_bandwidth func pointer for dce80
  drm/amd/display: Fix negative cursor pos programming
  drm/i915/fbdev: Actually configure untiled displays
  drm/amd/display: Raise dispclk value for dce11
  drm/amd/display: Fix MST reboot/poweroff sequence
  drm/amdgpu: Update sdma golden setting for vega20
  drm/amdgpu: Set DPM_FLAG_NEVER_SKIP when enabling PM-runtime
  gpu: drm: radeon: Set DPM_FLAG_NEVER_SKIP when enabling PM-runtime
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 0b392bfca284..5296b8f3e0ab 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -786,12 +786,13 @@ static int dm_suspend(void *handle)  	struct amdgpu_display_manager *dm = &adev->dm;  	int ret = 0; +	WARN_ON(adev->dm.cached_state); +	adev->dm.cached_state = drm_atomic_helper_suspend(adev->ddev); +  	s3_handle_mst(adev->ddev, true);  	amdgpu_dm_irq_suspend(adev); -	WARN_ON(adev->dm.cached_state); -	adev->dm.cached_state = drm_atomic_helper_suspend(adev->ddev);  	dc_set_power_state(dm->dc, DC_ACPI_CM_POWER_STATE_D3); |