diff options
author | 2022-02-14 15:46:32 +0800 | |
---|---|---|
committer | 2022-03-02 18:40:05 -0500 | |
commit | 1f211a827cbda87bd0ec145a1f44f2615c3f56d3 (patch) | |
tree | d246b2ed52f730eba5f1bf19052e1e604615d0f9 /drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | |
parent | drm/amdgpu: Optimize xxx_ras_fini function of each ras block (diff) | |
download | linux-1f211a827cbda87bd0ec145a1f44f2615c3f56d3.tar.gz linux-1f211a827cbda87bd0ec145a1f44f2615c3f56d3.tar.bz2 linux-1f211a827cbda87bd0ec145a1f44f2615c3f56d3.zip |
drm/amdgpu: centrally calls the .ras_fini function of all ras blocks
centrally calls the .ras_fini function of all ras blocks.
Signed-off-by: yipechai <YiPeng.Chai@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c index 222d25a0413a..d1d40bbb2892 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c @@ -1995,10 +1995,6 @@ static int sdma_v4_0_sw_fini(void *handle) struct amdgpu_device *adev = (struct amdgpu_device *)handle; int i; - if (adev->sdma.ras && adev->sdma.ras->ras_block.hw_ops && - adev->sdma.ras->ras_block.ras_fini) - adev->sdma.ras->ras_block.ras_fini(adev, adev->sdma.ras_if); - for (i = 0; i < adev->sdma.num_instances; i++) { amdgpu_ring_fini(&adev->sdma.instance[i].ring); if (adev->sdma.has_page_queue) |