OSDN Git Service

accel/qaic: Add datapath
authorJeffrey Hugo <quic_jhugo@quicinc.com>
Mon, 27 Mar 2023 15:54:54 +0000 (09:54 -0600)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Thu, 6 Apr 2023 06:23:03 +0000 (08:23 +0200)
commitff13be8303336ead5621712f2c55012d738878b5
tree714e79033d53d95b696159e6aa5fa80de4370475
parent129776ac2e38231fa9c02ce20e116c99de291666
accel/qaic: Add datapath

Add the datapath component that manages BOs and submits them to running
workloads on the qaic device via the dma_bridge hardware. This allows
QAIC clients to interact with their workloads (run inferences) via the
following ioctls along with mmap():

DRM_IOCTL_QAIC_CREATE_BO
DRM_IOCTL_QAIC_MMAP_BO
DRM_IOCTL_QAIC_ATTACH_SLICE_BO
DRM_IOCTL_QAIC_EXECUTE_BO
DRM_IOCTL_QAIC_PARTIAL_EXECUTE_BO
DRM_IOCTL_QAIC_WAIT_BO
DRM_IOCTL_QAIC_PERF_STATS_BO

Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
Reviewed-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Acked-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1679932497-30277-6-git-send-email-quic_jhugo@quicinc.com
drivers/accel/qaic/qaic_data.c [new file with mode: 0644]