Skip to content

Commit 05cac1a

Browse files
Nirmoy Dasalexdeucher
authored andcommitted
drm/amdgpu: do not disable SMU on vm reboot
For passthrough device, we do baco reset after 1st vm boot so if we disable SMU on 1st VM shutdown baco reset will fail for 2nd vm boot. Signed-off-by: Nirmoy Das <[email protected]> Acked-by: Evan Quan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 5ea6f9c commit 05cac1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,8 @@ amdgpu_pci_shutdown(struct pci_dev *pdev)
11861186
* unfortunately we can't detect certain
11871187
* hypervisors so just do this all the time.
11881188
*/
1189-
adev->mp1_state = PP_MP1_STATE_UNLOAD;
1189+
if (!amdgpu_passthrough(adev))
1190+
adev->mp1_state = PP_MP1_STATE_UNLOAD;
11901191
amdgpu_device_ip_suspend(adev);
11911192
adev->mp1_state = PP_MP1_STATE_NONE;
11921193
}

0 commit comments

Comments
 (0)