OSDN Git Service

drm/amdgpu: Re-enable FRU check for most models v5
authorKent Russell <kent.russell@amd.com>
Fri, 3 Apr 2020 14:42:21 +0000 (10:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Apr 2020 14:43:17 +0000 (10:43 -0400)
commit1ea2b260eb6306b31dd6a932693519dd35da3774
treec281cde0b91c0f56344cd046cb628f341cc2bfdb
parent3adf175e2e74aaa0b416cbf322eb8664081a63a9
drm/amdgpu: Re-enable FRU check for most models v5

There is at least 1 VG20 DID that does not have an FRU, and trying to read
that will cause a hang. For now, explicitly support reading the FRU for
Arcturus and for the WKS VG20 DIDs, and skip for everything else.
This re-enables serial number reporting for server cards

v2: Add ASIC check
v3: Don't default to true for pre-VG20
v4: Use DID instead of parsing the VBIOS
v5: Sqaush in overflow warning fix

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