Skip to content

Commit a8558fc

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Avoid FRU EEPROM access on APU
FRU EEPROM access is not valid for APU devices. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Yang Wang <kevinyang.wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent f74f19c commit a8558fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ static bool is_fru_eeprom_supported(struct amdgpu_device *adev, u32 *fru_addr)
4242

4343
/* The i2c access is blocked on VF
4444
* TODO: Need other way to get the info
45+
* Also, FRU not valid for APU devices.
4546
*/
46-
if (amdgpu_sriov_vf(adev))
47+
if (amdgpu_sriov_vf(adev) || (adev->flags & AMD_IS_APU))
4748
return false;
4849

4950
/* The default I2C EEPROM address of the FRU.

0 commit comments

Comments
 (0)