drm/amdgpu: drop scratch regs save and restore from S3/S4 handling
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Dec 2017 20:20:22 +0000 (15:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Dec 2017 22:28:09 +0000 (17:28 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 98d62a991b67b42ff5a8c83867b3628b3facc127..ca1cf8a71dda1c0af6c636ed4fa5cd1dcdd6b49a 100644 (file)
@@ -2577,7 +2577,6 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)
         */
        amdgpu_bo_evict_vram(adev);
 
-       amdgpu_atombios_scratch_regs_save(adev);
        pci_save_state(dev->pdev);
        if (suspend) {
                /* Shut down the device */
@@ -2626,7 +2625,6 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)
                if (r)
                        goto unlock;
        }
-       amdgpu_atombios_scratch_regs_restore(adev);
 
        /* post card */
        if (amdgpu_need_post(adev)) {