]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: map doorbell for the requested userq
authorSaleemkhan Jamadar <saleemkhan.jamadar@amd.com>
Fri, 3 Jan 2025 13:32:59 +0000 (19:02 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Apr 2025 20:48:20 +0000 (16:48 -0400)
commit3e37fcb57bdf794804bec9538d20673a5bf4bdd8
tree527e6b96a1844e095682cd2c898f9c2c70ba3559
parent8639d2f5ca27ca533e782cc8f8de62ea002f1833
drm/amdgpu: map doorbell for the requested userq

Introduce db_info structure to the populate the doorbell
information that is required to be mapped.

Made changes to the doorbell mapping func more generic,
by taking parameters that vary based on IPs and/or usecase
into db_info structure.

v2 - Fix space alignment and checkpatch warnings(Shashank)

Signed-off-by: Saleemkhan Jamadar <saleemkhan.jamadar@amd.com>
Reviewed-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
drivers/gpu/drm/amd/include/amdgpu_userqueue.h