OSDN Git Service

drm/amdgpu: Use SKU instead of DID for FRU check v2
authorKent Russell <kent.russell@amd.com>
Mon, 28 Sep 2020 18:20:05 +0000 (14:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Sep 2020 20:14:09 +0000 (16:14 -0400)
commitf94582e4bc4f73c1a265fdbe9aafd6eb5d314c41
treeb622188544ecfccb9875cfdd57c1046b2fab7a4c
parent485d531c695b0f5c87180a7724b85322d3967d39
drm/amdgpu: Use SKU instead of DID for FRU check v2

The VG20 DIDs 66a0, 66a1 and 66a4 are used for various SKUs that may or may
not have the FRU EEPROM on it. Parse the VBIOS to check for server SKU
variants (D131 or D134) until a more general solution can be determined.

v2: Remove string-based logic, correct the VBIOS string comment

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.c