drm/amdgpu: skip read eeprom for device that pending on XGMI reset
Subsystems (2)
PATCH 1/1 drm/amdgpu: skip read eeprom for device that pending on XGMI reset
Read eeprom through SMU doesn't works stable on XGMI reset during test. skip it for now
Signed-off-by shaoyunl <[email protected]>
Change-Id Id864b96a9da5b0d4dd5ffef9858997dd9f52de25
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +6 -0
@@ -1822,6 +1822,12 @@ int amdgpu_ras_recovery_init(struct amdgpu_device *adev) goto out; } +/* Todo: During test the SMU might fail to read the eeprom through I2C +* when the GPU is pending on XGMI reset during probe time +* (Mostly after second bus reset), skip it now +*/ +if (adev->gmc.xgmi.pending_reset) +return 0 ; ret =amdgpu_ras_eeprom_init (&con->eeprom_control, &exc_err_limit);/* * This calling fails when exc_err_limit is true or
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Official Use Only - Internal Distribution Only]
Reviewed-by Feifei Xu <[email protected]>
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of shaoyunl
Sent: 2021年3月10日 上午 9:27
To: [email protected]
Cc: Liu, Shaoyun <[email protected]>
Subject: [PATCH] drm/amdgpu: skip read eeprom for device that pending on XGMI reset
Read eeprom through SMU doesn't works stable on XGMI reset during test. skip it for now
Signed-off-by shaoyunl <[email protected]>
Change-Id Id864b96a9da5b0d4dd5ffef9858997dd9f52de25
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +6 -0
@@ -1822,6 +1822,12 @@ int amdgpu_ras_recovery_init(struct amdgpu_device *adev) goto out; } +/* Todo: During test the SMU might fail to read the eeprom through I2C +* when the GPU is pending on XGMI reset during probe time +* (Mostly after second bus reset), skip it now +*/ +if (adev->gmc.xgmi.pending_reset) +return 0 ; ret =amdgpu_ras_eeprom_init (&con->eeprom_control, &exc_err_limit);/* * This calling fails when exc_err_limit is true or
Signature · 10 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7CFeifei.Xu%40amd.com%7C0276a1df25374903a67208d8e3639832%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637509364274441634%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=4x7W4%2FLzTb8nKkryHCWr%2Bx%2BLmEtFwax6lZq7S3EWr8E%3D&reserved=0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx