]> www.infradead.org Git - users/hch/block.git/commit
drm/amdgpu: Fix eeprom max record count
authorStanley.Yang <Stanley.Yang@amd.com>
Thu, 18 Jul 2024 02:58:04 +0000 (10:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Jul 2024 21:30:23 +0000 (17:30 -0400)
commit1a8825259a9ccc53faddcdec24cf94e0a36b32cc
tree03681d1a2fd12d4cf70522a44ed48ab06a79fe52
parentafac8c6554ccee54bfd1743755e10af005be3bcf
drm/amdgpu: Fix eeprom max record count

The eeprom table is empty before initializing,
set eeprom table version first before initializing.

Changed from V1:
Reuse amdgpu_ras_set_eeprom_table_version function

Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 015b8a2fdf39a4c288ff24e7b715b8d9198e56dc)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c