Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Remove redundant calls of amdgpu_ras_block_late_fini in hdp ras block

Remove redundant calls of amdgpu_ras_block_late_fini in hdp ras block.

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>

authored by

yipechai and committed by
Alex Deucher
aa8e65df f148c143

+2 -5
+1 -3
drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c
··· 26 26 27 27 void amdgpu_hdp_ras_fini(struct amdgpu_device *adev, struct ras_common_if *ras_block) 28 28 { 29 - if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__HDP) && 30 - ras_block) 31 - amdgpu_ras_block_late_fini(adev, ras_block); 29 + 32 30 }
-1
drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.h
··· 44 44 }; 45 45 46 46 int amdgpu_hdp_ras_late_init(struct amdgpu_device *adev, struct ras_common_if *ras_block); 47 - void amdgpu_hdp_ras_fini(struct amdgpu_device *adev, struct ras_common_if *ras_block); 48 47 #endif /* __AMDGPU_HDP_H__ */
+1 -1
drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c
··· 166 166 .type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE, 167 167 }, 168 168 .hw_ops = &hdp_v4_0_ras_hw_ops, 169 - .ras_fini = amdgpu_hdp_ras_fini, 169 + .ras_fini = amdgpu_ras_block_late_fini, 170 170 }, 171 171 }; 172 172