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>
Wed, 5 Dec 2018 19:12:02 +0000 (14:12 -0500)
commit0a9b89b2e2e7b6d90f81ddc47e489be1043e01b1
tree3ef1fb2fb3f06c445f2ed192fc5f8e2dfacb30e8
parent090afc1e40f411144e112431da279bafe7e734ff
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