diff options
| author | Alex Deucher <[email protected]> | 2022-10-06 19:53:10 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-10-10 21:32:56 +0000 |
| commit | a98cec220aa4b2502704aa0196da1bdc9eb455b4 (patch) | |
| tree | 350f365af9f47539a0337620d96c06d8f69cb4e9 /drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | |
| parent | drm/amdgpu: switch sdma buffer function tear down to a helper (diff) | |
| download | kernel-a98cec220aa4b2502704aa0196da1bdc9eb455b4.tar.gz kernel-a98cec220aa4b2502704aa0196da1bdc9eb455b4.zip | |
drm/amdgpu: fix SDMA suspend/resume on SR-IOV
Update all SDMA versions that support SR-IOV to properly
tear down the ttm buffer functions on suspend.
Tested-by: Bokun Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c index 783048e1b0ce..d4d9f196db83 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c @@ -1456,8 +1456,11 @@ static int sdma_v5_0_hw_fini(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; - if (amdgpu_sriov_vf(adev)) + if (amdgpu_sriov_vf(adev)) { + /* disable the scheduler for SDMA */ + amdgpu_sdma_unset_buffer_funcs_helper(adev); return 0; + } sdma_v5_0_ctx_switch_enable(adev, false); sdma_v5_0_enable(adev, false); |
