Align eccinfo table structure with smu v13_0_0 interface
Subsystems (3)
PATCH 1/1 Align eccinfo table structure with smu v13_0_0 interface
Update eccinfo table structure according to smu v13_0_0 interface.
Signed-off-by Candice Li <[email protected]>
Reviewed-by Hawking Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/umc_v8_10.h | 3 +++ drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/umc_v8_10.h +3 -0
@@ -31,6 +31,9 @@/* number of umc instance with memory map register access */ #define UMC_V8_10_UMC_INSTANCE_NUM 2 +/* Max number of umc channel instances */ +#define UMC_V8_10_MAX_CHANNEL_NUM 24 +/* Total channel instances for all available umc nodes */ #define UMC_V8_10_TOTAL_CHANNEL_NUM (adev) \ (UMC_V8_10_CHANNEL_INSTANCE_NUM * UMC_V8_10_UMC_INSTANCE_NUM * (adev)->gmc.num_umc)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +1 -1
@@ -2580,7 +2580,7 @@ static ssize_t smu_v13_0_0_get_ecc_info(struct smu_context *smu, ecc_table = (EccInfoTable_t *)smu_table->ecc_table; -for (i =0 ; i <UMC_V8_10_TOTAL_CHANNEL_NUM (adev); i++) { +for (i =0 ; i <UMC_V8_10_MAX_CHANNEL_NUM ; i++) { ecc_info_per_channel = &(eccinfo->ecc[i]); ecc_info_per_channel->ce_count_lo_chip = ecc_table->EccInfo[i].ce_count_lo_chip;
Signature · 1 line
2.25.1