drm/amdgpu/vcn: Update vcn.cur_state during suspend
authorJames Zhu <James.Zhu@amd.com>
Tue, 4 Dec 2018 03:04:28 +0000 (22:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Dec 2018 22:38:24 +0000 (17:38 -0500)
commitf9872f100aefd3b80eb4a61dbea326ee28cdc94a
tree43fe72a472a4a20ba1e3366ce307fbd86cf9aa75
parenta3a0ebd10a9b6cf6c33885016393729112c85083
drm/amdgpu/vcn: Update vcn.cur_state during suspend

Replace vcn_v1_0_stop with vcn_v1_0_set_powergating_state during suspend,
to keep adev->vcn.cur_state update. It will fix VCN S3 hung issue.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c