]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40b34ded4c517630d7e7596f7c71230691345d66
tree4f6ca4cd4e85cef15cc87ee57a987b4ab7fae194
parente59cbd511f18adaa006a22cd4c5412ce4623ac30
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