]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: add structures for umc error address translation
authorTao Zhou <tao.zhou1@amd.com>
Mon, 22 Jul 2019 10:30:59 +0000 (18:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 19:50:11 +0000 (14:50 -0500)
add related registers, callback function and channel index table

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

index f5d6def96414287ca86464a1fa0bfc6999a0cd64..dfa1a39e57af7f01a4dd6a26b5cab645cd428dc1 100644 (file)
@@ -24,6 +24,8 @@
 struct amdgpu_umc_funcs {
        void (*query_ras_error_count)(struct amdgpu_device *adev,
                                        void *ras_error_status);
+       void (*query_ras_error_address)(struct amdgpu_device *adev,
+                                       void *ras_error_status);
 };
 
 struct amdgpu_umc {
index 5b1ccb81b3a29896bf00aaa45de809ddd9951e0e..e05f3e68edb0e8670a4a317dfd2ed2f36d1a8160 100644 (file)
 #include "umc/umc_6_1_1_offset.h"
 #include "umc/umc_6_1_1_sh_mask.h"
 
+#define smnMCA_UMC0_MCUMC_ADDRT0       0x50f10
+
+static uint32_t
+       umc_v6_1_channel_idx_tbl[UMC_V6_1_UMC_INSTANCE_NUM][UMC_V6_1_CHANNEL_INSTANCE_NUM] = {
+               {2, 18, 11, 27},        {4, 20, 13, 29},
+               {1, 17, 8, 24},         {7, 23, 14, 30},
+               {10, 26, 3, 19},        {12, 28, 5, 21},
+               {9, 25, 0, 16},         {15, 31, 6, 22}
+};
+
 static void umc_v6_1_enable_umc_index_mode(struct amdgpu_device *adev,
                                           uint32_t umc_instance)
 {