All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] AMDGPU usermode queues
@ 2023-02-03 21:54 Shashank Sharma
  2023-02-03 21:54 ` [PATCH 1/8] drm/amdgpu: UAPI for user queue management Shashank Sharma
                   ` (9 more replies)
  0 siblings, 10 replies; 50+ messages in thread
From: Shashank Sharma @ 2023-02-03 21:54 UTC (permalink / raw)
  To: amd-gfx
  Cc: alexander.deucher, Shashank Sharma, christian.koenig,
	shashank.sharma

From: Shashank Sharma <contactshashanksharma@gmail.com>

This patch series introduces AMDGPU usermode graphics queues.
User queues is a method of GPU workload submission into the graphics
hardware without any interaction with kernel/DRM schedulers. In this
method, a userspace graphics application can create its own workqueue
and submit it directly in the GPU HW.

The general idea of how this is supposed to work:
- The application creates the following GPU objetcs:
  - A queue object to hold the workload packets.
  - A read pointer object.
  - A write pointer object.
  - A doorbell page.
- Kernel picks any 32-bit offset in the doorbell page for this queue.
- The application uses the usermode_queue_create IOCTL introduced in
  this patch, by passing the the GPU addresses of these objects (read
  ptr, write ptr, queue base address and doorbell address)
- The kernel creates the queue and maps it in the HW.
- The application can start submitting the data in the queue as soon as
  the kernel IOCTL returns.
- Once the data is filled in the queue, the app must write the number of
  dwords in the doorbell offset, and the GPU will start fetching the data.

libDRM changes for this series and a sample DRM test program can be found
in the MESA merge request here:
https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/287

The RFC patch series and previous discussion can be seen here:
https://patchwork.freedesktop.org/series/112214/

This patch series needs the doorbell re-design changes, which are being
reviewed here:
https://patchwork.freedesktop.org/series/113669/

In absence of the doorbell patches, this patch series uses a hack patch
to test the functionality. That hack patch is also published here at the
end of the series, just for reference.

Alex Deucher (1):
  drm/amdgpu: UAPI for user queue management

Arvind Yadav (1):
  drm/amdgpu: DO-NOT-MERGE add busy-waiting delay

Shashank Sharma (6):
  drm/amdgpu: add usermode queues
  drm/amdgpu: introduce userqueue MQD handlers
  drm/amdgpu: Add V11 graphics MQD functions
  drm/amdgpu: Create context for usermode queue
  drm/amdgpu: Map userqueue into HW
  drm/amdgpu: DO-NOT-MERGE doorbell hack

 drivers/gpu/drm/amd/amdgpu/Makefile           |   3 +
 drivers/gpu/drm/amd/amdgpu/amdgpu.h           |   2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |   2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c       |   5 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c | 365 ++++++++++++++++++
 .../amd/amdgpu/amdgpu_userqueue_mqd_gfx_v11.c | 300 ++++++++++++++
 .../gpu/drm/amd/include/amdgpu_userqueue.h    |  93 +++++
 drivers/gpu/drm/amd/include/v11_structs.h     |  16 +-
 include/uapi/drm/amdgpu_drm.h                 |  59 +++
 9 files changed, 837 insertions(+), 8 deletions(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue_mqd_gfx_v11.c
 create mode 100644 drivers/gpu/drm/amd/include/amdgpu_userqueue.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 50+ messages in thread

end of thread, other threads:[~2023-02-07 18:32 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-03 21:54 [PATCH 0/8] AMDGPU usermode queues Shashank Sharma
2023-02-03 21:54 ` [PATCH 1/8] drm/amdgpu: UAPI for user queue management Shashank Sharma
2023-02-03 22:07   ` Alex Deucher
2023-02-03 22:26     ` Shashank Sharma
2023-02-06 16:56       ` Alex Deucher
2023-02-06 17:01         ` Christian König
2023-02-06 21:03           ` Alex Deucher
2023-02-07  7:03             ` Christian König
2023-02-07  7:38               ` Shashank Sharma
2023-02-07 14:07                 ` Alex Deucher
2023-02-07 14:11                   ` Christian König
2023-02-07 14:17                     ` Alex Deucher
2023-02-07 14:19                       ` Christian König
2023-02-07 14:20                         ` Alex Deucher
2023-02-07 14:36                           ` Shashank Sharma
2023-02-03 21:54 ` [PATCH 2/8] drm/amdgpu: add usermode queues Shashank Sharma
2023-02-07  7:08   ` Christian König
2023-02-07  7:40     ` Shashank Sharma
2023-02-07 14:54   ` Alex Deucher
2023-02-07 15:02     ` Shashank Sharma
2023-02-03 21:54 ` [PATCH 3/8] drm/amdgpu: introduce userqueue MQD handlers Shashank Sharma
2023-02-07  7:11   ` Christian König
2023-02-07  7:41     ` Shashank Sharma
2023-02-07 14:59   ` Alex Deucher
2023-02-03 21:54 ` [PATCH 4/8] drm/amdgpu: Add V11 graphics MQD functions Shashank Sharma
2023-02-07 15:17   ` Alex Deucher
2023-02-07 15:43     ` Shashank Sharma
2023-02-07 16:05       ` Alex Deucher
2023-02-07 16:37         ` Shashank Sharma
2023-02-07 16:54           ` Alex Deucher
2023-02-07 17:13             ` Shashank Sharma
2023-02-07 17:57               ` Alex Deucher
2023-02-07 18:28                 ` Shashank Sharma
2023-02-07 18:32                   ` Alex Deucher
2023-02-03 21:54 ` [PATCH 5/8] drm/amdgpu: Create context for usermode queue Shashank Sharma
2023-02-07  7:14   ` Christian König
2023-02-07  7:51     ` Shashank Sharma
2023-02-07  7:55       ` Christian König
2023-02-07  8:13         ` Shashank Sharma
2023-02-07 16:51   ` Alex Deucher
2023-02-07 16:53     ` Alex Deucher
2023-02-03 21:54 ` [PATCH 6/8] drm/amdgpu: Map userqueue into HW Shashank Sharma
2023-02-07  7:20   ` Christian König
2023-02-07  7:55     ` Shashank Sharma
2023-02-03 21:54 ` [PATCH 7/8] drm/amdgpu: DO-NOT-MERGE add busy-waiting delay Shashank Sharma
2023-02-03 21:54 ` [PATCH 8/8] drm/amdgpu: DO-NOT-MERGE doorbell hack Shashank Sharma
2023-02-06  0:52 ` [PATCH 0/8] AMDGPU usermode queues Dave Airlie
2023-02-06  8:57   ` Christian König
2023-02-06 15:39 ` Michel Dänzer
2023-02-06 16:11   ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.