]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drm/amdgpu: put the SMC into the proper state on reset/unload
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_drv.c
index 56f807757d2c288b9934c463ebcc03ca97441681..e3e09e6d7f4223ad6990690989415b2b8633ee6e 100644 (file)
@@ -1096,7 +1096,9 @@ amdgpu_pci_shutdown(struct pci_dev *pdev)
         * unfortunately we can't detect certain
         * hypervisors so just do this all the time.
         */
+       adev->mp1_state = PP_MP1_STATE_UNLOAD;
        amdgpu_device_ip_suspend(adev);
+       adev->mp1_state = PP_MP1_STATE_NONE;
 }
 
 static int amdgpu_pmops_suspend(struct device *dev)