projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d503d8b
)
drm/amdgpu: skip power profile switch in sriov
author
Jingwen Chen
<Jingwen.Chen2@amd.com>
Tue, 24 Nov 2020 06:06:54 +0000
(14:06 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Tue, 1 Dec 2020 20:58:54 +0000
(15:58 -0500)
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@amd.com>
Reviewed-by: Jiange Zhao <Jiange.Zhao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c
b/drivers/gpu/drm/amd/pm/amdgpu_dpm.c
index 17a45baff638c651649c983b66ada6cf575c44ff..8fb12afe3c96ad6994c6a4dc6b8ad1ad6cad7e9a 100644
(file)
--- 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 &&