All of lore.kernel.org
 help / color / mirror / Atom feed
From: Reinette Chatre <reinette.chatre@intel.com>
To: "Chen, Yu C" <yu.c.chen@intel.com>
Cc: <x86@kernel.org>, <linux-kernel@vger.kernel.org>,
	<tglx@kernel.org>, <bp@alien8.de>, <mingo@redhat.com>,
	<dave.hansen@linux.intel.com>, <hpa@zytor.com>,
	<dave.martin@arm.com>, <james.morse@arm.com>,
	<fenghuay@nvidia.com>, <babu.moger@amd.com>,
	<anil.keshavamurthy@broadcom.com>, <tony.luck@intel.com>
Subject: Re: [PATCH v4 3/6] x86/resctrl: Rename prev_msr to prev_mon_val
Date: Mon, 22 Jun 2026 14:29:43 -0700	[thread overview]
Message-ID: <c4181eb7-91a2-448e-8ec0-42cd7e56d65e@intel.com> (raw)
In-Reply-To: <f3c909ae-3aaa-41cc-b71c-89bc8e4291c3@intel.com>

Hi Chenyu,

On 6/22/26 5:42 AM, Chen, Yu C wrote:
> Hi Reinette,
> 
> On 6/19/2026 7:39 AM, Reinette Chatre wrote:
>> Hi Chenyu,
>>
>> On 6/13/26 12:57 AM, Chen Yu wrote:
>>> Rename the prev_msr field in struct arch_mbm_state to prev_mon_val.
>>
>> This change as described seems out of place when considering the following
>> from cover letter:
>>   This patch set focuses on the first part: enabling MMIO-based access for
>>   Cache Monitoring Technology (CMT), *while CAT/MBM/MBA are still using MSR*.
>>
>> It is thus confusing to find a change related to switching MBM to use MSR
>> in a series that claims that it does not do this.
>>
>> The patch looks fine but reading the changelog and the first few hunks makes
>> this patch look out of place. Could you please update the changelog to be
>> accurate about what this patch does?
>>
> 
> OK, let me change it to:
> 
> x86/resctrl: Rename prev_msr to prev_mon_val
> 
> Rename the prev_msr field in struct arch_mbm_state to prev_mon_val
> to decouple the field name from the specific access method.

This patch changes many more names to support this switch to MMIO yet the changelog
only highlights one of the changes which is the struct member specific to MBM while
the work explicitly states that MBM monitoring is not impacted by this series.

Consider for comparison a more generic (just a draft to present an idea, please do not just copy&paste):
	x86/resctrl: Replace "msr" in monitoring data identifiers

	Monitoring data is only consumed via MSR and many identifiers handling
	the monitoring data contains "msr" as part of their names, for example
	"msr_val". 

	Replace "msr" in monitoring data identifiers as appropriate to support
	their use for monitoring data accessed via MMIO.

> 
> Use a generic name for the stored previous monitoring counter value
> so that the field remains accurate regardless of whether the value
> is read through an MSR or another interface in the future.
> 
> No functional change.
> 
> thanks,
> Chenyu


  reply	other threads:[~2026-06-22 21:29 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-13  7:56 [PATCH v4 0/6] Introduce MMIO-based CMT access for Enhanced RDT Chen Yu
2026-06-13  7:56 ` [PATCH v4 1/6] x86/resctrl: Parse ACPI ERDT table and map RMDD domains by L3 cache ID Chen Yu
2026-06-18 23:37   ` Reinette Chatre
2026-06-22  9:07     ` Chen, Yu C
2026-06-22 21:28       ` Reinette Chatre
2026-06-23  6:29         ` Chen, Yu C
2026-06-23 11:43           ` Chen, Yu C
2026-06-23 16:46             ` Reinette Chatre
2026-06-13  7:57 ` [PATCH v4 2/6] x86/resctrl: Parse ACPI CMRC table Chen Yu
2026-06-13  7:57 ` [PATCH v4 3/6] x86/resctrl: Rename prev_msr to prev_mon_val Chen Yu
2026-06-18 23:39   ` Reinette Chatre
2026-06-22 12:42     ` Chen, Yu C
2026-06-22 21:29       ` Reinette Chatre [this message]
2026-06-23  7:48         ` Chen, Yu C
2026-06-23 16:47           ` Reinette Chatre
2026-06-13  7:57 ` [PATCH v4 4/6] x86/resctrl: Refactor the monitor read function Chen Yu
2026-06-13  7:57 ` [PATCH v4 5/6] fs/resctrl: Do not invoke smp_processor_id() in preemptible context Chen Yu
2026-06-13  7:57 ` [PATCH v4 6/6] x86/resctrl: Add support for L3 occupancy monitoring via RMID MMIO read Chen Yu
2026-06-18 23:40   ` Reinette Chatre
2026-06-22 14:09     ` Chen, Yu C
2026-06-22 21:30       ` Reinette Chatre
2026-06-23  5:00         ` Chen, Yu C
2026-06-23 16:48           ` Reinette Chatre

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=c4181eb7-91a2-448e-8ec0-42cd7e56d65e@intel.com \
    --to=reinette.chatre@intel.com \
    --cc=anil.keshavamurthy@broadcom.com \
    --cc=babu.moger@amd.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=dave.martin@arm.com \
    --cc=fenghuay@nvidia.com \
    --cc=hpa@zytor.com \
    --cc=james.morse@arm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@kernel.org \
    --cc=tony.luck@intel.com \
    --cc=x86@kernel.org \
    --cc=yu.c.chen@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.