This is needed for VCN and VPE to get the doorbell index

Signed-off-by: David (Ming Qiang) Wu <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Christian König <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
index e007f10a6c1c..dc9000b25be4 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
@@ -601,6 +601,10 @@ amdgpu_userq_get_doorbell_index(struct amdgpu_userq_mgr 
*uq_mgr,
        case AMDGPU_HW_IP_DMA:
                db_size = sizeof(u64);
                break;
+       case AMDGPU_HW_IP_VCN_ENC:
+       case AMDGPU_HW_IP_VPE:
+               db_size = sizeof(u32);
+               break;
        default:
                drm_file_err(uq_mgr->file, "[Usermode queues] IP %d not 
support\n",
                             db_info->queue_type);
-- 
2.43.0

Reply via email to