[PATCH] drm/amdgpu: skip power profile switch in sriov
Zhao, Jiange
Jiange.Zhao at amd.com
Thu Nov 26 09:05:03 UTC 2020
[AMD Public Use]
Reviewed-by: Jiange Zhao <Jiange.Zhao at amd.com>
-----Original Message-----
From: Jingwen Chen <Jingwen.Chen2 at amd.com>
Sent: Thursday, November 26, 2020 4:38 PM
To: amd-gfx at lists.freedesktop.org; Zhao, Jiange <Jiange.Zhao at amd.com>
Cc: Chen, JingWen <JingWen.Chen2 at amd.com>
Subject: [PATCH] drm/amdgpu: skip power profile switch in sriov
power profile switch in vcn need to send SetWorkLoad msg to smu, which is not supported in sriov.
Signed-off-by: Jingwen Chen <Jingwen.Chen2 at amd.com>
---
drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c b/drivers/gpu/drm/amd/pm/amdgpu_dpm.c
index 17a45baff638..8fb12afe3c96 100644
--- a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c
+++ b/drivers/gpu/drm/amd/pm/amdgpu_dpm.c
@@ -1168,6 +1168,9 @@ int amdgpu_dpm_switch_power_profile(struct amdgpu_device *adev, {
int ret = 0;
+ if (amdgpu_sriov_vf(adev))
+ return 0;
+
if (is_support_sw_smu(adev))
ret = smu_switch_power_profile(&adev->smu, type, en);
else if (adev->powerplay.pp_funcs &&
--
2.25.1
More information about the amd-gfx
mailing list