[PATCH 2/3] drm/amd/pm: Add VF check to BACO support check

Lazar, Lijo Lijo.Lazar at amd.com
Fri Jun 4 09:12:22 UTC 2021


[Public]

For smuv11, check for VF also during BACO check.

Signed-off-by: Lijo Lazar <lijo.lazar at amd.com>
---
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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 */
--
2.17.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20210604/ae1497a9/attachment.htm>


More information about the amd-gfx mailing list