drm/amd/pm: Add VF check to BACO support check

For smuv11, check for VF also during BACO check.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Lijo Lazar 2021-06-04 15:57:50 +08:00 committed by Alex Deucher
parent 458020dd4f
commit 52a9fd7bc0

View file

@ -1483,7 +1483,7 @@ bool smu_v11_0_baco_is_support(struct smu_context *smu)
{
struct smu_baco_context *smu_baco = &smu->smu_baco;
if (!smu_baco->platform_support)
if (amdgpu_sriov_vf(smu->adev) || !smu_baco->platform_support)
return false;
/* Arcturus does not support this bit mask */