]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amdgpu: Retry i2c transfer once if it fails on SMU13.0.6
authorKent Russell <kent.russell@amd.com>
Tue, 10 Sep 2024 13:32:13 +0000 (09:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Sep 2024 20:14:27 +0000 (16:14 -0400)
commit2ed186df27f078eb75c52d09e04aa7b0f9920f57
tree8cf41ab973430016b8f107a34fc52ebc635311e4
parentc77a46bebe99e70600e636a3a1f285637c479f46
drm/amdgpu: Retry i2c transfer once if it fails on SMU13.0.6

During init, there can be some collisions on the i2c bus that result in
the EEPROM read failing. This has been mitigated in the PMFW to a
degree, but there is still a small chance that the bus will be busy.
When the read fails during RAS init, that disables page retirement
altogether, which is obviously not ideal. To try to avoid that
situation, set the eeprom_read function to retry once if the first read
fails, specifically for smu_v13_0_6.

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c