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/ Changes since v2: - Remove merged patches from this set - Add MBZ check for pad member of input ioctl structure - Fix for code review comments Changes since v1: - Add one patch to fix possible compiling failure - Minor fixes for code review comments Lizhi Hou (5): accel/amdxdna: Add RyzenAI-npu6 support accel/amdxdna: Replace idr api with xarray accel/amdxdna: Enhance power management settings accel/amdxdna: Read firmware interface version from registers accel/amdxdna: Add zero check for pad in ioctl input structures drivers/accel/amdxdna/Makefile | 4 +- drivers/accel/amdxdna/TODO | 2 - drivers/accel/amdxdna/aie2_ctx.c | 14 +- drivers/accel/amdxdna/aie2_message.c | 41 ++--- drivers/accel/amdxdna/aie2_pci.c | 219 +++++++++++++++++++----- drivers/accel/amdxdna/aie2_pci.h | 61 +++++-- 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 | 53 +++--- drivers/accel/amdxdna/amdxdna_gem.c | 2 +- drivers/accel/amdxdna/amdxdna_mailbox.c | 56 +++--- drivers/accel/amdxdna/amdxdna_pci_drv.c | 24 ++- drivers/accel/amdxdna/amdxdna_pci_drv.h | 26 ++- 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 | 63 ++++++- 21 files changed, 787 insertions(+), 244 deletions(-) create mode 100644 drivers/accel/amdxdna/aie2_pm.c create mode 100644 drivers/accel/amdxdna/npu6_regs.c -- 2.34.1