diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-12-12 15:20:22 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-13 17:28:09 -0500 |
commit | 4ec6ecf48c64d1da82a008f6fb0be86c4044287d (patch) | |
tree | 87acfe8a93ad8a9d45105207ea55f0e702733888 | |
parent | e466c2935fe196f4c9d512650f1224f194a00b51 (diff) |
drm/amdgpu: drop scratch regs save and restore from S3/S4 handling
The expectation is that the base driver doesn't mess with these.
Some components interact with these directly so let the components
handle these directly.
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 98d62a991b67..ca1cf8a71dda 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -2577,7 +2577,6 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon) | |||
2577 | */ | 2577 | */ |
2578 | amdgpu_bo_evict_vram(adev); | 2578 | amdgpu_bo_evict_vram(adev); |
2579 | 2579 | ||
2580 | amdgpu_atombios_scratch_regs_save(adev); | ||
2581 | pci_save_state(dev->pdev); | 2580 | pci_save_state(dev->pdev); |
2582 | if (suspend) { | 2581 | if (suspend) { |
2583 | /* Shut down the device */ | 2582 | /* Shut down the device */ |
@@ -2626,7 +2625,6 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon) | |||
2626 | if (r) | 2625 | if (r) |
2627 | goto unlock; | 2626 | goto unlock; |
2628 | } | 2627 | } |
2629 | amdgpu_atombios_scratch_regs_restore(adev); | ||
2630 | 2628 | ||
2631 | /* post card */ | 2629 | /* post card */ |
2632 | if (amdgpu_need_post(adev)) { | 2630 | if (amdgpu_need_post(adev)) { |