Skip to content

Commit 62bea0e

Browse files
committed
Merge tag 'drm-habanalabs-next-2025-09-25' of https://github.com/HabanaAI/drivers.accel.habanalabs.kernel into drm-next
This tag contains habanalabs driver changes for v6.18. It continues the previous upstream work from tags/drm-habanalabs-next-2024-06-23, Including improvements in debug and visibility, alongside general code cleanups, and new features such as vmalloc-backed coherent mmap, HLDIO infrastructure, etc. Signed-off-by: Dave Airlie <[email protected]> From: "Elbaz, Koby" <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2 parents a2caae5 + 6ca282c commit 62bea0e

File tree

17 files changed

+1442
-25
lines changed

17 files changed

+1442
-25
lines changed

drivers/accel/habanalabs/Kconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,26 @@ config DRM_ACCEL_HABANALABS
2727

2828
To compile this driver as a module, choose M here: the
2929
module will be called habanalabs.
30+
31+
if DRM_ACCEL_HABANALABS
32+
33+
config HL_HLDIO
34+
bool "Habanalabs NVMe Direct I/O (HLDIO)"
35+
depends on PCI_P2PDMA
36+
depends on BLOCK
37+
help
38+
Enable NVMe peer-to-peer direct I/O support for Habanalabs AI
39+
accelerators.
40+
41+
This allows direct data transfers between NVMe storage devices
42+
and Habanalabs accelerators without involving system memory,
43+
using PCI peer-to-peer DMA capabilities.
44+
45+
Requirements:
46+
- CONFIG_PCI_P2PDMA=y
47+
- NVMe device and Habanalabs accelerator under same PCI root complex
48+
- IOMMU disabled or in passthrough mode
49+
- Hardware supporting PCI P2P DMA
50+
51+
If unsure, say N
52+
endif # DRM_ACCEL_HABANALABS

drivers/accel/habanalabs/common/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ HL_COMMON_FILES := common/habanalabs_drv.o common/device.o common/context.o \
1313
common/command_submission.o common/firmware_if.o \
1414
common/security.o common/state_dump.o \
1515
common/memory_mgr.o common/decoder.o
16+
17+
# Conditionally add HLDIO support
18+
ifdef CONFIG_HL_HLDIO
19+
HL_COMMON_FILES += common/hldio.o
20+
endif

0 commit comments

Comments
 (0)