[PATCH] drm/amdgpu/SRIOV: SRIOV VF doesn't support BACO

Deucher, Alexander Alexander.Deucher at amd.com
Mon Oct 28 13:02:47 UTC 2019


Acked-by: Alex Deucher <alexander.deucher at amd.com>
________________________________
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> on behalf of jianzh at amd.com <jianzh at amd.com>
Sent: Monday, October 28, 2019 6:14 AM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Cc: Deng, Emily <Emily.Deng at amd.com>; Zhao, Jiange <Jiange.Zhao at amd.com>; Nieto, David M <David.Nieto at amd.com>
Subject: [PATCH] drm/amdgpu/SRIOV: SRIOV VF doesn't support BACO

From: Jiange Zhao <Jiange.Zhao at amd.com>

SRIOV VF doesn't support BACO.

Only PF with BACO capability can do it.

Signed-off-by: Jiange Zhao <Jiange.Zhao at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/nv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c
index 22ab1955b923..a55a2e83fb19 100644
--- a/drivers/gpu/drm/amd/amdgpu/nv.c
+++ b/drivers/gpu/drm/amd/amdgpu/nv.c
@@ -299,7 +299,7 @@ nv_asic_reset_method(struct amdgpu_device *adev)
 {
         struct smu_context *smu = &adev->smu;

-       if (smu_baco_is_support(smu))
+       if (!amdgpu_sriov_vf(adev) && smu_baco_is_support(smu))
                 return AMD_RESET_METHOD_BACO;
         else
                 return AMD_RESET_METHOD_MODE1;
--
2.20.1

_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20191028/4cd42198/attachment-0001.html>


More information about the amd-gfx mailing list