drm/amdgpu: disable FRU access on special SIENNA CICHLID card
Subsystems (2)
PATCH 1/1 drm/amdgpu: disable FRU access on special SIENNA CICHLID card
Below driver load error will be printed, not friendly to end user.
amdgpu: ATOM BIOS: 113-D603GLXE-077
[drm] FRU: Failed to get size field
[drm:amdgpu_fru_get_product_info [amdgpu]] *ERROR* Failed to read FRU Manufacturer, ret:-5
--- drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c +8 -3
@@ -66,10 +66,15 @@ static bool is_fru_eeprom_supported(struct amdgpu_device *adev)return true;case CHIP_SIENNA_CICHLID :if (strnstr (atom_ctx->vbios_version,"D603" , -sizeof (atom_ctx->vbios_version))) -return true; -else +sizeof (atom_ctx->vbios_version))) { +if (strnstr (atom_ctx->vbios_version,"D603GLXE" , +sizeof (atom_ctx->vbios_version))) +return false; +else +return true; + }else {return false; + }default :return false; }
Signature · 1 line
2.25.1
[AMD Official Use Only - General]
-----Original Message-----
From: Chen, Guchun <[email protected]>
Sent: Wednesday, August 24, 2022 11:04 AM
To: [email protected]; Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Russell, Kent <[email protected]>
Cc: Chen, Guchun <[email protected]>
Subject: [PATCH] drm/amdgpu: disable FRU access on special SIENNA CICHLID card
Below driver load error will be printed, not friendly to end user.
amdgpu: ATOM BIOS: 113-D603GLXE-077
[drm] FRU: Failed to get size field
[drm:amdgpu_fru_get_product_info [amdgpu]] *ERROR* Failed to read FRU Manufacturer, ret:-5
--- drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c +8 -3
@@ -66,10 +66,15 @@ static bool is_fru_eeprom_supported(struct amdgpu_device *adev)return true;case CHIP_SIENNA_CICHLID :if (strnstr (atom_ctx->vbios_version,"D603" , -sizeof (atom_ctx->vbios_version))) -return true; -else +sizeof (atom_ctx->vbios_version))) { +if (strnstr (atom_ctx->vbios_version,"D603GLXE" , +sizeof (atom_ctx->vbios_version))) +return false; +else +return true; + }else {return false; + }default :return false; }
Signature · 1 line
2.25.1