]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
accel/amdxdna: Add hardware scheduler time quantum support
authorMax Zhen <max.zhen@amd.com>
Wed, 15 Apr 2026 17:11:39 +0000 (10:11 -0700)
committerLizhi Hou <lizhi.hou@amd.com>
Thu, 16 Apr 2026 15:53:57 +0000 (08:53 -0700)
commit6771275b4c96942b1b22ddcc9216e8458d206540
tree1b606238b9a66572afbcb6937a2e769360c8cc7b
parent126c50bc2fb6ddfe5b7718de67bbd7592a1062bb
accel/amdxdna: Add hardware scheduler time quantum support

Add support for configuring the hardware scheduler time quantum to
improve fairness across concurrent contexts.

The scheduler enforces a fixed time slice per context, preventing
long-running workloads from monopolizing the device and allowing
other contexts to make forward progress.

The default time quantum is 30ms and can be configured via the
time_quantum_ms module parameter.

Signed-off-by: Max Zhen <max.zhen@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patch.msgid.link/20260415171139.904947-1-lizhi.hou@amd.com
drivers/accel/amdxdna/aie2_message.c
drivers/accel/amdxdna/aie2_msg_priv.h
drivers/accel/amdxdna/aie2_pci.c
drivers/accel/amdxdna/aie2_pci.h
drivers/accel/amdxdna/npu4_regs.c