aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h
diff options
context:
space:
mode:
authorLang Yu <[email protected]>2023-06-27 01:44:41 +0000
committerAlex Deucher <[email protected]>2023-08-31 20:34:22 +0000
commitf9ecae9a4ec19c2a7b3ac132411af1ee9940a0f5 (patch)
tree7e85f309ddd1df24d53c12172d2cead251de6890 /drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h
parentdrm/amdgpu: add VPE FW version query support (diff)
downloadkernel-f9ecae9a4ec19c2a7b3ac132411af1ee9940a0f5.tar.gz
kernel-f9ecae9a4ec19c2a7b3ac132411af1ee9940a0f5.zip
drm/amdgpu: fix VPE front door loading issue
Implement proper front door loading for vpe 6.1. Signed-off-by: Lang Yu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h
index 010fa7f308fd..b590205d6a28 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h
@@ -59,8 +59,13 @@ struct amdgpu_vpe {
const struct firmware *fw;
uint32_t fw_version;
uint32_t feature_version;
+
+ struct amdgpu_bo *cmdbuf_obj;
+ uint64_t cmdbuf_gpu_addr;
+ uint32_t *cmdbuf_cpu_addr;
};
+int amdgpu_vpe_psp_update_sram(struct amdgpu_device *adev);
int amdgpu_vpe_init_microcode(struct amdgpu_vpe *vpe);
int amdgpu_vpe_ring_init(struct amdgpu_vpe *vpe);
int amdgpu_vpe_ring_fini(struct amdgpu_vpe *vpe);