Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1614247 > unrolled thread
| Started by | Shivappa Vikas <vikas.shivappa@intel.com> |
|---|---|
| First post | 2017-03-31 20:50 +0200 |
| Last post | 2017-03-31 20:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] x86/intel_rdt: Implement "update" mode when writing schemata file Shivappa Vikas <vikas.shivappa@intel.com> - 2017-03-31 20:50 +0200
| From | Shivappa Vikas <vikas.shivappa@intel.com> |
|---|---|
| Date | 2017-03-31 20:50 +0200 |
| Subject | Re: [PATCH] x86/intel_rdt: Implement "update" mode when writing schemata file |
| Message-ID | <tr9Mt-8kr-9@gated-at.bofh.it> |
On Fri, 24 Mar 2017, Luck, Tony wrote:
> +++ b/arch/x86/kernel/cpu/intel_rdt_schemata.c
> @@ -56,7 +56,7 @@ static bool cbm_validate(unsigned long var, struct rdt_resource *r)
> * Read one cache bit mask (hex). Check that it is valid for the current
> * resource type.
> */
> -static int parse_cbm(char *buf, struct rdt_resource *r)
> +static int parse_cbm(char *buf, struct rdt_resource *r, struct rdt_domain *d)
> {
> unsigned long data;
> int ret;
> @@ -66,7 +66,8 @@ static int parse_cbm(char *buf, struct rdt_resource *r)
> return ret;
Would need a check here for repeated domain entries to error out something like:
echo -e "L3:1=7f;1=7;1=7ff" | cat > /sys/fs/resctrl/p1/schemata
if (d->have_newcbm)
return -EINVAL;
> if (!cbm_validate(data, r))
> return -EINVAL;
> - r->tmp_cbms[r->num_tmp_cbms++] = data;
> + d->new_cbm = data;
> + d->have_new_cbm = true;
>
Back to top | Article view | linux.kernel
csiph-web