mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 03:06:50 -04:00
drm/amdgpu: fix sdma instance
It should change logical instance to device instance to query ras info Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
0c451baf3b
commit
1ad29cb343
@@ -2123,6 +2123,7 @@ static void sdma_v4_4_2_inst_query_ras_error_count(struct amdgpu_device *adev,
|
||||
void *ras_err_status)
|
||||
{
|
||||
struct ras_err_data *err_data = (struct ras_err_data *)ras_err_status;
|
||||
uint32_t sdma_dev_inst = GET_INST(SDMA0, sdma_inst);
|
||||
|
||||
/* sdma v4_4_2 doesn't support query ce counts */
|
||||
amdgpu_ras_inst_query_ras_error_count(adev,
|
||||
@@ -2130,7 +2131,7 @@ static void sdma_v4_4_2_inst_query_ras_error_count(struct amdgpu_device *adev,
|
||||
ARRAY_SIZE(sdma_v4_2_2_ue_reg_list),
|
||||
sdma_v4_4_2_ras_memory_list,
|
||||
ARRAY_SIZE(sdma_v4_4_2_ras_memory_list),
|
||||
sdma_inst,
|
||||
sdma_dev_inst,
|
||||
AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE,
|
||||
&err_data->ue_count);
|
||||
}
|
||||
@@ -2153,10 +2154,12 @@ static void sdma_v4_4_2_query_ras_error_count(struct amdgpu_device *adev,
|
||||
static void sdma_v4_4_2_inst_reset_ras_error_count(struct amdgpu_device *adev,
|
||||
uint32_t sdma_inst)
|
||||
{
|
||||
uint32_t sdma_dev_inst = GET_INST(SDMA0, sdma_inst);
|
||||
|
||||
amdgpu_ras_inst_reset_ras_error_count(adev,
|
||||
sdma_v4_2_2_ue_reg_list,
|
||||
ARRAY_SIZE(sdma_v4_2_2_ue_reg_list),
|
||||
sdma_inst);
|
||||
sdma_dev_inst);
|
||||
}
|
||||
|
||||
static void sdma_v4_4_2_reset_ras_error_count(struct amdgpu_device *adev)
|
||||
|
||||
Reference in New Issue
Block a user