diff options
author | Leo Liu <leo.liu@amd.com> | 2017-05-31 14:25:54 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-06-01 16:00:22 -0400 |
commit | a107ebf61e8cc59dfbaeb676fa2d2a1783250f80 (patch) | |
tree | b93b22fce53703ef4e3118758786e234153b83ac /drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h | |
parent | 78b3c83983ce42067816a30825f9692eae952093 (diff) | |
download | linux-a107ebf61e8cc59dfbaeb676fa2d2a1783250f80.tar.gz linux-a107ebf61e8cc59dfbaeb676fa2d2a1783250f80.tar.bz2 linux-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 <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vce.h | 1 |
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]; |