aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h
diff options
context:
space:
mode:
authorLang Yu <[email protected]>2022-11-30 08:09:35 +0000
committerAlex Deucher <[email protected]>2024-03-07 20:32:48 +0000
commit709ef39f954676ed53d3e998e4d611f098a18e28 (patch)
treeccbb8fd4b5b4bede9b3dc890a543709bf0af3f4c /drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h
parentdrm/amdgpu/discovery: add nbif v6_3_1 ip block (diff)
downloadkernel-709ef39f954676ed53d3e998e4d611f098a18e28.tar.gz
kernel-709ef39f954676ed53d3e998e4d611f098a18e28.zip
drm/amdgpu/vpe: add multi instance VPE support
Add support for multi instance VPE processing. 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h
index 1153ddaea64d..ee6db04cf27b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.h
@@ -27,6 +27,8 @@
#include "amdgpu_irq.h"
#include "vpe_6_1_fw_if.h"
+#define AMDGPU_MAX_VPE_INSTANCES 2
+
struct amdgpu_vpe;
struct vpe_funcs {
@@ -74,6 +76,8 @@ struct amdgpu_vpe {
uint32_t *cmdbuf_cpu_addr;
struct delayed_work idle_work;
bool context_started;
+
+ uint32_t num_instances;
};
int amdgpu_vpe_psp_update_sram(struct amdgpu_device *adev);