mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Chen, Yu C" <yu.c.chen@intel.com>
To: Tony Luck <tony.luck@intel.com>
Cc: <linux-kernel@vger.kernel.org>, <patches@lists.linux.dev>,
	Fenghua Yu <fenghuay@nvidia.com>,
	James Morse <james.morse@arm.com>,
	"Maciej Wieczor-Retman" <maciej.wieczor-retman@intel.com>,
	Reinette Chatre <reinette.chatre@intel.com>,
	Babu Moger <babu.moger@amd.com>,
	Peter Newman <peternewman@google.com>,
	Dave Martin <Dave.Martin@arm.com>,
	Drew Fustini <dfustini@baylibre.com>,
	David E Box <david.e.box@intel.com>, <x86@kernel.org>
Subject: Re: [PATCH v3 3/7] fs,x86/resctrl: Add architecture hooks for every mount/unmount
Date: Sun, 29 Mar 2026 20:09:05 +0800	[thread overview]
Message-ID: <7323f542-8e97-40f4-bb32-728d79b48025@intel.com> (raw)
In-Reply-To: <20260327230208.18094-4-tony.luck@intel.com>

Hi Tony,

On 3/28/2026 7:02 AM, Tony Luck wrote:

> diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h
> index e3cfa0c10e92..6f322818a9e6 100644
> --- a/arch/x86/kernel/cpu/resctrl/internal.h
> +++ b/arch/x86/kernel/cpu/resctrl/internal.h
> @@ -234,14 +234,18 @@ void rdt_domain_reconfigure_cdp(struct rdt_resource *r);
>   void resctrl_arch_mbm_cntr_assign_set_one(struct rdt_resource *r);
>   
>   #ifdef CONFIG_X86_CPU_RESCTRL_INTEL_AET
> -bool intel_aet_get_events(void);
> +bool intel_aet_pre_mount(void);
> +void intel_aet_mount_result(int ret);
> +void intel_aet_unmount(void);
>   void __exit intel_aet_exit(void);
>   int intel_aet_read_event(int domid, u32 rmid, void *arch_priv, u64 *val);
>   void intel_aet_mon_domain_setup(int cpu, int id, struct rdt_resource *r,
>   				struct list_head *add_pos);
>   bool intel_handle_aet_option(bool force_off, char *tok);
>   #else
> -static inline bool intel_aet_get_events(void) { return false; }

The declaration of intel_aet_get_events() was removed,
and the function definition still remains in intel_aet.c.
Not sure if this will trigger a warning like
"no user for intel_aet_get_events". Since intel_aet_get_events() is
renamed to static get_events() in a subsequent patch,
perhaps we can mark intel_aet_get_events() as static in
this patch too?

thanks,
Chenyu



  reply	other threads:[~2026-03-29 12:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-23 16:34 [PATCH] x86/resctrl: Allow AET to use PMT/TPMI as loadable modules Tony Luck
2026-03-25 17:17 ` [PATCH v2] " Tony Luck
2026-03-27 23:02 ` [PATCH v3 0/7] " Tony Luck
2026-03-27 23:02   ` [PATCH v3 1/7] x86/resctrl: Drop setting of event_group::force_off when insufficient RMIDs Tony Luck
2026-03-27 23:02   ` [PATCH v3 2/7] fs/resctrl: Add interface to disable a monitor event Tony Luck
2026-03-27 23:02   ` [PATCH v3 3/7] fs,x86/resctrl: Add architecture hooks for every mount/unmount Tony Luck
2026-03-29 12:09     ` Chen, Yu C [this message]
2026-03-30 15:50       ` Luck, Tony
2026-03-27 23:02   ` [PATCH v3 4/7] platform/x86/intel/pmt: Export PMT enumeration functions as GPL Tony Luck
2026-03-27 23:02   ` [PATCH v3 5/7] x86/resctrl: Allow AET to use PMT/TPMI as loadable modules Tony Luck
2026-03-27 23:02   ` [PATCH v3 6/7] x86/resctrl: Delete intel_aet_exit() Tony Luck
2026-03-27 23:02   ` [PATCH v3 7/7] x86/resctrl: Downgrade dependency of AET on INTEL_PMT Tony Luck

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=7323f542-8e97-40f4-bb32-728d79b48025@intel.com \
    --to=yu.c.chen@intel.com \
    --cc=Dave.Martin@arm.com \
    --cc=babu.moger@amd.com \
    --cc=david.e.box@intel.com \
    --cc=dfustini@baylibre.com \
    --cc=fenghuay@nvidia.com \
    --cc=james.morse@arm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maciej.wieczor-retman@intel.com \
    --cc=patches@lists.linux.dev \
    --cc=peternewman@google.com \
    --cc=reinette.chatre@intel.com \
    --cc=tony.luck@intel.com \
    --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

all inboxes | Powered by JetHome®