From: Alex Deucher Date: Tue, 12 Dec 2017 20:22:56 +0000 (-0500) Subject: drm/amdgpu: drop scratch regs save and restore from GPU reset handling X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=88bc1e3c38aaadbedd1df96e8bbe62b06f7cda1f;p=linux.git drm/amdgpu: drop scratch regs save and restore from GPU reset 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 Acked-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index ca1cf8a71dda1..046b9d5bc14d2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -2896,9 +2896,7 @@ static int amdgpu_reset(struct amdgpu_device *adev, uint64_t* reset_flags) r = amdgpu_suspend(adev); retry: - amdgpu_atombios_scratch_regs_save(adev); r = amdgpu_asic_reset(adev); - amdgpu_atombios_scratch_regs_restore(adev); /* post card */ amdgpu_atom_asic_init(adev->mode_info.atom_context);