]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Create shared functions for AIE2 and AIE4
authorLizhi Hou <lizhi.hou@amd.com>
Mon, 30 Mar 2026 16:37:00 +0000 (09:37 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 1 Apr 2026 17:11:36 +0000 (10:11 -0700)
commit5a55a5da1f01274c07359b09abec952ec9f05105
treefff0c47aa4054bc7a096772c6b26e002b6f8cc50
parent8c0b8e3949b155b97660914ce1b29b82523a9363
accel/amdxdna: Create shared functions for AIE2 and AIE4

The AIE4 platform uses a mailbox management channel mechanism similar to
AIE2 to communicate with the firmware.

Create aie.h and aie.c and move the functions and structures that can
be shared by both platforms from the AIE2-specific files into these
common files. This allows AIE2 and AIE4 to reuse the same implementation
and reduces code duplication.

Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260330163705.3153647-2-lizhi.hou@amd.com
15 files changed:
drivers/accel/amdxdna/Makefile
drivers/accel/amdxdna/aie.c [new file with mode: 0644]
drivers/accel/amdxdna/aie.h [new file with mode: 0644]
drivers/accel/amdxdna/aie2_ctx.c
drivers/accel/amdxdna/aie2_error.c
drivers/accel/amdxdna/aie2_message.c
drivers/accel/amdxdna/aie2_pci.c
drivers/accel/amdxdna/aie2_pci.h
drivers/accel/amdxdna/aie2_pm.c
drivers/accel/amdxdna/aie2_smu.c
drivers/accel/amdxdna/amdxdna_pci_drv.h
drivers/accel/amdxdna/npu1_regs.c
drivers/accel/amdxdna/npu4_regs.c
drivers/accel/amdxdna/npu5_regs.c
drivers/accel/amdxdna/npu6_regs.c