[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xen/arm: Do not expose Cortex-A53/A72 PMU nodes to the hardware domain


  • To: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • From: Deepak Das <deepakdas.linux@xxxxxxxxx>
  • Date: Fri, 4 Dec 2026 08:15:03 +0530
  • Arc-authentication-results: i=1; mx.google.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=/6edtUUEX7d1h6V2UDtmzDE2fM2y1zApH61wPRQgOJw=; fh=s0jj9NCQJCHGxRSqYVs1l7k0YfT1hsJTj4jfEvIV2eg=; b=brf8WKzP00NPzv8Q+W1REeTrifctRofBHQEoyStChcg1l5Jb8YgPcScxe8wALoaKQV KIGNqzkZSeZMKLT3HDQ4mzonsCQxnvSaY7wR6unQN71Pxz7PihdTggEFVtymc/nqCgzg p8yTQHK9jITBYSBqMqZGj3i9AKqkhr5HWCfZwTRv67O4MsKWH/SU/fyaOOUOVtkavMOc DSZiowKhxslse3eT9YickSgAB0WLn2gclX34I1Om06Rc3GxnGAhKUuQBP4UofYODU3Mw DKUp/bF8k/7DgIzS76WvOxoJH/RQRD+recOmf/ZJLteigCpaM/8yE9eG8eAp1L8KeQ5/ /8wA==; darn=lists.xenproject.org
  • Arc-seal: i=1; a=rsa-sha256; t=1796352314; cv=none; d=google.com; s=arc-20260327; b=jgG+6FogcbRvApA1rHjxP+WV7udrdD2JQ3dre5TAfUQREhF1QUASY4lADuGnCDNwWh YIGxTtt48a9EX4E+snPtD77m6jqiikYqbOuwXSFa3SXHCtBC3nn1ejJ/uQclXTdI/Fea XYPmMfHSPVhK8ckxFw2yrBuOEggk/xght987S9kOKXCCXB4s47LoDMMcd4HkYSQaf4Ry 2z3rzLJDjs+Wr70xP3n9F8ldYLLXjiTGGL+GuwNzoXwTf+tiUsjGVP4BdnVYbkypyavL 3wrAcuVNwun4erIo1mIc5Obtg1wOZif7vQM+xjNqg5rDZcbug3C8/ps7jrzFYhW5eKwC 6qFg==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=20260707 header.d=gmail.com header.i="@gmail.com" header.h="Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References:MIME-Version"
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 04 Dec 2026 02:45:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu, 3 Dec 2026 at 14:01, Orzel, Michal <michal.orzel@xxxxxxx> wrote:
>
>
>
> On 03-Dec-26 04:51, Deepak Das wrote:
> > handle_node() already skips the "arm,cortex-a7-pmu", "arm,cortex-a15-pmu"
> > and "arm,armv8-pmuv3" nodes when building the hardware domain DT,
> > because the PMU interrupt is a PPI, which cannot be routed to a guest.
> >
> > Device trees often describe the PMU with a per-core-type compatible
> > instead. The Rockchip RK3399 has one PMU node per cluster,
> > "arm,cortex-a53-pmu" and "arm,cortex-a72-pmu", and each references a
> > GICv3 "ppi-partitions" child node. Those nodes are copied to the
> > hardware domain, and map_device_irqs_to_domain() then fails to route
> > their PPI ("IRQ can only be routed to an SPI"), which aborts domain
> > construction.
> >
> > Skip these two compatibles as well, in the same way as the existing
> > PMU entries.
> >
> > Found while bringing up Xen on a FriendlyElec NanoPC-T4 (RK3399).
> >
> > Assisted-by: Claude:claude-opus-5-5
> > Signed-off-by: Deepak Das <deepakdas.linux@xxxxxxxxx>
> > ---
> >  xen/arch/arm/domain_build.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> > index 57473507fa..45d6ad102f 100644
> > --- a/xen/arch/arm/domain_build.c
> > +++ b/xen/arch/arm/domain_build.c
> > @@ -1520,6 +1520,8 @@ static int __init handle_node(struct domain *d, 
> > struct kernel_info *kinfo,
> >          DT_MATCH_COMPATIBLE("arm,cortex-a15-pmu"),
> >          DT_MATCH_COMPATIBLE("arm,cortex-a53-edac"),
> >          DT_MATCH_COMPATIBLE("arm,armv8-pmuv3"),
> > +        DT_MATCH_COMPATIBLE("arm,cortex-a53-pmu"),
> > +        DT_MATCH_COMPATIBLE("arm,cortex-a72-pmu"),
> >          DT_MATCH_PATH("/cpus"),
> >          DT_MATCH_TYPE("memory"),
> >          /* The memory mapped timer is not supported by Xen. */
>
> I don't understand how your problem/description can lead to the failure you
> mentioned. We don't need to blacklist PMU nodes anymore because we have a 
> check
> down below to see if the node uses PPI interrupts. It it does, we skip it
> anyway. Also, I don't understand what "ppi-partitions" has to do with all 
> these
> given that it only impacts the number of interrupt cells and is used for 
> PPI-CPU
> affinity.
>
Hi Michal,

Yes, I overlooked the check which prevents any device using PPI interrupts.
Please drop this patch.

Thanks,
Deepak
> ~Michal
>



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.