]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: fix incorrect judge on sos fw version
authorMonk Liu <Monk.Liu@amd.com>
Tue, 30 Jul 2019 09:32:27 +0000 (17:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Aug 2019 15:17:28 +0000 (10:17 -0500)
for SRIOV the SOS fw of PSP is loaded in hypervisor thus
guest won't tell the version of it, and judging feature by
reading the sos fw version in guest side is completely wrong

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Emily Deng <Emily.Deng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c

index 019c47feee42f2d0a2f8c699b993d4f5bea679bf..c2ebc0020e5d882652548b47f1e87f0cc49497b5 100644 (file)
@@ -636,7 +636,7 @@ static int psp_v3_1_mode1_reset(struct psp_context *psp)
 
 static bool psp_v3_1_support_vmr_ring(struct psp_context *psp)
 {
-       if (amdgpu_sriov_vf(psp->adev) && psp->sos_fw_version >= 0x80455)
+       if (amdgpu_sriov_vf(psp->adev))
                return true;
 
        return false;