diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c index a572979f186c..d860939152df 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | |||
@@ -950,10 +950,6 @@ static int gmc_v6_0_suspend(void *handle) | |||
950 | { | 950 | { |
951 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 951 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
952 | 952 | ||
953 | if (adev->vm_manager.enabled) { | ||
954 | gmc_v6_0_vm_fini(adev); | ||
955 | adev->vm_manager.enabled = false; | ||
956 | } | ||
957 | gmc_v6_0_hw_fini(adev); | 953 | gmc_v6_0_hw_fini(adev); |
958 | 954 | ||
959 | return 0; | 955 | return 0; |
@@ -968,16 +964,9 @@ static int gmc_v6_0_resume(void *handle) | |||
968 | if (r) | 964 | if (r) |
969 | return r; | 965 | return r; |
970 | 966 | ||
971 | if (!adev->vm_manager.enabled) { | 967 | amdgpu_vm_reset_all_ids(adev); |
972 | r = gmc_v6_0_vm_init(adev); | ||
973 | if (r) { | ||
974 | dev_err(adev->dev, "vm manager initialization failed (%d).\n", r); | ||
975 | return r; | ||
976 | } | ||
977 | adev->vm_manager.enabled = true; | ||
978 | } | ||
979 | 968 | ||
980 | return r; | 969 | return 0; |
981 | } | 970 | } |
982 | 971 | ||
983 | static bool gmc_v6_0_is_idle(void *handle) | 972 | static bool gmc_v6_0_is_idle(void *handle) |