Skip to content

Commit 4506f0b

Browse files
candicelicyalexdeucher
authored andcommitted
drm/amd/pm: Align eccinfo table structure with smu v13_0_0 interface
Update eccinfo table structure according to smu v13_0_0 interface. v2: Calculate array size instead of using macro definition. Signed-off-by: Candice Li <candice.li@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent c39ca69 commit 4506f0b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
#include "asic_reg/mp/mp_13_0_0_sh_mask.h"
4747
#include "smu_cmn.h"
4848
#include "amdgpu_ras.h"
49-
#include "umc_v8_10.h"
5049

5150
/*
5251
* DO NOT use these for err/warn/info/debug messages.
@@ -2609,7 +2608,7 @@ static ssize_t smu_v13_0_0_get_ecc_info(struct smu_context *smu,
26092608

26102609
ecc_table = (EccInfoTable_t *)smu_table->ecc_table;
26112610

2612-
for (i = 0; i < UMC_V8_10_TOTAL_CHANNEL_NUM(adev); i++) {
2611+
for (i = 0; i < ARRAY_SIZE(ecc_table->EccInfo); i++) {
26132612
ecc_info_per_channel = &(eccinfo->ecc[i]);
26142613
ecc_info_per_channel->ce_count_lo_chip =
26152614
ecc_table->EccInfo[i].ce_count_lo_chip;

0 commit comments

Comments
 (0)