From nobody Sun Nov 2 12:42:23 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=arm.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1739788094689367.36129363615316; Mon, 17 Feb 2025 02:28:14 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.890178.1299215 (Exim 4.92) (envelope-from ) id 1tjyM5-0002uW-AV; Mon, 17 Feb 2025 10:28:01 +0000 Received: by outflank-mailman (output) from mailman id 890178.1299215; Mon, 17 Feb 2025 10:28:01 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tjyM5-0002uH-4f; Mon, 17 Feb 2025 10:28:01 +0000 Received: by outflank-mailman (input) for mailman id 890178; Mon, 17 Feb 2025 10:27:59 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tjyM3-0001n7-TH for xen-devel@lists.xenproject.org; Mon, 17 Feb 2025 10:27:59 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-flk1.inumbo.com (Halon) with ESMTP id d6790e30-ed19-11ef-9896-31a8f345e629; Mon, 17 Feb 2025 11:27:50 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 01A762444; Mon, 17 Feb 2025 02:28:09 -0800 (PST) Received: from e125770.cambridge.arm.com (e125770.arm.com [10.1.199.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B98933F6A8; Mon, 17 Feb 2025 02:27:48 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d6790e30-ed19-11ef-9896-31a8f345e629 From: Luca Fancellu To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk Subject: [PATCH v2 2/2] xen/arm: Restrict Kconfig configuration for LLC coloring Date: Mon, 17 Feb 2025 10:27:32 +0000 Message-Id: <20250217102732.2343729-3-luca.fancellu@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250217102732.2343729-1-luca.fancellu@arm.com> References: <20250217102732.2343729-1-luca.fancellu@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1739788095826019100 Content-Type: text/plain; charset="utf-8" LLC coloring can be used only on MMU system, move the code that selects it from ARM_64 to MMU and add the ARM_64 dependency. While there, add a clarification comment in the startup code related to the LLC coloring, because boot_fdt_info() is required to be called before llc_coloring_init(), because it parses the memory banks from the DT, but to discover that the developer needs to dig into the function. Signed-off-by: Luca Fancellu --- v2 changes: - dropped part of the v1 code, now this one is simpler, I will discuss better how to design a common boot flow for MPU and implement on another patch. --- --- xen/arch/arm/Kconfig | 2 +- xen/arch/arm/setup.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig index a26d3e11827c..ffdff1f0a36c 100644 --- a/xen/arch/arm/Kconfig +++ b/xen/arch/arm/Kconfig @@ -8,7 +8,6 @@ config ARM_64 depends on !ARM_32 select 64BIT select HAS_FAST_MULTIPLY - select HAS_LLC_COLORING if !NUMA =20 config ARM def_bool y @@ -76,6 +75,7 @@ choice =20 config MMU bool "MMU" + select HAS_LLC_COLORING if !NUMA && ARM_64 select HAS_PMAP select HAS_VMAP select HAS_PASSTHROUGH diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index c1f2d1b89d43..91fa579e73e5 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -328,6 +328,7 @@ void asmlinkage __init start_xen(unsigned long fdt_padd= r) (paddr_t)(uintptr_t)(_end - _start), false); BUG_ON(!xen_bootmodule); =20 + /* This parses memory banks needed for LLC coloring */ fdt_size =3D boot_fdt_info(device_tree_flattened, fdt_paddr); =20 cmdline =3D boot_fdt_cmdline(device_tree_flattened); --=20 2.34.1