drm/amdgpu: rename umc ras_init to err_cnt_init
authorTao Zhou <tao.zhou1@amd.com>
Fri, 6 Sep 2019 06:32:14 +0000 (14:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 15:06:20 +0000 (10:06 -0500)
this interface is related to specific version of umc, distinguish it
from ras_late_init

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.h
drivers/gpu/drm/amd/amdgpu/umc_v6_1.c

index 5683c51710aa38bad80690a254bc597addd4ab8e..c5d8b08af7314ac5a3355b0fd9be99cd8fb89f08 100644 (file)
@@ -63,8 +63,8 @@ int amdgpu_umc_ras_late_init(struct amdgpu_device *adev, void *ras_ih_info)
        }
 
        /* ras init of specific umc version */
-       if (adev->umc.funcs && adev->umc.funcs->ras_init)
-               adev->umc.funcs->ras_init(adev);
+       if (adev->umc.funcs && adev->umc.funcs->err_cnt_init)
+               adev->umc.funcs->err_cnt_init(adev);
 
        return 0;
 
index 6f22c970455539e1e206334a9d52c4e6919546c5..3ec36d9e012a6cb77385db1555322d16b2d11114 100644 (file)
@@ -54,7 +54,7 @@
        adev->umc.funcs->disable_umc_index_mode(adev);
 
 struct amdgpu_umc_funcs {
-       void (*ras_init)(struct amdgpu_device *adev);
+       void (*err_cnt_init)(struct amdgpu_device *adev);
        int (*ras_late_init)(struct amdgpu_device *adev, void *ras_ih_info);
        void (*query_ras_error_count)(struct amdgpu_device *adev,
                                        void *ras_error_status);
index 4cdb5c04cd17f31c9458936c5f4a2bb40af6f526..1c0da32c156101acf520d02caa0fab69eba1b57f 100644 (file)
@@ -234,7 +234,7 @@ static void umc_v6_1_query_ras_error_address(struct amdgpu_device *adev,
        amdgpu_umc_for_each_channel(umc_v6_1_query_error_address);
 }
 
-static void umc_v6_1_ras_init_per_channel(struct amdgpu_device *adev,
+static void umc_v6_1_err_cnt_init_per_channel(struct amdgpu_device *adev,
                                         struct ras_err_data *err_data,
                                         uint32_t umc_reg_offset, uint32_t channel_index)
 {
@@ -264,15 +264,15 @@ static void umc_v6_1_ras_init_per_channel(struct amdgpu_device *adev,
        WREG32(ecc_err_cnt_addr + umc_reg_offset, UMC_V6_1_CE_CNT_INIT);
 }
 
-static void umc_v6_1_ras_init(struct amdgpu_device *adev)
+static void umc_v6_1_err_cnt_init(struct amdgpu_device *adev)
 {
        void *ras_error_status = NULL;
 
-       amdgpu_umc_for_each_channel(umc_v6_1_ras_init_per_channel);
+       amdgpu_umc_for_each_channel(umc_v6_1_err_cnt_init_per_channel);
 }
 
 const struct amdgpu_umc_funcs umc_v6_1_funcs = {
-       .ras_init = umc_v6_1_ras_init,
+       .err_cnt_init = umc_v6_1_err_cnt_init,
        .ras_late_init = amdgpu_umc_ras_late_init,
        .query_ras_error_count = umc_v6_1_query_ras_error_count,
        .query_ras_error_address = umc_v6_1_query_ras_error_address,