All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] accel/qaic: Extend uAPI to support undoing ATTACH_SLICE_BO
@ 2023-09-01 17:22 ` Jeffrey Hugo
  0 siblings, 0 replies; 30+ messages in thread
From: Jeffrey Hugo @ 2023-09-01 17:22 UTC (permalink / raw)
  To: quic_carlv, quic_pkanojiy, stanislaw.gruszka, ogabbay
  Cc: linux-arm-msm, dri-devel, Jeffrey Hugo

A BO for a QAIC device has two states -
1. Allocated
2. Sliced

A BO can be allocated at any time, and is initialized in the allocated state.
A BO can transition to the sliced state via ATTACH_SLICE_BO.  This prepares the
BO for use with an active workload.  Currently a BO in the sliced state can
only be used with a single workload, and will only transition back to the
allocated state once the workload is deactivated.

Userspace would like the ability to trigger a BO transition from the sliced
state to the allocated state. This would support the usecase of a userspace
client that has two active workloads, where the output of the first workload
becomes the input of the second workload. Currently, the client would need
two BOs, once for each workload, and copy from one BO to the other.

To support this usecase, we create the detach slice concept which is the
inverse operation of ATTACH_SLICE_BO.  We extend the uAPI with a new
DETACH_SLICE_BO ioctl that allows userspace to perform this operation.

Since ATTACH_SLICE_BO and DETACH_SLICE_BO are related operations, they share
a decent amount of code. This series starts with restructuring the common code
for use in both ioctls before finally adding the DETACH_SLICE_BO.

Pranjal Ramajor Asha Kanojiya (7):
  accel/qaic: Remove ->size field from struct qaic_bo
  accel/qaic: Update BO metadata in a central location
  accel/qaic: Declare BO 'sliced' after all the operations are complete
  accel/qaic: Undo slicing setup done in qaic_attach_slicing_bo()
  accel/qaic: Clean up BO during flushing of transfer list
  accel/qaic: Create a function to initialize BO
  accel/qaic: Add QAIC_DETACH_SLICE_BO IOCTL

 Documentation/accel/qaic/qaic.rst |  10 ++
 drivers/accel/qaic/qaic.h         |   6 +-
 drivers/accel/qaic/qaic_data.c    | 187 +++++++++++++++++++++++-------
 drivers/accel/qaic/qaic_drv.c     |   1 +
 include/uapi/drm/qaic_accel.h     |  24 +++-
 5 files changed, 175 insertions(+), 53 deletions(-)

-- 
2.40.1


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

end of thread, other threads:[~2023-09-22 16:04 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-01 17:22 [PATCH 0/7] accel/qaic: Extend uAPI to support undoing ATTACH_SLICE_BO Jeffrey Hugo
2023-09-01 17:22 ` Jeffrey Hugo
2023-09-01 17:22 ` [PATCH 1/7] accel/qaic: Remove ->size field from struct qaic_bo Jeffrey Hugo
2023-09-01 17:22   ` Jeffrey Hugo
2023-09-01 17:22 ` [PATCH 2/7] accel/qaic: Update BO metadata in a central location Jeffrey Hugo
2023-09-01 17:22   ` Jeffrey Hugo
2023-09-01 17:22 ` [PATCH 3/7] accel/qaic: Declare BO 'sliced' after all the operations are complete Jeffrey Hugo
2023-09-01 17:22   ` Jeffrey Hugo
2023-09-01 17:22 ` [PATCH 4/7] accel/qaic: Undo slicing setup done in qaic_attach_slicing_bo() Jeffrey Hugo
2023-09-01 17:22   ` Jeffrey Hugo
2023-09-01 17:22 ` [PATCH 5/7] accel/qaic: Clean up BO during flushing of transfer list Jeffrey Hugo
2023-09-01 17:22   ` Jeffrey Hugo
2023-09-01 17:22 ` [PATCH 6/7] accel/qaic: Create a function to initialize BO Jeffrey Hugo
2023-09-01 17:22   ` Jeffrey Hugo
2023-09-17  8:48   ` Stanislaw Gruszka
2023-09-17  8:48     ` Stanislaw Gruszka
2023-09-22 14:59     ` Jeffrey Hugo
2023-09-22 14:59       ` Jeffrey Hugo
2023-09-01 17:22 ` [PATCH 7/7] accel/qaic: Add QAIC_DETACH_SLICE_BO IOCTL Jeffrey Hugo
2023-09-01 17:22   ` Jeffrey Hugo
2023-09-17  8:56   ` Stanislaw Gruszka
2023-09-17  8:56     ` Stanislaw Gruszka
2023-09-22 15:16     ` Jeffrey Hugo
2023-09-22 15:16       ` Jeffrey Hugo
2023-09-17  8:58 ` [PATCH 0/7] accel/qaic: Extend uAPI to support undoing ATTACH_SLICE_BO Stanislaw Gruszka
2023-09-17  8:58   ` Stanislaw Gruszka
2023-09-22 15:17   ` Jeffrey Hugo
2023-09-22 15:17     ` Jeffrey Hugo
2023-09-22 16:04 ` Jeffrey Hugo
2023-09-22 16:04   ` Jeffrey Hugo

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.