Hi Dave, Sima. We are excited to continue the upstreaming of the accel/habanalabs driver, based on the work previously done by Oded Gabbay and Ofir Bitton. >From this cycle on, both me and Konstantin Sinyuk, will be maintaining the driver upstreaming, ensuring regular updates 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. Full details are in the signed tag. Thanks, Koby The following changes since commit 342f141ba9f4c9e39de342d047a5245e8f4cda19: Merge tag 'amd-drm-next-6.18-2025-09-19' of https://gitlab.freedesktop.org/agd5f/linux into drm-next (2025-09-22 08:45:51 +1000) are available in the Git repository at: https://github.com/HabanaAI/drivers.accel.habanalabs.kernel.git tags/drm-habanalabs-next-2025-09-25 for you to fetch changes up to 6ca282c3e635cd98cc5a9bb24606b41379e1fd8e: accel/habanalabs: add Infineon version check (2025-09-25 09:14:45 +0300) ---------------------------------------------------------------- The notable changes are: - Correctness & Robustness - Proper error handling in mempin path (`-ENOMEM` vs `-EFAULT`). - Gaudi2 BMON disable fix, better CPLD_SHUTDOWN handling. - Clarify context lifecycle after `hl_ctx_put()`. - API & Cleanups - Remove legacy VERIFY_WRITE access_ok(). - Fix typo in trace output. - New Features - Vmalloc-backed coherent mmap support. - HLDIO (NVMe Direct I/O) infra + debugfs hooks. - New passthrough APIs: error counters and P-state queries. - Expose Infineon firmware version. - Debug & Visibility - Log register accesses from debugfs. - Gaudi2: stringify engine/queue IDs. - Improved recovery after dirty preboot states. ---------------------------------------------------------------- Ariel Aviad (1): accel/habanalabs: add HL_GET_P_STATE passthrough type Ariel Suller (1): accel/habanalabs/gaudi2: stringify engine/queue ids Ilia Levi (1): accel/habanalabs: remove old interface variation of 'access_ok()' Konstantin Sinyuk (5): accel/habanalabs: disable device access after CPLD_SHUTDOWN accel/habanalabs/gaudi2: use the CPLD_SHUTDOWN event handler accel/habanalabs: add NVMe Direct I/O (HLDIO) infrastructure accel/habanalabs: add debugfs interface for HLDIO testing accel/habanalabs/gaudi2: read preboot status after recovering from dirty state Moti Haimovski (1): accel/habanalabs: support mapping cb with vmalloc-backed coherent memory Pavan S (1): accel/habanalabs: add Infineon version check Sharley Calzolari (1): accel/habanalabs/gaudi2: add support for logging register accesses from debugfs Tomer Tayar (3): accel/habanalabs: return ENOMEM if less than requested pages were pinned accel/habanalabs: clarify ctx use after hl_ctx_put() in dmabuf release accel/habanalabs: fix typo in trace output (cms -> cmd) Vered Yavniely (1): accel/habanalabs/gaudi2: fix BMON disable configuration Vitaly Margolin (1): accel/habanalabs: add generic message type to get error counters drivers/accel/habanalabs/Kconfig | 23 ++ drivers/accel/habanalabs/common/Makefile | 5 + drivers/accel/habanalabs/common/debugfs.c | 324 +++++++++++++++ drivers/accel/habanalabs/common/device.c | 23 ++ drivers/accel/habanalabs/common/habanalabs.h | 56 ++- drivers/accel/habanalabs/common/habanalabs_ioctl.c | 6 + drivers/accel/habanalabs/common/hldio.c | 437 +++++++++++++++++++++ drivers/accel/habanalabs/common/hldio.h | 146 +++++++ drivers/accel/habanalabs/common/memory.c | 9 +- drivers/accel/habanalabs/common/memory_mgr.c | 5 - drivers/accel/habanalabs/common/sysfs.c | 11 +- drivers/accel/habanalabs/gaudi/gaudi.c | 19 + drivers/accel/habanalabs/gaudi2/gaudi2.c | 386 +++++++++++++++++- drivers/accel/habanalabs/gaudi2/gaudi2P.h | 9 + drivers/accel/habanalabs/gaudi2/gaudi2_coresight.c | 2 +- include/linux/habanalabs/cpucp_if.h | 4 + include/trace/events/habanalabs.h | 2 +- 17 files changed, 1442 insertions(+), 25 deletions(-) create mode 100644 drivers/accel/habanalabs/common/hldio.c create mode 100644 drivers/accel/habanalabs/common/hldio.h
