]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86,fs/resctrl: Detect io_alloc feature
authorBabu Moger <babu.moger@amd.com>
Thu, 13 Nov 2025 00:57:29 +0000 (18:57 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 21 Nov 2025 21:04:59 +0000 (22:04 +0100)
commit7923ae7698cf9728501974d76d8ea712686281bc
treecdc16590540510fbc2823b7865a03761f6e5f1de
parent4d4840b1251acc194e4b59d9a5bfba23cd573ed3
x86,fs/resctrl: Detect io_alloc feature

AMD's SDCIAE (SDCI Allocation Enforcement) PQE feature enables system software
to control the portions of L3 cache used for direct insertion of data from I/O
devices into the L3 cache.

Introduce a generic resctrl cache resource property "io_alloc_capable" as the
first part of the new "io_alloc" resctrl feature that will support AMD's
SDCIAE. Any architecture can set a cache resource as "io_alloc_capable" if
a portion of the cache can be allocated for I/O traffic.

Set the "io_alloc_capable" property for the L3 cache resource on x86 (AMD)
systems that support SDCIAE.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://patch.msgid.link/df85a9a6081674fd3ef6b4170920485512ce2ded.1762995456.git.babu.moger@amd.com
arch/x86/kernel/cpu/resctrl/core.c
include/linux/resctrl.h