diff options
author | James Zhu <James.Zhu@amd.com> | 2020-04-03 05:25:45 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-04-09 16:43:15 +0200 |
commit | 21b704d78352c289d31697824ceea7ad0ff4ce59 (patch) | |
tree | 973fd3ab1c1f889b3824428afc462d5eac76c1b7 /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | |
parent | drm/amdgpu: Fix oops when pp_funcs is unset in ACPI event (diff) | |
download | linux-21b704d78352c289d31697824ceea7ad0ff4ce59.tar.xz linux-21b704d78352c289d31697824ceea7ad0ff4ce59.zip |
drm/amdgpu/vcn: add shared memory restore after wake up from sleep.
VCN shared memory needs restore after wake up during S3 test.
v2: Allocate shared memory saved_bo at sw_init and free it in sw_fini.
Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h index 6da6e2e0fdd8..90aa12b22725 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h @@ -194,6 +194,7 @@ struct amdgpu_vcn_inst { atomic_t dpg_enc_submission_cnt; void *fw_shared_cpu_addr; uint64_t fw_shared_gpu_addr; + void *saved_shm_bo; }; struct amdgpu_vcn { |