]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:27 +0000 (08:36 +0100)
commit9f3a2e147f0e81b6c9d3104c94903dc14c9f4e5a
treecaadc4d85c3a62c39c734d3d29496760ef18bf2b
parent750a95d63746458e86c6d92dfad48a05c64d0ecd
drm/amdgpu/sriov: workaround on rev_id for Navi12 under sriov

[ Upstream commit df5e984c8bd414561c320d6cbbb66d53abf4c7e2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/nv.c