]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Create common SMU interfaces for AIE2 and AIE4
authorDavid Zhang <yidong.zhang@amd.com>
Mon, 30 Mar 2026 16:37:04 +0000 (09:37 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Wed, 1 Apr 2026 17:44:51 +0000 (10:44 -0700)
commit8167332554226b0c16ffc3b262afe562e6714bc1
treece0f5cbf48d3c919b65435d8848ac4441903e5a8
parente69ef21408fb8ed2be602e8056a5abd5b6212fd7
accel/amdxdna: Create common SMU interfaces for AIE2 and AIE4

AIE2 and AIE4 use similar interfaces to the SMU (System Management
Unit). Move the SMU implementation into aie_smu.c and provide common
interfaces for both platforms.

This allows AIE2 and AIE4 to share the same implementation and reduces
code duplication.

Co-developed-by: Hayden Laccabue <Hayden.Laccabue@amd.com>
Signed-off-by: Hayden Laccabue <Hayden.Laccabue@amd.com>
Signed-off-by: David Zhang <yidong.zhang@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260330163705.3153647-6-lizhi.hou@amd.com
drivers/accel/amdxdna/Makefile
drivers/accel/amdxdna/aie.h
drivers/accel/amdxdna/aie2_pci.c
drivers/accel/amdxdna/aie2_pci.h
drivers/accel/amdxdna/aie2_smu.c [deleted file]
drivers/accel/amdxdna/aie_smu.c [new file with mode: 0644]
drivers/accel/amdxdna/npu1_regs.c
drivers/accel/amdxdna/npu4_regs.c