From patchwork Thu Aug 1 08:11:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13749957 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BB054C49EA1 for ; Thu, 1 Aug 2024 08:03:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=tNpmcbzJwQgdUW8vv1c1Txh+EMY78wFw4tmfV0bHHqc=; b=G1baER0nr/eoSmUXTTGJQ5rVUA OMfwgEcAxd2ss34uvISU/zepilGCEzgrJtAp33jdRhLLxZhUlBgSu8/ZE+y0/8gjW85GQWrqmMXNB T24zn3wCVoE4CzPVEE6/eCvP3f+1xhoM5Otv1Kpq3zyfbcjsWAha1q7lYr8sCtZA6wLfm04b/9ewn gAEfBNpb6Ud2gNoMT+MauuVtsngs8thgE8GVVXbBNsZsdlJCaYVI2epdIxzUfGPxCyss1rWQ9deVv luTk2CyzInKnGOZHWczRKxHH2NJ7Cbw5r+actnQ3L5PP57q8nhdRPZLTVyt6LoF89hzIZ03fAaeVd hbMAx93g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZQm8-00000004Grq-0wDn; Thu, 01 Aug 2024 08:03:04 +0000 Received: from mail-vi1eur05on20601.outbound.protection.outlook.com ([2a01:111:f403:2613::601] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZQle-00000004Gjc-2N7y for linux-arm-kernel@lists.infradead.org; Thu, 01 Aug 2024 08:02:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AAa9niW7kiFJSlV3x0VNTw0Ppx7/nEHfcO7+sB4RPXqs/EQABQLNrfHp/CMXSAgQQTvkFwN9KTR7ioguOMmkNhqV25nMpTkMfWLAhq3lByY69p7vRP6pUruBZrczgKwHoxbQORfF50ycINmPqdPtVTW3lvWe1eejt3fkUHrv4ZY58Jqe4OA1akHZricoSUlOobFWvYa6RdpFaebCdsPziDSYpSL4K1vCesvn0K9FMqdq4+9xC3lTEXibhYuya0wIdj+2KeqaGGdS8T1ahL5WXReZjrzddv1XBT7aiaBjmOzUHTlPYMGuKwYhNSfCQAeRQ9VCIRgCFVs9qcLcX88tSw== 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=tNpmcbzJwQgdUW8vv1c1Txh+EMY78wFw4tmfV0bHHqc=; b=K79uGoQictKWmWP9aQafLH+Uo40rDzt9kk8baRkDEX5Azg7Q2Nl8BI92IXDePC42Gc38SHESGtYyxy7K/voLgZMh+wLW3PY854PweY5dHGerLBvVc96IcxJb3k4H0fCpimnb7Qs6IM9KHDZNklnbJmQE64vKaB3PLEO23mUDZN1bbvjdvG0FzgRkF2dXlzA52xBZqm0uI7Fk5soAH7KB3TI3//ccyT9ZTox6OgxD8j9UtB04RJVfe0yCXOaVMY94RDXnHuu07O1Hsi674359onSGX44tRPeohs9oT1bZAjZp3Jg8eJv990i/zb1Xx+KmgHcFlm0JNILa05rmEHB6Jw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tNpmcbzJwQgdUW8vv1c1Txh+EMY78wFw4tmfV0bHHqc=; b=fay2YckdIVmgjdwH1mM4CAd691Wwywez0GPC0FA0n3r/RGcI2hge0kUV53qIes+PRKtPf51ZRoiX1sCG1JOnJ8a+axBhLP04+H54Hr4aL5Eor7IE3KJ7lJmt4HjZEgygeRN9BhJdSlqZ5lXrnFsM0IHRWgKwJV6+890XP4jLotx6flojz2QCz1Aa9rPhDMxKIjOX1ASKkVLyjuoqOzGU3M8bAcM7/Utf6Z3YHrs/nf/C25DXmJCRmWqoBC0CVr810kzyL+VEPZ8sy1VTH6/XiHlpRDwpGhatoAqrCkaav7QaFhGVtb61RLlKqcingsDC2KV27r12y2UhU+Q5BNBeOg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by DB8PR04MB7036.eurprd04.prod.outlook.com (2603:10a6:10:12f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.22; Thu, 1 Aug 2024 08:02:23 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%4]) with mapi id 15.20.7784.020; Thu, 1 Aug 2024 08:02:23 +0000 From: "Peng Fan (OSS)" To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, wahrenst@gmx.net, Peng Fan Subject: [PATCH] arm64: dts: imx93: add cache info Date: Thu, 1 Aug 2024 16:11:11 +0800 Message-Id: <20240801081111.1492688-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SG3P274CA0003.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::15) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|DB8PR04MB7036:EE_ X-MS-Office365-Filtering-Correlation-Id: 95bec647-9373-433d-2c33-08dcb2004679 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: TBFq766uOFSHAryBdSXiv/lPdWmvyC/pXXONJm+iqhgw9q5Sx9qwdg2vBS08o9Vv/PIovMwuBKJ0ZMr+oJ6B87MdIEPSX+rSK9ivy19Bssx+e4W2aDFG9NIVwg99Y42vuH1i6UTQwP0SgMRv4+A8zsQ3huuHVt3BCq6WE9cweNS3ycTecg/vkxjzZyBrszAysdhySatFFA673IiDYlJqPPmIAwLEncEuxf6WuXu01m/085/Yo60aBWF7fASlnwbWVbygWjluhlyTGC8HcaFpevQl4OYhlc4/XvmsT7XS4ReQHkIkNTebyNhQJMcSMsj2bE67rdxMSDVbYbrRVEHQkToDAbvJX980Bi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efront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vhb0cKLjiUwB7QSN5/F1/GBSYB9YTOKumrDTvSc3dFWxPrnuWJbfF5szyxEqYoYvVnnd9ScOpPhH4hz4MCt0d7rcWqNpz0fhd73NWpcZKbEMDlk5iLvnwegukVfToWyyMcevBQo9TIZyVdIWs1Xi75uFvm6Q8IYuC6lnOCgzUeMWR1Z+XQTU8vF8LWMtYNsZcYQ4K5e+aHvEv5J+MjjN0MR4rVl+PS9jMpHGL95W9rMEZytrwg2zKkYnmNA9pspIodtTlHcLWnPTCRxmYxKffe8DLvmOZMwGJp4HjY4osB1nT6s3IdVekuicq9dfgLFDN393i18KKMBAOoeWIvW/2+DKof6isVeVp+5cGTAmOdm0uhZivx8l9ZBzrvx1WupSPIwmEO7OADdXuqUyFfTmoeQhcs1VKflsPNZDVa8Ur9R5jvRmBrynY/8NTyD3Mg7ebY3rX/lui7g8WIZLmJ/0Y8vQSNlbWWaQtj0E2ghTj6eFFk40L6kRLM0ihdzVYgZPjZ9XqsujhfaRf5GTVt/96dmJ1O2bSIv+JSN3nIlR+fWcDM056T1jcq11gao/EuFj83a7wEisSOKUuY04CLdxkPkjjPsZt1jUqL9Pjtt70ns955fgx5SLMGGlCcPP3DeB0MP5/ntV/vJmO87RHtp+YsvwXtml/s28IOBagt1217P6CXxHnh2x7w+0ar3cBa0ZMhWRRluwSHqiLso+xJwK4iV0JPdOuQJqQ/HrApEAEiCQ3gsgctmF+kwwfj9AZ5L0r6FwzRAWiKqM0GOYpJRX/V4k+/Nd+JkfAWNmQCXEgR3+J8+x34lbDkgihdaZ/wWjRtTWlNFPQfaOEnQCDe4TvT+a7fjc/7to3ZQAa11En1NECjzazyLdGSwaMuny2LiWczEg8ubqZpoUjSR+cj5fnSwgfcEyFGFUKHkchTIDm7xuMtu8GlZHfRoPEbQgHYRdoFm3m/2LFOYL8Q8tpmj31XNddBpSeoskR93T7rSLlKjrPJQa2Uo9y1rfIQmUsnyNnuWoGR9GdN4/ux5QrWJdWpY0rDU3nBMO4AbUBOSF4IJb/c92WTOM295uQsXtgBHB/wfJAOyIeCqDcGpsEOz2cdjUXsZrI+KKn/5ooTmaCMiauawit2MetmZEha4CQFWrX+kLE9B6LZ8ZlAk+133TcwhIRb3yYMQenXW18gfE7RVlx9o/MvxeNZpmhkBbUYMtR5fMa1PVhUORya5Bee34SVw+vdE9rrxysakEUO5+ypXXdgMXHdVPub083kUYpLdXrt3jQoZ2YPR2ytn52TmksKdGX9+szTo2CdMx1u468VBqY+h47D/mtmTOGNnRPPGJBA3SBQdZx9Uo0rdCckv70iUvU60EJJsAwXJLFvCzfa3RDsdC9PnmVEnv7rT0aYBXGCkMP+x/hNDnIjE/YDHCH/404+XsDsA7nXBrCXxOXFEWsjbVNZDcgK8f7IZnggF8Y8gTIk0Nmf2l/iTAC9PsvKCZIIrr6/jX2RvJfABgneL16PSVJSmEFarY2GIQPscyX8UA5kqAjxQ4kUXgpfEBENUZjMIHuKY4V6QMh6uTxLF3OQvWvEwBTqmZhXdZKIIm X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95bec647-9373-433d-2c33-08dcb2004679 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 08:02:23.3405 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ILkq3ZSfqpb2C6kFOZpB1JQ/3b432o5WymqZ1Cvp9EA1qOGEIcrkt5y15Pxqzg3XOvAynLh8miQPNM8JwqEHlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7036 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240801_010234_640658_CE186508 X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Peng Fan i.MX93 features two Cortex-A55 cores with per core L1 Instruction cache size 32KB, L1 data cache size 32KB, per core L2 cache 64KB, and unified 256KB L3 cache. Add the cache info to remove cacheinfo warnings at boot: "cacheinfo: Unable to detect cache hierarchy for CPU 0" Signed-off-by: Peng Fan Reviewed-by: Stefan Wahren --- arch/arm64/boot/dts/freescale/imx93.dtsi | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 4a3f42355cb8..8f17b1fbfba0 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -69,6 +69,13 @@ A55_0: cpu@0 { enable-method = "psci"; #cooling-cells = <2>; cpu-idle-states = <&cpu_pd_wait>; + i-cache-size = <32768>; + i-cache-line-size = <64>; + i-cache-sets = <128>; + d-cache-size = <32768>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_cache_l0>; }; A55_1: cpu@100 { @@ -78,8 +85,43 @@ A55_1: cpu@100 { enable-method = "psci"; #cooling-cells = <2>; cpu-idle-states = <&cpu_pd_wait>; + i-cache-size = <32768>; + i-cache-line-size = <64>; + i-cache-sets = <128>; + d-cache-size = <32768>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + next-level-cache = <&l2_cache_l1>; }; + l2_cache_l0: l2-cache-l0 { + compatible = "cache"; + cache-size = <65536>; + cache-line-size = <64>; + cache-sets = <256>; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache>; + }; + + l2_cache_l1: l2-cache-l1 { + compatible = "cache"; + cache-size = <65536>; + cache-line-size = <64>; + cache-sets = <256>; + cache-level = <2>; + cache-unified; + next-level-cache = <&l3_cache>; + }; + + l3_cache: l3-cache { + compatible = "cache"; + cache-size = <262144>; + cache-line-size = <64>; + cache-sets = <256>; + cache-level = <3>; + cache-unified; + }; }; osc_32k: clock-osc-32k {