aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorShashank Sharma <shashank.sharma@amd.com>2024-05-09 14:17:13 +0200
committerAlex Deucher <alexander.deucher@amd.com>2025-04-08 16:48:15 -0400
commitf09c1e6077abd1bc2ddd2b97e1135215801ca7f9 (patch)
tree7cf059319069cecd15937c26d2711edb001143df /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentdrm/amdgpu: map wptr BO into GART (diff)
downloadlinux-rng-f09c1e6077abd1bc2ddd2b97e1135215801ca7f9.tar.xz
linux-rng-f09c1e6077abd1bc2ddd2b97e1135215801ca7f9.zip
drm/amdgpu: generate doorbell index for userqueue
The userspace sends us the doorbell object and the relative doobell index in the object to be used for the usermode queue, but the FW expects the absolute doorbell index on the PCI BAR in the MQD. This patch adds a function to convert this relative doorbell index to absolute doorbell index. V5: Fix the db object reference leak (Christian) V6: Pin the doorbell bo in userqueue_create() function, and unpin it in userqueue destoy (Christian) V7: Added missing kfree for queue in error cases Added Alex's R-B V8: Rebase V9: Changed the function names from gfx_v11* to mes_v11* V10: Rebase V11: Rebase Cc: Alex Deucher <alexander.deucher@amd.com> Cc: Christian Koenig <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Shashank Sharma <shashank.sharma@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
0 files changed, 0 insertions, 0 deletions