drm/amdgpu: add saved_bo to save vce 4.0 context when suspend
authorLeo Liu <leo.liu@amd.com>
Wed, 31 May 2017 18:25:54 +0000 (14:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jun 2017 20:00:22 +0000 (16:00 -0400)
commita107ebf61e8cc59dfbaeb676fa2d2a1783250f80
treeb93b22fce53703ef4e3118758786e234153b83ac
parent78b3c83983ce42067816a30825f9692eae952093
drm/amdgpu: add saved_bo to save vce 4.0 context when suspend

We are using PSP to resume firmware after suspend, and it is
resumed at where it got suspended, so we'd better save the
the context.

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