Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA6A8606A322 for ; Thu, 3 Dec 2026 06:03:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=crVXRWF9 Received: from list by lists.xenproject.org with outflank-mailman.1511527.1703962 (Exim 4.92) (envelope-from ) id 1xYzuC-0002T1-O6; Thu, 03 Dec 2026 06:02:56 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1511527.1703962; Thu, 03 Dec 2026 06:02:56 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xYzuC-0002Su-L0; Thu, 03 Dec 2026 06:02:56 +0000 Received: by outflank-mailman (input) for mailman id 1511527; Thu, 03 Dec 2026 03:52:30 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xYxry-0006er-QH for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 03:52:30 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xYxrx-00Ag7k-Kz for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 04:52:29 +0100 Received: from [10.42.69.9] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6b10e71f-2eae-0a2a0a5409dd-0a2a45099aca-28 for ; Thu, 03 Dec 2026 04:52:29 +0100 Received: from [74.125.82.42] (helo=mail-dl1-f42.google.com) by tlsNG-bad1c0.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6b10e77c-be1a-0a2a45090019-4a7d522aecf0-3 for ; Thu, 03 Dec 2026 04:52:29 +0100 Received: by mail-dl1-f42.google.com with SMTP id a92af1059eb24-15ea896ddc8so22429231c88.0 for ; Wed, 02 Dec 2026 19:52:29 -0800 (PST) Received: from DESKTOP-BPHFR38.localdomain ([49.36.144.153]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b5566c3052sm96276361c88.1.2026.12.02.19.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 19:52:27 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Post: List-Help: List-Subscribe: , Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=20260707 header.d=gmail.com header.i="@gmail.com" header.h="Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796269947; x=1796874747; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=RWm4wZsnAM7v4SK0paU3YodDJjP3kOKLUIH84DeMuaQ=; b=crVXRWF95/e21ch5SKKLd5h7k0eyk8E1ofPTXdQr3ZrF03nzMlSL23I++wq1iUjiCu 7L7AVcgP5NCDBJrxSOQYyOYpHOK1Ytv9daLBmZ6UfwidVB2a0YlIcVSV11IT7LdyZoyG dJYiVSoq+0s77gxh9Yq9F92AzaSBzGBp3wH0p06nN5okIaWOqG2wINxR/t6mwx1dgRRE iNkJcrEflZj3PhnwjMa/HM3bO1go8N0FcGVz+jFHhq3bKJOUaJIhJSgjTRYVnE7J5g0J NuIYZFkyWaqUZpg0E/OUEXh6LVkt0DCVuAKYcWaA0Kcm8KFklawYSfwsZFbsUqGDo/Dv UH/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796269947; x=1796874747; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=RWm4wZsnAM7v4SK0paU3YodDJjP3kOKLUIH84DeMuaQ=; b=IZoJwFjQBp2XxAbi6KEubWyjxjtSi7Yzm8qBnjwWd1EHyMsqKyVWoCMmuATUyqyn6X WbS7dUWIyQB1ZyMcIheOGy/6aFiRgR/yw4/nJqQ7ajlpXMFlaG5ZXIUor2kvh+oaMZpn RtNb7xje8OMZU2mpXzcTpAKeaA7wXdsyeWPo+0q0O0NVAV2vOGKmKwKF9lR464sFgeqD dGIZVj1c9iWW9ilo9JAzHjC6j5HgdTJdHUZqcX+ZV0Mrn4N21z9BnZUFTgwN+C6y9JXr 8AhD8Tg0QtW7fWiKKIV2d9IbztUSmWu03i5El+Lvx+EFqA+HaO/rEdKCoURENahUybz4 LkPg== X-Gm-Message-State: APuU4Z9H9a3fho4lTQ/mNDOrU33SFbZ9hItxg1Ju2Qx93MtUY0in7ixM qYMnCySRgsD27jdDuYfp3B3FbTddQhs5M9ecnLN1sGPmDUbnpt71nj+ic+Wgx/6N X-Gm-Gg: AZFdTZc3KD8C6BPGyAH2yZpr4PzfZBSTosIEMggmX5SuUGUJEYTdNQdPmD/s6AaSkm5 NOx0k/HCwk2pcKnlF/qMupNcqH3uGEQcO1/HyFmxdtA+jxy0kHDhYC0yi8yu69yDHG5ad4fvVwt GN996rPKW9oNQQ6wPYTHhaTGbp3au2+xZDiEfD5cp3RtwW339BZbr2IwtkP9ywzQfd66KOz+YkF 7xererRo1uaw5Fyt/DEUaH/tHaiXDT7rikPyRsqszlbHNQn1QbAClZwJt8G2uuvmaN18+CgMsGf Ygl68QbeIzzXVABcZuwrhuSN7dnnkrZPepJzWaRU8f+R0uORBN9STJQ7BKxUnLgHQivdRFcjrP8 qv/3U+wy5Rr7XzsnPpg8ihto13McFtNfnWgRAs0dHAa58/W0GAY7IG4a5ZA9ygrkEx7ejzk2+Kq JYo34QfmCd34dIB/WCOB3IrciL6h5gt/rq+n+koHGleIFz+i+y3HAUqWbOR85jOaPqeLrj0hu2f wckQpzTwuqYtORhiAl2jjZ0J1rC/uviGj/UYuEaVYbKoysW1DeOjFDc38s/VbNnwcEvn4zAuCmj gLlgTvCyXrN2Wn/hM7sQ6x02PKwhxx2wsvfenqP/O+6DW4Mh+vHIGSMy X-Received: by 2002:a05:701b:204f:10b0:1b3:a05f:892d with SMTP id a92af1059eb24-1b556903388mr40955518c88.40.1796269947456; Wed, 02 Dec 2026 19:52:27 -0800 (PST) From: Deepak Das To: xen-devel@lists.xenproject.org Cc: Deepak Das , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk Subject: [PATCH] xen/arm: Do not expose Cortex-A53/A72 PMU nodes to the hardware domain Date: Thu, 3 Dec 2026 03:51:59 +0000 Message-ID: <20261203035159.374049-1-deepakdas.linux@gmail.com> X-Mailer: git-send-email 2.43.0 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-purgate-ID: tlsNG-bad1c0/1796269949-3B2DC034-494F2E19/0/0 X-purgate-type: clean X-purgate-size: 1650 X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 --- 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. */ -- 2.43.0