<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Acked-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of jianzh@amd.com <jianzh@amd.com><br>
<b>Sent:</b> Monday, October 28, 2019 6:14 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Deng, Emily <Emily.Deng@amd.com>; Zhao, Jiange <Jiange.Zhao@amd.com>; Nieto, David M <David.Nieto@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdgpu/SRIOV: SRIOV VF doesn't support BACO</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">From: Jiange Zhao <Jiange.Zhao@amd.com><br>
<br>
SRIOV VF doesn't support BACO.<br>
<br>
Only PF with BACO capability can do it.<br>
<br>
Signed-off-by: Jiange Zhao <Jiange.Zhao@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/nv.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c<br>
index 22ab1955b923..a55a2e83fb19 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/nv.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/nv.c<br>
@@ -299,7 +299,7 @@ nv_asic_reset_method(struct amdgpu_device *adev)<br>
 {<br>
         struct smu_context *smu = &adev->smu;<br>
 <br>
-       if (smu_baco_is_support(smu))<br>
+       if (!amdgpu_sriov_vf(adev) && smu_baco_is_support(smu))<br>
                 return AMD_RESET_METHOD_BACO;<br>
         else<br>
                 return AMD_RESET_METHOD_MODE1;<br>
-- <br>
2.20.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a></div>
</span></font></div>
</body>
</html>