RE: [PATCH v7 11/13] arch/x86: Introduce QOS feature for AMD

From: Yu, Fenghua
Date: Tue Nov 13 2018 - 16:49:48 EST


> From: Moger, Babu [mailto:Babu.Moger@xxxxxxx]
> Subject: [PATCH v7 11/13] arch/x86: Introduce QOS feature for AMD
> The specification for this feature is available at
> https://developer.amd.com/wp-content/resources/56375.pdf

> +bool cbm_validate_amd(char *buf, u32 *data, struct rdt_resource *r) {
> + if (val > r->default_ctrl) {
> + rdt_last_cmd_puts("mask out of range\n");
> + return false;
> + }

If val is zero, then this closid cannot allocate any cache line.

I'm wondering: does that mean the tasks running with this closid directly access memory without cache? Is there any usage for this situation?

Thanks.

-Fenghua