diff options
author | Lijo Lazar <lijo.lazar@amd.com> | 2021-06-04 15:57:50 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-06-04 16:02:27 -0400 |
commit | 52a9fd7bc0c1916fb8fcf7d86c3d06c1ee26a032 (patch) | |
tree | fe5168b7b8414596a9f3b1ddb05d6b9d1e431607 /drivers/gpu/drm/amd/pm/swsmu/smu11 | |
parent | 458020dd4f7109693d4857ed320398e662e8899a (diff) | |
download | linux-52a9fd7bc0c1916fb8fcf7d86c3d06c1ee26a032.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/swsmu/smu11')
-rw-r--r-- | drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c index 362696208fd8..e1e1c268f661 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c @@ -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 */ |