Commit e65e175b authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: move driver to accel subsystem



Now that we have a subsystem for compute accelerators, move the
habanalabs driver to it.

This patch only moves the files and fixes the Makefiles. Future
patches will change the existing code to register to the accel
subsystem and expose the accel device char files instead of the
habanalabs device char files.

Update the MAINTAINERS file to reflect this change.

Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 7d25cae7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -9032,11 +9032,13 @@ F: block/partitions/efi.*
HABANALABS PCI DRIVER
M:	Oded Gabbay <ogabbay@kernel.org>
L:	dri-devel@lists.freedesktop.org
S:	Supported
C:	irc://irc.oftc.net/dri-devel
T:	git https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git
F:	Documentation/ABI/testing/debugfs-driver-habanalabs
F:	Documentation/ABI/testing/sysfs-driver-habanalabs
F:	drivers/misc/habanalabs/
F:	drivers/accel/habanalabs/
F:	include/trace/events/habanalabs.h
F:	include/uapi/drm/habanalabs_accel.h
+1 −0
Original line number Diff line number Diff line
@@ -23,4 +23,5 @@ menuconfig DRM_ACCEL
	  different device files, called accel/accel* (in /dev, sysfs
	  and debugfs).

source "drivers/accel/habanalabs/Kconfig"
source "drivers/accel/ivpu/Kconfig"
+1 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

obj-y	+= habanalabs/
obj-y	+= ivpu/
+4 −2
Original line number Diff line number Diff line
@@ -3,8 +3,10 @@
# HabanaLabs AI accelerators driver
#

config HABANA_AI
	tristate "HabanaAI accelerators (habanalabs)"
config DRM_ACCEL_HABANALABS
	tristate "HabanaLabs AI accelerators"
	depends on DRM_ACCEL
	depends on X86_64
	depends on PCI && HAS_IOMEM
	select GENERIC_ALLOCATOR
	select HWMON
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
# Makefile for HabanaLabs AI accelerators driver
#

obj-$(CONFIG_HABANA_AI) := habanalabs.o
obj-$(CONFIG_DRM_ACCEL_HABANALABS) := habanalabs.o

include $(src)/common/Makefile
habanalabs-y += $(HL_COMMON_FILES)
Loading