mirror of https://gitee.com/openkylin/linux.git
drm/madgpu: Fix EEPROM Checksum calculation.
Fix typo which messed up the calculation. Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-and-tested-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
4d25fba4e3
commit
4bc2234077
|
@ -226,8 +226,8 @@ static void __decode_table_record_from_buff(struct amdgpu_ras_eeprom_control *co
|
|||
record->offset = (le64_to_cpu(tmp) & 0xffffffffffff);
|
||||
i += 6;
|
||||
|
||||
buff[i++] = record->mem_channel;
|
||||
buff[i++] = record->mcumc_id;
|
||||
record->mem_channel = buff[i++];
|
||||
record->mcumc_id = buff[i++];
|
||||
|
||||
memcpy(&tmp, buff + i, 6);
|
||||
record->retired_page = (le64_to_cpu(tmp) & 0xffffffffffff);
|
||||
|
|
Loading…
Reference in New Issue