mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ben Horgan <ben.horgan@arm.com>
To: Zeng Heng <zengheng4@huawei.com>,
	james.morse@arm.com, fenghuay@nvidia.com,
	reinette.chatre@intel.com
Cc: wangkefeng.wang@huawei.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] arm64/mpam: Support partial-core boot for MPAM
Date: Wed, 11 Feb 2026 12:22:14 +0000	[thread overview]
Message-ID: <59c21340-4e3d-4c48-9d9f-c0f78a023bac@arm.com> (raw)
In-Reply-To: <20260203093110.4189708-1-zengheng4@huawei.com>

Hi Zeng,

On 2/3/26 09:31, Zeng Heng wrote:
> Some MPAM MSCs (like L2 MSC) shares the same power domain with its
> associated CPUs. Therefore, in scenarios where only partial cores power
> up, the MSCs belonging to the un-powered cores don't need and should not
> be accessed, otherwise bus-access fault would occur.
> 
> In such non-full core boot scenarios, the MSCs corresponding to offline
> CPUs should skip. If the MSC's accessibility mask doesn't contain any
> online CPU, this MSC remains uninitialized.
> 
> During initialization of class->props, skip any MSC that is not powered
> up, so that ensure the class->props member unaffected from uninitialized
> vmsc->props in mpam_enable_init_class_features() and
> mpam_enable_merge_{class|vmsc}_features().

I'm sorry but I don't think we can incorporate this kind of change into
the MPAM driver. The usable features of MPAM need to be determined
before MPAM is enabled. Any unprobed MSC may restrict the usable
features of MPAM or even render it unusable by the driver. On many
systems the feature can be inferred by symmetry (or prior knowledge of
the platform) but the driver cannot have this knowledge.

For systems where the cpus are faulty and disabled in firmware meaning
the msc is inaccessible, and not used at all, I would recommend marking
it as disabled in the acpi table. This can be done from version 3 of the
MPAM acpi by setting the MMIO size to 0.

For systems where you don't want to boot with all cpus for each msc you
will need to transitively bring online a cpu that is affine to msc.

> 
> Signed-off-by: Zeng Heng <zengheng4@huawei.com>
> ---
> Change in v2:
> - Add check for the MSC probe status in mpam_enable_merge_class_features()
> 
> v1: https://lore.kernel.org/all/20260107031336.3599175-1-zengheng4@huawei.com/
> 

Thanks,

Ben


      reply	other threads:[~2026-02-11 12:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-03  9:31 Zeng Heng
2026-02-11 12:22 ` Ben Horgan [this message]

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=59c21340-4e3d-4c48-9d9f-c0f78a023bac@arm.com \
    --to=ben.horgan@arm.com \
    --cc=fenghuay@nvidia.com \
    --cc=james.morse@arm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reinette.chatre@intel.com \
    --cc=wangkefeng.wang@huawei.com \
    --cc=zengheng4@huawei.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®