drm/amdgpu/acp: Powrgate acp via smu
authorRex Zhu <Rex.Zhu@amd.com>
Sun, 29 Jul 2018 10:44:06 +0000 (18:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:09:43 +0000 (11:09 -0500)
commit3a54d2c8951113171655425bd173f43bbcb531c5
tree7cbc6f3c1cd86182bfd38b18ef4e3838281b2b1e
parent1062ddb6d5749f58fb3f086b9cdf596487ca2d6a
drm/amdgpu/acp: Powrgate acp via smu

Call smu to power gate/ungate acp instand of only
powr down acp tiles in acp block.
when smu power gate acp:
smu will turn off clock, power down acp tiles,check and
enter in ULV state.
when smu  ungate acp:
smu will exit ulv, turn on clocks, power on acp tiles.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c