]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: optimize timeout implemention in ras_eeprom_update_record_num
authorTao Zhou <tao.zhou1@amd.com>
Thu, 6 Nov 2025 08:26:56 +0000 (16:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Nov 2025 02:54:14 +0000 (21:54 -0500)
commit7fb41ab3c94828ad48e1a6d2237e8a7e682c74b9
tree6fbfe0f157e779fdb3b0097fce4171562a6cec24
parenteed30152746ec1d8b6e8ab31e349f1eb8d8bd666
drm/amdgpu: optimize timeout implemention in ras_eeprom_update_record_num

The busy status returned by ras_eeprom_update_record_num may not be
an error, increase timeout to exclude false busy status. Also add more
comments to make the code readable.

v2: define a macro for the timeout value.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c