summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/inc/smu_types.h
diff options
context:
space:
mode:
authorJinzhou Su <Jinzhou.Su@amd.com>2020-12-17 17:37:38 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-12-23 15:06:42 -0500
commiteefdf0471069a41e7c3c2c2498270165464152be (patch)
tree1ee999074cc96a999452fec4b68921d8e6837009 /drivers/gpu/drm/amd/pm/inc/smu_types.h
parentd8a0b8dd690b5016b85b52746c089dcc71ab9413 (diff)
downloadlinux-eefdf0471069a41e7c3c2c2498270165464152be.tar.bz2
drm/amd/pm: Add interface for request WGPs
When user specifies a reduced WGP(CU) config via disalbe_cu module parameter, this does not disable the clocks which uses additional power. This interface send active WGP number to SMU and SMU will cooperate with RLC to power off relative WGPs. v2: Add request active WGPs in Vangogh smu post init. Signed-off-by: Jinzhou.Su <Jinzhou.Su@amd.com> Reviewed-by: Jiansong Chen <Jiansong.Chen@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/inc/smu_types.h')
-rw-r--r--drivers/gpu/drm/amd/pm/inc/smu_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/inc/smu_types.h b/drivers/gpu/drm/amd/pm/inc/smu_types.h
index 720d15612fe1..b2d0d8fcf429 100644
--- a/drivers/gpu/drm/amd/pm/inc/smu_types.h
+++ b/drivers/gpu/drm/amd/pm/inc/smu_types.h
@@ -211,6 +211,7 @@
__SMU_DUMMY_MAP(SetGpoFeaturePMask), \
__SMU_DUMMY_MAP(DisallowGpo), \
__SMU_DUMMY_MAP(Enable2ndUSB20Port), \
+ __SMU_DUMMY_MAP(RequestActiveWgp), \
#undef __SMU_DUMMY_MAP
#define __SMU_DUMMY_MAP(type) SMU_MSG_##type