drm/amdgpu: Remove redundant calls of amdgpu_ras_block_late_fini in hdp ras block
authoryipechai <YiPeng.Chai@amd.com>
Thu, 17 Feb 2022 07:02:32 +0000 (15:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Mar 2022 23:40:06 +0000 (18:40 -0500)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_hdp.h
drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c

index 5595f903c17a021456d1b48ff69dff236a44b76a..3f3d92e16c2e32b1f9d4bf05c7b7d9cfdd8ac3a9 100644 (file)
@@ -26,7 +26,5 @@
 
 void amdgpu_hdp_ras_fini(struct amdgpu_device *adev, struct ras_common_if *ras_block)
 {
-       if (amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__HDP) &&
-           ras_block)
-               amdgpu_ras_block_late_fini(adev, ras_block);
+
 }
index c05cd992ef8a552c5ead34ac770b1d3e97e7f420..9181c7bef7c67fe1d1c8f8b3d23aceecc93bb0bc 100644 (file)
@@ -44,5 +44,4 @@ struct amdgpu_hdp {
 };
 
 int amdgpu_hdp_ras_late_init(struct amdgpu_device *adev, struct ras_common_if *ras_block);
-void amdgpu_hdp_ras_fini(struct amdgpu_device *adev, struct ras_common_if *ras_block);
 #endif /* __AMDGPU_HDP_H__ */
index 02400d97a95c82cc6fac2a47878f0022a109383b..d1e27133b2caade5429d5bcd483e6a8db3b306c7 100644 (file)
@@ -166,7 +166,7 @@ struct amdgpu_hdp_ras hdp_v4_0_ras = {
                        .type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE,
                },
                .hw_ops = &hdp_v4_0_ras_hw_ops,
-               .ras_fini = amdgpu_hdp_ras_fini,
+               .ras_fini = amdgpu_ras_block_late_fini,
        },
 };