diff options
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c index f072cef28b60..95751e7bdfe8 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c @@ -1244,6 +1244,10 @@ static int sdma_v5_2_sw_init(void *handle) static int sdma_v5_2_sw_fini(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; + int i; + + for (i = 0; i < adev->sdma.num_instances; i++) + amdgpu_ring_fini(&adev->sdma.instance[i].ring); sdma_v5_2_destroy_inst_ctx(adev); |