Skip to content

Re-design doorbell framework for usermode queues

Shashank Sharma amd-gfx 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 19 repliesIn review
  2. v113 patches 16 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8drm/amdgpu: add UAPI for allocating doorbell memoryinclude/uapi/drm/amdgpu_drm.h+6 -12 replies
2/8drm/amdgpu: replace aper_base_kaddr with vram_aper_base_kaddrdrivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h +2 more+23 -232 replies
3/8drm/amdgpu: rename gmc.aper_base/sizedrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c drivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +11 more+49 -491 reply
4/8drm/amdgpu: rename doorbell variablesdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c drivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h +9 more+38 -382 replies
5/8drm/amdgpu: accommodate DOMAIN/PL_DOORBELLdrivers/gpu/drm/amd/amdgpu/amdgpu_object.c drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h+21 -26 replies
6/8drm/amdgpu: get doorbell memorydrivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c drivers/gpu/drm/amd/amdgpu/amdgpu_object.c drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +2 more+22 -120 replies
7/8drm/amdgpu: create doorbell kernel objectdrivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h+29 -03 replies
8/8drm/amdgpu: start using kernel doorbell bodrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c drivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h+16 -233 replies

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchChristian KoenigChristian König
1/8
2/8A-b
3/8A-b
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] Re-design doorbell framework for usermode queues

From: Shashank Sharma <[email protected]>

This patch series re-designs the current doorbell handling of the AMDGPU driver and prepares it for Usermode queues. The fundamental changes are:

- Introduce and accommodate a new GEM domain for doorbells.
- Prepare the AMDGPU ttm backend for handling doorbell memory.
- Create a doorbell BO for kernel-level doorbell opertations.
- Rename, move and re-arrange some existing structures.

The idea is that a usermode app can directly allocate a page from the doorbell bar and use it's offsets for different usermode queues.

Corresponding libdrm changes (just addition of this new flag):
https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/286

Alex Deucher (6):
drm/amdgpu: add UAPI for allocating doorbell memory drm/amdgpu: replace aper_base_kaddr with vram_aper_base_kaddr drm/amdgpu: rename gmc.aper_base/size
drm/amdgpu: rename doorbell variables
drm/amdgpu: accommodate DOMAIN/PL_DOORBELL drm/amdgpu: get doorbell memory

Shashank Sharma (2):
drm/amdgpu: create doorbell kernel object
drm/amdgpu: start using kernel doorbell bo

 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c   | 13 ++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c   | 67 +++++++++-----------
 drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h |  6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c   |  4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c      |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h      |  4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c      |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c   | 32 +++++++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h   |  3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c      | 51 ++++++++++++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h      | 11 +++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c       | 15 +++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h       |  3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c |  2 +-
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c        |  2 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c       | 10 +--
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c       | 10 +--
 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c        |  6 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c        | 12 ++--
 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c        | 10 +--
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c        | 10 +--
 drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c       |  4 +-
 drivers/gpu/drm/amd/amdgpu/nbio_v4_3.c       |  4 +-
 drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c       |  4 +-
 drivers/gpu/drm/amd/amdgpu/nbio_v7_2.c       |  4 +-
 drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c       |  4 +-
 drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c       |  4 +-
 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c       | 10 +--
 drivers/gpu/drm/amd/amdgpu/psp_v13_0.c       | 10 +--
 drivers/gpu/drm/amd/amdkfd/kfd_migrate.c     |  4 +-
 include/uapi/drm/amdgpu_drm.h                |  7 +-
 31 files changed, 193 insertions(+), 137 deletions(-)
Signature · 1 line
2.34.1