<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">
<p style="font-family:Arial;font-size:10pt;color:#008000;margin:15pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
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 Victor Zhao <Victor.Zhao@amd.com><br>
<b>Sent:</b> Monday, September 25, 2023 11:08 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Zhao, Victor <Victor.Zhao@amd.com><br>
<b>Subject:</b> [PATCH] drm/amd/pm: Disallow managing power profiles on SRIOV for gc11.0.3</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">disable pp_power_profile_mode for sriov on gc11.0.3 as not supported<br>
by smu<br>
<br>
Signed-off-by: Victor Zhao <Victor.Zhao@amd.com><br>
---<br>
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 3 ++-<br>
 1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c<br>
index 2d19282e4fbe..b6f32d57b81f 100644<br>
--- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c<br>
+++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c<br>
@@ -2122,7 +2122,8 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_<br>
         } else if (DEVICE_ATTR_IS(pp_power_profile_mode)) {<br>
                 if (amdgpu_dpm_get_power_profile_mode(adev, NULL) == -EOPNOTSUPP)<br>
                         *states = ATTR_STATE_UNSUPPORTED;<br>
-               else if (gc_ver == IP_VERSION(10, 3, 0) && amdgpu_sriov_vf(adev))<br>
+               else if ((gc_ver == IP_VERSION(10, 3, 0) ||<br>
+                         gc_ver == IP_VERSION(11, 0, 3)) && amdgpu_sriov_vf(adev))<br>
                         *states = ATTR_STATE_UNSUPPORTED;<br>
         }<br>
 <br>
-- <br>
2.34.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>