Re: [PATCH v5 01/16] x86/cpufeatures: Support Privilege Level Zero Association (PLZA)

From: Babu Moger

Date: Wed Sep 16 2026 - 17:23:09 EST


Hi Reinette,

Thanks for the feedback for the series.

On 9/16/26 00:12, Reinette Chatre wrote:
Hi Babu,

On 8/26/26 12:32 PM, Babu Moger wrote:
When memory bandwidth associated with a CLOSID is aggressively throttled,
and a task with that CLOSID moves into kernel mode, the kernel operations
are also aggressively throttled. This can stall forward progress and
eventually degrade overall system performance.

AMD hardware supports a feature Privilege Level Zero Association (PLZA),
which allows the CPU's CLOSID association to be changed during the

CLOSID -> CLOSID and/or RMID?


Sure.

transition from user mode to kernel mode. This allows the kernel to run
using a different CLOSID than user space, which can improve system

CLOSID -> CLOSID and/or RMID?

Sure.

performance.

"... and/or separately monitor the work done in kernel mode."?

Sure.



PLZA also applies to cache allocation and monitoring features and provides
flexibility to manage allocation and monitoring associations independently.

This reads like an afterthought. Are users expected to use cache allocation
while PLZA is enabled? Since only one resource group can be assigned I expect
there to be quite a few sharp corners when both are in use. Kernel work done
on behalf of high as well as low priority work will use the same cache allocations
and thus neither could actually get full benefit from having dedicated cache
portions?

The best-known use case today is to leave both cache allocation and memory bandwidth allocation at their default (maximum) settings and enable PLZA on all CPUs.

Users can, however, configure both cache allocation and memory bandwidth limits. In those cases, there can be corner-case behaviors and trade-offs.

If you think the current wording is misleading, I can drop that text and rephrase it along these lines to include both cache and memory.

"When cache and/or memory bandwidth associated with a CLOSID is aggressively throttled, and a task with that CLOSID moves into kernel mode, the kernel operations are also aggressively throttled. This can stall forward progress and eventually degrade overall system performance.

AMD hardware supports the Privilege Level Zero Association (PLZA) feature, which allows the CPU's CLOSID and/or RMID association to be changed during transitions from user mode to kernel mode. This enables the kernel to run with a different CLOSID and/or RMID than user space, improving system performance and/or allowing kernel work to be monitored separately."

Thanks
Babu