All of lore.kernel.org
 help / color / mirror / Atom feed
From: Babu Moger <babu.moger@amd.com>
To: Reinette Chatre <reinette.chatre@intel.com>,
	"Moger, Babu" <bmoger@amd.com>,
	"Luck, Tony" <tony.luck@intel.com>
Cc: Ben Horgan <ben.horgan@arm.com>,
	James Morse <james.morse@arm.com>,
	Dave Martin <Dave.Martin@arm.com>,
	Drew Fustini <fustini@kernel.org>,
	Fenghua Yu <fenghuay@nvidia.com>, Chen Yu <yu.c.chen@intel.com>,
	Borislav Petkov <bp@alien8.de>,
	Thomas Gleixner <tglx@linutronix.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	Peter Newman <peternewman@google.com>,
	"x86@kernel.org" <x86@kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [RFC v2] arm,x86,fs/resctrl: Generic schema description Proof of Concept
Date: Tue, 11 Aug 2026 11:09:28 -0500	[thread overview]
Message-ID: <6e440b7f-66db-4c4e-a6ac-2cb418739bad@amd.com> (raw)
In-Reply-To: <744ca0de-9060-482d-aca1-923fb2263ab5@intel.com>

Hi Reinette,

On 8/11/26 10:30, Reinette Chatre wrote:
> Hi Babu,
> 
> On 8/11/26 7:59 AM, Babu Moger wrote:
>> Yes, that's correct. However, when updating the NUMA nodes, we
>> cannot call smp_call_function_any(0-7) and
>> smp_call_function_any(8-15) as we are currently doing.
>>
>> Instead, we need to perform the operation at the L3 cache domain level, for example:
>>
>> NUMA0
>>    ├─ L3_0: CPUs 0-3   -> smp_call_function_any(0-3)
>>    └─ L3_1: CPUs 4-7   -> smp_call_function_any(4-7)
>>
>> NUMA1
>>    ├─ L3_2: CPUs 8-11  -> smp_call_function_any(8-11)
>>    └─ L3_3: CPUs 12-15 -> smp_call_function_any(12-15)
>>
>>
>> In other words, the target CPU should be selected from each L3 cache
>> group rather than from the entire NUMA node. The current approach
>> chooses one CPU from the full NUMA domain, which does not guarantee
>> coverage across all L3 cache domains within that NUMA node.
> 
> I see. I do not have a clear proposal to deal with this. One (high level) idea to consider
> connected to this PoC is possibly changing resctrl_hw_ctrl::msr_update() to be something
> more generic. In this version there is a branch where, if resctrl_hw_ctrl::msr_update()
> is NULL then it uses a hardcoded program_backing_controls() to program an emulated
> control's backing controls instead of the emulated control. These are still at different
> scope, msr_update() expects to be called on the CPU needing an update while
> program_backing_controls() will make sure to pick the right CPU(s), but having a generic
> callback that can schedule on right CPUs and do updates may provide a way to
> help GLBE and emulated controls.
> 
Yes, the current msr_update implementation is fairly specialized. If we 
refactor it into a more generic handler, each resource can implement its 
own handler, providing greater flexibility and extensibility.

Thanks,
Babu


  reply	other threads:[~2026-08-11 16:09 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-04  5:26 [RFC v2] arm,x86,fs/resctrl: Generic schema description Proof of Concept Reinette Chatre
2026-08-05 16:59 ` Ben Horgan
2026-08-05 23:57   ` Reinette Chatre
2026-08-06 17:04     ` Luck, Tony
2026-08-06 17:11       ` Reinette Chatre
2026-08-07 14:14         ` Moger, Babu
2026-08-07 15:35           ` Reinette Chatre
2026-08-07 18:33             ` Moger, Babu
2026-08-07 22:53               ` Reinette Chatre
2026-08-10 18:52                 ` Babu Moger
2026-08-11  4:06                   ` Reinette Chatre
2026-08-11 14:59                     ` Babu Moger
2026-08-11 15:30                       ` Reinette Chatre
2026-08-11 16:09                         ` Babu Moger [this message]
2026-08-07 15:35           ` Chen, Yu C
2026-08-07 17:57             ` Moger, Babu
2026-08-10  2:05 ` Chen, Yu C
2026-08-10 15:53   ` Reinette Chatre
2026-08-10 17:23     ` Chen, Yu C
2026-08-10 18:09       ` Reinette Chatre
2026-08-11  3:49         ` Chen, Yu C
2026-08-10  2:55 ` Fenghua Yu
2026-08-10  3:02   ` Chen, Yu C
2026-08-10  3:25     ` Fenghua Yu
2026-08-10  5:24       ` Chen, Yu C
2026-08-10 15:53   ` 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=6e440b7f-66db-4c4e-a6ac-2cb418739bad@amd.com \
    --to=babu.moger@amd.com \
    --cc=Dave.Martin@arm.com \
    --cc=ben.horgan@arm.com \
    --cc=bmoger@amd.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=fenghuay@nvidia.com \
    --cc=fustini@kernel.org \
    --cc=james.morse@arm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peternewman@google.com \
    --cc=reinette.chatre@intel.com \
    --cc=tglx@linutronix.de \
    --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.