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: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
Oded Gabbay 2022-12-26 23:05:00 +02:00
parent 7d25cae7ab
commit e65e175b07
430 changed files with 11 additions and 7 deletions

View File

@ -9032,11 +9032,13 @@ F: block/partitions/efi.*
HABANALABS PCI DRIVER HABANALABS PCI DRIVER
M: Oded Gabbay <ogabbay@kernel.org> M: Oded Gabbay <ogabbay@kernel.org>
L: dri-devel@lists.freedesktop.org
S: Supported S: Supported
C: irc://irc.oftc.net/dri-devel
T: git https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git 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/debugfs-driver-habanalabs
F: Documentation/ABI/testing/sysfs-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/trace/events/habanalabs.h
F: include/uapi/drm/habanalabs_accel.h F: include/uapi/drm/habanalabs_accel.h

View File

@ -189,4 +189,4 @@ obj-$(CONFIG_COUNTER) += counter/
obj-$(CONFIG_MOST) += most/ obj-$(CONFIG_MOST) += most/
obj-$(CONFIG_PECI) += peci/ obj-$(CONFIG_PECI) += peci/
obj-$(CONFIG_HTE) += hte/ obj-$(CONFIG_HTE) += hte/
obj-$(CONFIG_DRM_ACCEL) += accel/ obj-$(CONFIG_DRM_ACCEL) += accel/

View File

@ -23,4 +23,5 @@ menuconfig DRM_ACCEL
different device files, called accel/accel* (in /dev, sysfs different device files, called accel/accel* (in /dev, sysfs
and debugfs). and debugfs).
source "drivers/accel/habanalabs/Kconfig"
source "drivers/accel/ivpu/Kconfig" source "drivers/accel/ivpu/Kconfig"

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only
obj-y += habanalabs/
obj-y += ivpu/ obj-y += ivpu/

View File

@ -3,8 +3,10 @@
# HabanaLabs AI accelerators driver # HabanaLabs AI accelerators driver
# #
config HABANA_AI config DRM_ACCEL_HABANALABS
tristate "HabanaAI accelerators (habanalabs)" tristate "HabanaLabs AI accelerators"
depends on DRM_ACCEL
depends on X86_64
depends on PCI && HAS_IOMEM depends on PCI && HAS_IOMEM
select GENERIC_ALLOCATOR select GENERIC_ALLOCATOR
select HWMON select HWMON

View File

@ -3,7 +3,7 @@
# Makefile for HabanaLabs AI accelerators driver # Makefile for HabanaLabs AI accelerators driver
# #
obj-$(CONFIG_HABANA_AI) := habanalabs.o obj-$(CONFIG_DRM_ACCEL_HABANALABS) := habanalabs.o
include $(src)/common/Makefile include $(src)/common/Makefile
habanalabs-y += $(HL_COMMON_FILES) habanalabs-y += $(HL_COMMON_FILES)

Some files were not shown because too many files have changed in this diff Show More