diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 71a7020558d2..7c29cdc23cbd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -1883,6 +1883,8 @@ int amdgpu_device_shutdown(struct amdgpu_device *adev) { int i, r; + DRM_INFO("amdgpu device shutdown started.\n"); + if (amdgpu_sriov_vf(adev)) amdgpu_virt_request_full_gpu(adev, false); @@ -1921,6 +1923,12 @@ int amdgpu_device_shutdown(struct amdgpu_device *adev) if (adev->asic_type >= CHIP_BONAIRE) amdgpu_atombios_scratch_force_asic_init(adev); + /* reset the GPU */ + r = amdgpu_asic_reset(adev); + if (r) + DRM_ERROR("amdgpu asic reset failed\n"); + + DRM_INFO("amdgpu device shutdown done.\n"); return 0; }