drm/amdgpu/sriov: workaround on rev_id for Navi12 under sriov
authorTiecheng Zhou <Tiecheng.Zhou@amd.com>
Wed, 8 Jan 2020 05:44:29 +0000 (13:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jan 2020 15:18:09 +0000 (10:18 -0500)
commitdf5e984c8bd414561c320d6cbbb66d53abf4c7e2
tree4f6ca4cd4e85cef15cc87ee57a987b4ab7fae194
parent2d5ef0b42c0bca33aaaff2f1b98855e4e3225a0f
drm/amdgpu/sriov: workaround on rev_id for Navi12 under sriov

guest vm gets 0xffffffff when reading RCC_DEV0_EPF0_STRAP0,
as a consequence, the rev_id and external_rev_id are wrong.

workaround it by hardcoding the rev_id to 0, which is the default value.

v2. add comment in the code

Signed-off-by: Tiecheng Zhou <Tiecheng.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c