aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2017-05-31 18:25:54 +0000
committerAlex Deucher <[email protected]>2017-06-01 20:00:22 +0000
commita107ebf61e8cc59dfbaeb676fa2d2a1783250f80 (patch)
treeb93b22fce53703ef4e3118758786e234153b83ac /drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h
parentdrm/amdgpu: use existing function amdgpu_bo_create_kernel (diff)
downloadkernel-a107ebf61e8cc59dfbaeb676fa2d2a1783250f80.tar.gz
kernel-a107ebf61e8cc59dfbaeb676fa2d2a1783250f80.zip
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 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h
index c93f74a1d0e2..5ce54cde472d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h
@@ -34,6 +34,7 @@ struct amdgpu_vce {
struct amdgpu_bo *vcpu_bo;
uint64_t gpu_addr;
void *cpu_addr;
+ void *saved_bo;
unsigned fw_version;
unsigned fb_version;
atomic_t handles[AMDGPU_MAX_VCE_HANDLES];