]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d8c6ae13737dfeec72da14abff6fb73abb352b6
treec281cde0b91c0f56344cd046cb628f341cc2bfdb
parentd41a89ae2a7d972b59ad0f5229b38f862ade51e8
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