Re: [PATCH v10 05/10] fs/resctrl: Introduce interface to display "io_alloc" support

From: Reinette Chatre
Date: Fri Oct 24 2025 - 19:40:29 EST


Hi Babu,

On 10/21/25 4:54 PM, Babu Moger wrote:
> Introduce the "io_alloc" resctrl file to the "info" area of a cache
> resource, for example /sys/fs/resctrl/info/L3/io_alloc. "io_alloc"
> indicates support for the "io_alloc" feature that allows direct insertion
> of data from I/O devices into the cache.
>
> Restrict exposing support for "io_alloc" to the L3 resource that is the
> only resource where this feature can be backed by AMD's L3 Smart Data Cache
> Injection Allocation Enforcement (SDCIAE). With that, the "io_alloc" file
> is only visible to user space if the L3 resource supports "io_alloc". Doing
> so makes the file visible for all cache resources though, for example also
> L2 cache (if it supports cache allocation). As a consequence, add
> capability for file to report expected "enabled" and "disabled", as well as
> "not supported".
>
> Signed-off-by: Babu Moger <babu.moger@xxxxxxx>
> ---

Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>

Reinette