OSDN Git Service

drm/amd/amdgpu: Add rev_id workaround logic for SRIOV setup
authorBokun Zhang <Bokun.Zhang@amd.com>
Mon, 9 Nov 2020 19:09:03 +0000 (14:09 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Nov 2020 19:26:31 +0000 (14:26 -0500)
commitde21e4aeb2b26128dcc5be1bcb2fafa73d041e51
treed9ff99b130ad9ee1e1cf494faeaf07b1ea65a58f
parent25a35065c066496935217748b1662a7fcf26ed58
drm/amd/amdgpu: Add rev_id workaround logic for SRIOV setup

- When we are under SRIOV setup, the rev_id cannot be read
  properly. Therefore, we will return default value for it

Signed-off-by: Bokun Zhang <Bokun.Zhang@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c