accel/qaic: Add qaic driver to the build system
authorJeffrey Hugo <quic_jhugo@quicinc.com>
Mon, 27 Mar 2023 15:54:56 +0000 (09:54 -0600)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Thu, 6 Apr 2023 06:23:03 +0000 (08:23 +0200)
Now that we have all the components of a minimum QAIC which can boot and
run an AIC100 device, add the infrastructure that allows the QAIC driver
to be built.

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-8-git-send-email-quic_jhugo@quicinc.com
drivers/accel/Kconfig
drivers/accel/Makefile
drivers/accel/qaic/Kconfig [new file with mode: 0644]
drivers/accel/qaic/Makefile [new file with mode: 0644]

index c437206aa3f11a9a7b8fb568bf72f6ef6db5c41d..64065fb8922b0c2e0d55bc53f249290ba7e03f8a 100644 (file)
@@ -26,5 +26,6 @@ menuconfig DRM_ACCEL
 
 source "drivers/accel/habanalabs/Kconfig"
 source "drivers/accel/ivpu/Kconfig"
+source "drivers/accel/qaic/Kconfig"
 
 endif
index f22fd44d586b2eab2ed203819588fc494c22014b..ab3df932937fd1b3a975489e2df67607a946dd43 100644 (file)
@@ -2,3 +2,4 @@
 
 obj-$(CONFIG_DRM_ACCEL_HABANALABS)     += habanalabs/
 obj-$(CONFIG_DRM_ACCEL_IVPU)           += ivpu/
+obj-$(CONFIG_DRM_ACCEL_QAIC)           += qaic/
diff --git a/drivers/accel/qaic/Kconfig b/drivers/accel/qaic/Kconfig
new file mode 100644 (file)
index 0000000..a9f8662
--- /dev/null
@@ -0,0 +1,23 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Qualcomm Cloud AI accelerators driver
+#
+
+config DRM_ACCEL_QAIC
+       tristate "Qualcomm Cloud AI accelerators"
+       depends on DRM_ACCEL
+       depends on PCI && HAS_IOMEM
+       depends on MHI_BUS
+       depends on MMU
+       select CRC32
+       help
+         Enables driver for Qualcomm's Cloud AI accelerator PCIe cards that are
+         designed to accelerate Deep Learning inference workloads.
+
+         The driver manages the PCIe devices and provides an IOCTL interface
+         for users to submit workloads to the devices.
+
+         If unsure, say N.
+
+         To compile this driver as a module, choose M here: the
+         module will be called qaic.
diff --git a/drivers/accel/qaic/Makefile b/drivers/accel/qaic/Makefile
new file mode 100644 (file)
index 0000000..d5f4952
--- /dev/null
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Makefile for Qualcomm Cloud AI accelerators driver
+#
+
+obj-$(CONFIG_DRM_ACCEL_QAIC)   := qaic.o
+
+qaic-y := \
+       mhi_controller.o \
+       mhi_qaic_ctrl.o \
+       qaic_control.o \
+       qaic_data.o \
+       qaic_drv.o