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 3DE4C606A322 for ; Thu, 3 Dec 2026 08:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=sHldd0GW Received: from list by lists.xenproject.org with outflank-mailman.1511818.1704191 (Exim 4.92) (envelope-from ) id 1xZ2EK-0002cz-KD; Thu, 03 Dec 2026 08:31:52 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1511818.1704191; Thu, 03 Dec 2026 08:31:52 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xZ2EK-0002cs-HF; Thu, 03 Dec 2026 08:31:52 +0000 Received: by outflank-mailman (input) for mailman id 1511818; Thu, 03 Dec 2026 08:31:51 +0000 Received: from mx.expurgate.net ([195.190.135.20]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xZ2EJ-0002cT-4J for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 08:31:51 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xZ2EI-00DumY-Gv for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 09:31:50 +0100 Received: from [10.42.69.1] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6b1128ef-8faa-0a2a0a5109dd-0a2a4501b5bc-28 for ; Thu, 03 Dec 2026 09:31:50 +0100 Received: from [40.107.209.49] (helo=PH8PR06CU001.outbound.protection.outlook.com) by tlsNG-d62444.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6b1128f4-5bcc-0a2a45010019-286bd1313940-3 for ; Thu, 03 Dec 2026 09:31:50 +0100 Received: from DM6P244CA0017.NAMP244.PROD.OUTLOOK.COM (2603:10b6:5:174::35) by SA5PPF0EB7D076B.namprd12.prod.outlook.com (2603:10b6:80f:fc04::8c5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.11; Thu, 3 Dec 2026 08:31:44 +0000 Received: from CY6PEPF0000004C.namprd03.prod.outlook.com (2603:10b6:5:174:cafe::1) by DM6P244CA0017.outlook.office365.com (2603:10b6:5:174::35) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Thu, 3 Dec 2026 08:31:43 +0000 Received: from satlexmb08.amd.com (165.204.84.17) by CY6PEPF0000004C.mail.protection.outlook.com (10.167.247.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.3 via Frontend Transport; Thu, 3 Dec 2026 08:31:43 +0000 Received: from satlexmb07.amd.com (10.181.42.216) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Thu, 3 Dec 2026 02:31:43 -0600 Received: from [192.168.31.141] (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server id 15.2.2562.57 via Frontend Transport; Thu, 3 Dec 2026 02:31:41 -0600 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=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SDgf0DNwlpPZBlWTEx8etjtMMhVRJ4fje6Rles6eRXy9WwVGH3UtpDry8qKyP2V2b0nMtnyP2/gL5Y8tEdXNvlCu/87ycDv0iB9IP14bk6L+V2g1b6chthiUi7eFqiKa8hDNRnYeKoxUILQp53AYGy/Z4f3Gep38wA3WRI/pypqv2pR7uPZhDH1b6bjyLFQ5vCPpOaFB+we4mu9+XyO9S5qAAvcitmYhHEdq1EhRKCT+tgR52YbUhQOKng+/o/KJFRV8kYz+pYt/TJay1Nnu+fwEsvaEcfUabwC6x6RgWeo4S1OWYCBNuajX4NorsJl7wq/CnHDdRza9PPMdu/VJqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zrEm22vrljt/sFeLn0pA0getnzMX2xgeG22kBaF3Zmk=; b=tQqXYgYEMG8WXc/Taqccj1xouHGeEny2STlBdricjzUZ54DGtpuxaYTkBjpnNs4TSxEjhx21Uew91ONbq4B3SgKaaSSDOZ4SeumMCn05Le9WeS8ZiIJMm5RcF5ivDoBbu7VpzzUNXntHmv/zVIo5FA337Uhh8vDoE62yJGhLvbV0XPyje0sT++fgAf7HRFxeGcENtD1QBIsn/p932DGpx7bvM1eYzdb53hfq5d6sxy3TDbY1D3jSqnGOoM7KP3TZBa4jr0opgGwDeJO57Px7guuB9I9iNZF1AKZtBqepZFjgAQhfSw5fLVSvilJddQCPYWf2fMeL7Iwd1EU4RhZ2DQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=gmail.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zrEm22vrljt/sFeLn0pA0getnzMX2xgeG22kBaF3Zmk=; b=sHldd0GWmp9o3DSdMq+E18flGsp0ceV31Kv7mDjYzB88HP1qLRPuSSfudpbrYYN+pgLJoKlSCrZJtC0ailWbns5f5VMehkbtWvyFLYCXBavDiAf7wybwJ9FyJCRrofCIbcrcXb6NgQ52sMDw8ZCAEJsw9QLT8DYz7G8RgpZCHgg= X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb08.amd.com; pr=C Message-ID: Date: Thu, 3 Dec 2026 09:31:36 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] xen/arm: Do not expose Cortex-A53/A72 PMU nodes to the hardware domain To: Deepak Das , CC: Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk References: <20261203035159.374049-1-deepakdas.linux@gmail.com> From: "Orzel, Michal" Content-Language: en-US In-Reply-To: <20261203035159.374049-1-deepakdas.linux@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY6PEPF0000004C:EE_|SA5PPF0EB7D076B:EE_ X-MS-Office365-Filtering-Correlation-Id: 5821c69c-97d8-447f-0301-08df5117dc6e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|82310400026|1800799024|376014|36860700016|261009223027099003|18002099003|22082099003|11063799006|56012099006|10067099003|261026140227099003|261102123227099003|261022075727099003|261022105027099003|261026121527099003|261028144727099003|261021121427099003; X-Microsoft-Antispam-Message-Info: RXVtnaBwsbqbmD95vkzttYbe+AFqWxBiH3jN2Xr92cdzwovDWuoVpb5WwHheA2wKuFT+DcSrpKAJgcjnFsbdkU93MWurLc4OsJOwQg5F5zczPP+/AUVZtrpzAMm8NOZ2AxMpJTKjPEXGwIOOLlD6DibbrJBaxDchtDwjipXRAf0BN/D5iIQt+VslHfd7qWMyHZr57AY1+1s8UuHrqpTVG/u/Vl4xe5svuJ248BYORqQmAX1ivyU0wsP532VZOd7VedKGm7anqAJOP9yyi8t1YzPqzqyB1iTbeY7Sg+ncWo+mX6rZWvJ8TKXnJp6R/grKaD9xjtJ46LZ60YG6myoF+HwFh6dPaK0IlKbXJW3qc/yq/215waKsai1V/m1BaJaeT7SbX08y8OaOKWATF/aNpQ1eDNo12ZqXkHod2k4FtDjQlRtC5QW66CFxqBoiBspdiCtJPTRi8gWuPV5lBH0sfRlISCXqENAeCEjA3P5AZMc368mQC+BxXsZuGlNL34jxDBteGKxGCqh4h0uxvsH+MopNHCyxvh0NXshvEyfzFBjM1Ds1WUDHLIRqqM7e9kbGQCv/oC8ZYb/piykpoZln+yO9ctmexIuLJjDLif6/axjUMVCBhSqyI6mebxJ63dmh1dQIrJFix8qi5TTkhHiIJkppw91NFig28e95LYS6RA1KJba7lC7NSt4RhGBOEJaNOcCdAXI4gsMAnk+L+exWtg== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb08.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(82310400026)(1800799024)(376014)(36860700016)(261009223027099003)(18002099003)(22082099003)(11063799006)(56012099006)(10067099003)(261026140227099003)(261102123227099003)(261022075727099003)(261022105027099003)(261026121527099003)(261028144727099003)(261021121427099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MeXlr4vuWSf9Wxfh7VPfP2UN5mNEnZc+Q4bJg2JsNBoTYZsiYM1FLeuTFtlshNNV0H9c09YIJcc8nMHXLzIidsq5AsqRSGZ/3HDAC4XYwmcmRtngNJmUO5i1vziTD0EYtaoAl9J0ExbNMiFmEhDT6TszFPuByq4Xb/bPLKUHdwpvcP3Ffau6kzD7k8dXUk0KZEcRpuEWjnn8833SJ25bp6qHKP55mxtWYdwDHMMLyQjWAGSVZBCPVNbc7AHP8GChAwhrZ/UqnG+QYSu77NWHppK6Lzw+aqhf9bWuIvI2c2bAjttvtLGhSE/zbAA0nxzW1kxi3ZjG/xP+E0oB93jXDXLRpnZOFDNqtptv7oTVLUTETLiOZ9B2ZVMovdvo7L7YZ4bCGMtYYkZhiaNKkzaRgMS1MnhlvD5iIxQABc3b1FuUTax+ilg3/ClfR8KPSN2J X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 08:31:43.3300 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5821c69c-97d8-447f-0301-08df5117dc6e X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY6PEPF0000004C.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA5PPF0EB7D076B X-purgate-ID: tlsNG-d62444/1796286710-4DF585FD-862D0E79/0/0 X-purgate-type: clean X-purgate-size: 2172 X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 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 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 > --- > 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. ~Michal