From: Reinette Chatre <reinette.chatre@intel.com>
To: Ben Horgan <ben.horgan@arm.com>, <kees@kernel.org>,
<mingo@redhat.com>, <peterz@infradead.org>,
<juri.lelli@redhat.com>, <vincent.guittot@linaro.org>,
<dietmar.eggemann@arm.com>, <rostedt@goodmis.org>,
<bsegall@google.com>, <mgorman@suse.de>, <vschneid@redhat.com>,
<kprateek.nayak@amd.com>, <david@kernel.org>, <ljs@kernel.org>,
<liam@infradead.org>, <vbabka@kernel.org>, <rppt@kernel.org>,
<surenb@google.com>, <mhocko@suse.com>, <bp@alien8.de>,
<tglx@linutronix.de>, <dave.hansen@linux.intel.com>,
<tony.luck@intel.com>, <Dave.Martin@arm.com>,
<james.morse@arm.com>, <babu.moger@amd.com>, <fustini@kernel.org>,
<jedrzej.wasiukiewicz@intel.com>
Cc: <fenghuay@nvidia.com>, <peternewman@google.com>,
<yu.c.chen@intel.com>, <x86@kernel.org>, <linux-mm@kvack.org>,
<linux-kernel@vger.kernel.org>, <patches@lists.linux.dev>
Subject: Re: [RFC PATCH 1/3] fork,arm,x86,fs/resctrl: Fix stale resource group assignment vs copy_process()
Date: Mon, 23 Nov 2026 16:43:54 -0800 [thread overview]
Message-ID: <307b89b8-7613-46c2-a8a5-f6ecf7d05b25@intel.com> (raw)
In-Reply-To: <17fe3497-b887-4dc1-a8f8-3b647c1880a6@arm.com>
Hi Ben,
Thank you very much for taking a look.
On 11/23/26 6:14 AM, Ben Horgan wrote:
> On 20/11/2026 18:39, Reinette Chatre wrote:
>>
>> - A static inline in include/linux/arm_mpam.h, beside the
>> resctrl_arch_*() inlines already there. asm/mpam.h includes
>> linux/arm_mpam.h, so the reverse include would be circular and
>
> Hmm, the existing include of linux/arm_mpam.h appears to be unnecessary.
ah, I see. I can include a preparatory patch that removes it.
> As such, that include can be removed and resctrl_arch_copy_closid_rmid()
> could be a static inline in include/linux/arm_mpam.h.
As a follow up, do you prefer include/linux/arm_mpam.h to contain the
full implementation like below, which is the first access of mpam_partid_pmg
outside arch/arm64/include/asm/mpam.h:
static inline void resctrl_arch_copy_closid_rmid(struct task_struct *dst,
struct task_struct *src)
{
WRITE_ONCE(task_thread_info(dst)->mpam_partid_pmg, mpam_get_regval(src));
}
or, do you prefer to contain all users of mpam_partid_pmg in
arch/arm64/include/asm/mpam.h and thus instead implement solution as:
arch/arm64/include/asm/mpam.h:
static inline void mpam_copy_task_partid_pmg(struct task_struct *dst,
struct task_struct *src)
{
WRITE_ONCE(task_thread_info(dst)->mpam_partid_pmg, mpam_get_regval(src));
}
include/linux/arm_mpam.h:
static inline void resctrl_arch_copy_closid_rmid(struct task_struct *dst,
struct task_struct *src)
{
mpam_copy_task_partid_pmg(dst, src);
}
Reinette
next prev parent reply other threads:[~2026-11-24 0:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 18:39 [RFC PATCH 0/3] fork,arm,x86,fs/resctrl: Fix stale resource group assignment on fork Reinette Chatre
2026-11-20 18:39 ` [RFC PATCH 1/3] fork,arm,x86,fs/resctrl: Fix stale resource group assignment vs copy_process() Reinette Chatre
2026-11-23 3:48 ` Chen Yu
2026-11-23 22:50 ` Reinette Chatre
2026-11-23 14:14 ` Ben Horgan
2026-11-24 0:43 ` Reinette Chatre [this message]
2026-11-20 18:39 ` [RFC PATCH 2/3] arm,x86/resctrl: Assert tasklist_lock is held when setting CLOSID and RMID Reinette Chatre
2026-11-20 18:39 ` [RFC PATCH 3/3] NOT_FOR_INCLUSION: selftests/resctrl: Tasks keep using removed RMID after fork() reproducer 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=307b89b8-7613-46c2-a8a5-f6ecf7d05b25@intel.com \
--to=reinette.chatre@intel.com \
--cc=Dave.Martin@arm.com \
--cc=babu.moger@amd.com \
--cc=ben.horgan@arm.com \
--cc=bp@alien8.de \
--cc=bsegall@google.com \
--cc=dave.hansen@linux.intel.com \
--cc=david@kernel.org \
--cc=dietmar.eggemann@arm.com \
--cc=fenghuay@nvidia.com \
--cc=fustini@kernel.org \
--cc=james.morse@arm.com \
--cc=jedrzej.wasiukiewicz@intel.com \
--cc=juri.lelli@redhat.com \
--cc=kees@kernel.org \
--cc=kprateek.nayak@amd.com \
--cc=liam@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=mgorman@suse.de \
--cc=mhocko@suse.com \
--cc=mingo@redhat.com \
--cc=patches@lists.linux.dev \
--cc=peternewman@google.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=rppt@kernel.org \
--cc=surenb@google.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=vbabka@kernel.org \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®