AMDXDNA Driver Preps Hardware Scheduler Time Quantum For Ryzen AI Multi-User Fairness

Phoronix
AMD's driver is adding hardware scheduler time quantum for Ryzen AI NPUs to ensure fair resource access.

Summary

The AMDXDNA accelerator driver for AMD's Ryzen AI NPUs is introducing a "hardware scheduler time quantum" feature to ensure fairness among multiple users or contexts accessing the neural processing unit for AI tasks. This mirrors a similar change in Intel's IVPU driver, which prevents single programs from monopolizing NPU resources. The hardware scheduler time quantum allows the NPU to enforce fixed time slices for each context, preventing long-running workloads from blocking others. The default time quantum is 30 ms and can be adjusted via a module parameter. This feature is currently under review and is expected to be ready for the Linux v7.2 kernel cycle, addressing the growing need for efficient NPU resource sharing in Linux.

(Source:Phoronix)