drm/amd/pm: Add interface for request WGPs
authorJinzhou Su <Jinzhou.Su@amd.com>
Thu, 17 Dec 2020 09:37:38 +0000 (17:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Dec 2020 20:06:42 +0000 (15:06 -0500)
commiteefdf0471069a41e7c3c2c2498270165464152be
tree1ee999074cc96a999452fec4b68921d8e6837009
parentd8a0b8dd690b5016b85b52746c089dcc71ab9413
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>
drivers/gpu/drm/amd/pm/inc/smu_types.h
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c