drm/amd/powerplay: initialize uvd/vce powergate status v4
authorEvan Quan <evan.quan@amd.com>
Mon, 11 Jun 2018 08:25:14 +0000 (16:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:38:54 +0000 (16:38 -0500)
commitf74aa69d0aed89b5ea283f4a6f86f0505407021e
treeb181fc9343fa96f4ebee955822d6842ef54b6e8b
parent8fd26361701187e6fbb56c7c8bf22b4ab763b082
drm/amd/powerplay: initialize uvd/vce powergate status v4

On UVD/VCE dpm enabled/disabled, the powergate status will be
set as false/true. So that we will not try to ungate/gate them(
enable/disable their dpm) again.

v2: added check for uvd/vce powergate status before gating
v3: fix typo in description
v4: warning fix (Alex)

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c