Hello Saleem,

On 06/01/2025 17:45, Saleemkhan Jamadar wrote:
This structure basically used to the populate the doorbell
information that is required to be mapped.

Signed-off-by: Saleemkhan Jamadar <[email protected]>
---
  drivers/gpu/drm/amd/include/amdgpu_userqueue.h | 7 +++++++
  1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/amd/include/amdgpu_userqueue.h 
b/drivers/gpu/drm/amd/include/amdgpu_userqueue.h
index e7e8d79b689d..1109144ed7e0 100644
--- a/drivers/gpu/drm/amd/include/amdgpu_userqueue.h
+++ b/drivers/gpu/drm/amd/include/amdgpu_userqueue.h
@@ -78,6 +78,13 @@ struct amdgpu_userq_mgr {
        struct delayed_work             resume_work;
  };
+struct amdgpu_db_info {
+       uint64_t doorbell_handle;
+       uint32_t queue_type;
+       uint32_t doorbell_offset;
+       struct amdgpu_userq_obj *db_obj;
+};
+

This patch can be squashed with second patch of the series.

- Shashank

  int amdgpu_userq_ioctl(struct drm_device *dev, void *data, struct drm_file 
*filp);
int amdgpu_userq_mgr_init(struct amdgpu_userq_mgr *userq_mgr, struct amdgpu_device *adev);

Reply via email to