[PATCH V1 0/7] AMD NPU driver improvements

From: Lizhi Hou
Date: Wed Dec 04 2024 - 16:40:09 EST


Add recent improvements and bug fixes for amdxdna driver (depends on [1])
1. Support recent hardware and firmware.
2. Replace idr APIs with xarray.
3. Fix the bugs been found.

[1]: https://lore.kernel.org/all/20241118172942.2014541-1-lizhi.hou@xxxxxxx/

Lizhi Hou (7):
accel/amdxdna: Add device status for aie2 devices
accel/amdxdna: Replace mmput with mmput_async to avoid dead lock
accel/amdxdna: Add RyzenAI-npu6 support
accel/amdxdna: Replace idr api with xarray
accel/amdxdna: Add query firmware version
accel/amdxdna: Enhance power management settings
accel/amdxdna: Read firmware interface version from registers

drivers/accel/amdxdna/Makefile | 4 +-
drivers/accel/amdxdna/TODO | 2 -
drivers/accel/amdxdna/aie2_ctx.c | 12 +-
drivers/accel/amdxdna/aie2_message.c | 37 +---
drivers/accel/amdxdna/aie2_pci.c | 252 +++++++++++++++++++-----
drivers/accel/amdxdna/aie2_pci.h | 68 +++++--
drivers/accel/amdxdna/aie2_pm.c | 108 ++++++++++
drivers/accel/amdxdna/aie2_smu.c | 85 ++++----
drivers/accel/amdxdna/aie2_solver.c | 59 +++++-
drivers/accel/amdxdna/aie2_solver.h | 1 +
drivers/accel/amdxdna/amdxdna_ctx.c | 46 ++---
drivers/accel/amdxdna/amdxdna_mailbox.c | 59 ++----
drivers/accel/amdxdna/amdxdna_pci_drv.c | 23 ++-
drivers/accel/amdxdna/amdxdna_pci_drv.h | 8 +-
drivers/accel/amdxdna/npu1_regs.c | 31 ++-
drivers/accel/amdxdna/npu2_regs.c | 17 +-
drivers/accel/amdxdna/npu4_regs.c | 34 +++-
drivers/accel/amdxdna/npu5_regs.c | 17 +-
drivers/accel/amdxdna/npu6_regs.c | 114 +++++++++++
include/uapi/drm/amdxdna_accel.h | 70 +++++++
20 files changed, 804 insertions(+), 243 deletions(-)
create mode 100644 drivers/accel/amdxdna/aie2_pm.c
create mode 100644 drivers/accel/amdxdna/npu6_regs.c

--
2.34.1