public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Reinette Chatre <reinette.chatre@intel.com>
To: Babu Moger <babu.moger@amd.com>, bp@alien8.de
Cc: fenghua.yu@intel.com, x86@kernel.org,
	linux-kernel@vger.kernel.org, mingo@redhat.com, hpa@zytor.com,
	tglx@linutronix.de
Subject: Re: [PATCH v2] x86/resctrl: Fix AMD L3 QOS CDP enable/disable
Date: Tue, 24 Nov 2020 09:23:23 -0800	[thread overview]
Message-ID: <cd932b15-4094-7f97-a019-057af2aa577c@intel.com> (raw)
In-Reply-To: <160589301962.26308.4728709200492788764.stgit@bmoger-ubuntu>

Hi Babu,

On 11/20/2020 9:25 AM, Babu Moger wrote:
> When the AMD QoS feature CDP(code and data prioritization) is enabled
> or disabled, the CDP bit in MSR 0000_0C81 is written on one of the
> CPUs in L3 domain(core complex). That is not correct. The CDP bit needs
> to be updated all the logical CPUs in the domain.
> 
> This was not spelled out clearly in the spec earlier. The specification
> has been updated. The updated specification, "AMD64 Technology Platform
> Quality of Service Extensions Publication # 56375 Revision: 1.02 Issue
> Date: October 2020" is available now. Refer the section: Code and Data
> Prioritization.
> 
> Fix the issue by adding a new flag arch_has_per_cpu_cfg in rdt_cache
> data structure.
> 
> The documentation can be obtained at the links below:
> https://developer.amd.com/wp-content/resources/56375.pdf
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=206537
> 
> Fixes: 4d05bf71f157 ("x86/resctrl: Introduce AMD QOS feature")
> Signed-off-by: Babu Moger <babu.moger@amd.com>
> ---
> v2: Taken care of Reinette's comments. Changed the field name to
>      arch_has_per_cpu_cfg to be bit more meaningful about the CPU scope.
>      Also fixed some wordings.
> 
> v1: https://lore.kernel.org/lkml/160469365104.21002.2901190946502347327.stgit@bmoger-ubuntu/
> 
>   arch/x86/kernel/cpu/resctrl/core.c     |    4 ++++
>   arch/x86/kernel/cpu/resctrl/internal.h |    3 +++
>   arch/x86/kernel/cpu/resctrl/rdtgroup.c |    9 +++++++--
>   3 files changed, 14 insertions(+), 2 deletions(-)
> 

...

> diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h
> index 80fa997fae60..bcd9b517c765 100644
> --- a/arch/x86/kernel/cpu/resctrl/internal.h
> +++ b/arch/x86/kernel/cpu/resctrl/internal.h
> @@ -360,6 +360,8 @@ struct msr_param {
>    *			executing entities
>    * @arch_has_sparse_bitmaps:	True if a bitmap like f00f is valid.
>    * @arch_has_empty_bitmaps:	True if the '0' bitmap is valid.
> + * @arch_has_per_cpu_cfg:	True if QOS_CFG register for this cache
> + * 				level has CPU scope.

Please fixup the spacing to not have spaces before tabs. This will make 
checkpatch happy and fit with in with the rest of the comments for this 
struct.

>    */
>   struct rdt_cache {
>   	unsigned int	cbm_len;
> @@ -369,6 +371,7 @@ struct rdt_cache {
>   	unsigned int	shareable_bits;
>   	bool		arch_has_sparse_bitmaps;
>   	bool		arch_has_empty_bitmaps;
> +	bool		arch_has_per_cpu_cfg;
>   };
>   
>   /**

...

This patch looks good to me.

With the one style comment addressed you can add:
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>

Thank you very much

Reinette

  reply	other threads:[~2020-11-24 17:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-20 17:25 [PATCH v2] x86/resctrl: Fix AMD L3 QOS CDP enable/disable Babu Moger
2020-11-24 17:23 ` Reinette Chatre [this message]
2020-11-30 14:39   ` Babu Moger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cd932b15-4094-7f97-a019-057af2aa577c@intel.com \
    --to=reinette.chatre@intel.com \
    --cc=babu.moger@amd.com \
    --cc=bp@alien8.de \
    --cc=fenghua.yu@intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox