From patchwork Mon May 22 14:59:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 13250731 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 CA198C77B73 for ; Mon, 22 May 2023 15:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=dFExo+dzCP8dTJHx8jrAfM/g+/Oafgu+giKhUb7XDbE=; b=c6BNaslq/roXZl R0Nuj+K6iqKZoBVOgvHqPQagBc0b19va7Dt2MEOMzBW6P2TTNuy/m1ZVT6PBN8OAowaToiGj/uBg4 oL9kEx5g7JNnNZPI3tE8fUa0eVjEr43muRJSrPgNZSBup++IM70By9A7tdPGndmmoGWJ++ZgU2TXj n+57iivK5BuxsFnM2CtZwvcbkxhaNvF4py40UUU86et079yu+4+C7xNeMBVd6kO5KonJsKD1zkuXz btQVWyRSplM/HPB9jL36LeDDmMuq85Nui86AkyA45GG5bT2FOFGjxtg94NDFZ6HJmnd99UIrMXSFV G1OkleMcrHMjidnpiyTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q171t-006ve6-2M; Mon, 22 May 2023 15:00:57 +0000 Received: from mail-bn8nam04on20602.outbound.protection.outlook.com ([2a01:111:f400:7e8d::602] helo=NAM04-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q171l-006vZf-0g for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 15:00:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zd+NcGYhp2qkrx0f6H0aM4ZT91dMmOysNC0HqPclFWxprQ8tZs5ev3QzP3r7JQaIM3gc84L7OmK/0urExG92K0/Iuh+/ihqHV00In1Y9E2BVhtnLpWJ5h3DsNbXobOkZF2oRaJoKBknfVxE1AtltJ+ca7e53QKXWKDqAfMDroG2OwHnlMM/d7BRbq1BW5ejoUJa+Wv4tPF2PcH8/qyI/7Sm8BZmsE4sfe+DSYsku+/hoiJioRC69++9VKpcwK23kibD5a8qcUfhRvV7C5g2c7vY++Op/Yr/75jSLfdr57uUUJUuhOIXhIkBQNeuDa8PKkLnAPerIPYZffKY6tAdPCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=eVNuQUM1uYFgBjPmCO/OTEjRstWFNXfcrZIEj34aSiI=; b=fvX2EyTfldBJUifOZTzEwiCK5+iTkkLxC6mdhOW+hP3QLBECi09n+9u1PrgbgkqCErFSDtnIz0yOYMx4ik/Y8APJ15NtZbfN/+h9V/uJD2j9EUoFlDjESjMbwKFzt3oCbxUT7zem8DIuCz7bByUoFf+xuDrs4sCz7nQ5mYeifp1bhifH0xFHUYX+sqT0bb+XoIIDYesZ3/36u71PRJ90ytk+v7mXqIy4wGtw3ibULEVUmm7+cm9l2Ri77ZoTHD4i6D4vr0FeFH7yiooIbS1rdeQq7RRUdVT3Pe41w/iiehXnITSWpDVqj1SGAKfnZIdRAQH9dnH6V0DtBxV51MKaHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org 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 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=eVNuQUM1uYFgBjPmCO/OTEjRstWFNXfcrZIEj34aSiI=; b=YCYBeVif5qvqE4UOoF+v1ZE7nMWHvixdawajH+m4hWD72Y4zXQRlNbVJ8x27LtiPBvRP9MgBFgYKwPUY+8xSB6AYH4fnnFcOG45VjX8zJJJImY7WSJquYtHIeBKfPEchFm3j8DjOU0tYIvWebGVFN5wn79JngIRw2vvT20U9aes= Received: from DM6PR03CA0008.namprd03.prod.outlook.com (2603:10b6:5:40::21) by PH7PR12MB5735.namprd12.prod.outlook.com (2603:10b6:510:1e2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Mon, 22 May 2023 15:00:40 +0000 Received: from DM6NAM11FT059.eop-nam11.prod.protection.outlook.com (2603:10b6:5:40:cafe::97) by DM6PR03CA0008.outlook.office365.com (2603:10b6:5:40::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28 via Frontend Transport; Mon, 22 May 2023 15:00:39 +0000 X-MS-Exchange-Authentication-Results: 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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT059.mail.protection.outlook.com (10.13.172.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6411.28 via Frontend Transport; Mon, 22 May 2023 15:00:38 +0000 Received: from localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 22 May 2023 10:00:33 -0500 From: Michal Simek To: , , , CC: Radhey Shyam Pandey , Conor Dooley , Harini Katakam , "Krzysztof Kozlowski" , Laurent Pinchart , Piyush Mehta , Rob Herring , Robert Hancock , Sai Krishna Potthuri , Tanmay Shah , , Subject: [PATCH v2 4/6] arm64: zynqmp: Add L2 cache nodes Date: Mon, 22 May 2023 16:59:51 +0200 Message-ID: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1616; i=michal.simek@amd.com; h=from:subject:message-id; bh=aRFjcOFIfT3sjxmmYR0+S2JqA8kTwZQdZ9ysjky5aFM=; b=owGbwMvMwCR4yjP1tKYXjyLjabUkhpTs5rhjqXtu/2U4vdo9fN+E+h9rDe6vUo389Gv37sSJ2 TZd2oXGHbEsDIJMDLJiiizSNlfO7K2cMUX44mE5mDmsTCBDGLg4BWAiVSEM8/N8rO6HdF4LMn+l 5MOx7aDsTLa30gzzfZ5F19Z/O5N+h4dDU3PWfP2fpje2AQA= X-Developer-Key: i=michal.simek@amd.com; a=openpgp; fpr=67350C9BF5CCEE9B5364356A377C7F21FE3D1F91 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT059:EE_|PH7PR12MB5735:EE_ X-MS-Office365-Filtering-Correlation-Id: 02c2c5ee-cdf1-4cc3-31f5-08db5ad54def X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lhKPIgnuqHeRTVzWdiTQ/bEYwo6++EIEuhpa2dRfnZL8evQfXNgNe33NyvfLeJOg9e9l/e6hDBcbeFoDkJrv5MsicGlQxutqtd3EX1hwzLRWF24K9Fs2rm2Ngcbr6GZb6uRIbvC0AePPcvYcb4sfSq6a5ldoOjGrLVRphjPhY+6QvQrsxpftAYkfO0dXtxbIWetnYIheY0+0im2IFsDcbOsKDKpYZAYD9LI5iaMQC/u+oghqlcXMzrsCu5YBhoHW5B7tE2Bv7TznRg2Prl1VWq8bw3FJlBcYAmOfG3js+p0MzM5tp/sKrSjgJ0fNbYzr+YUebiuTkmeTw1SIbAQvmHFpf62XNyimMnSHR0o/O9Qv/EhepPARip9h2/P3gzai/YjGzfN/Dv/GYW1SVD+PTyhvuIjwtLKHrug+UNx1eWBxBcD3sOgtuUAcwim6xC07kYsX1yhAGkJgnYj2AwxbkQlES4dR5i1Nz9m5lksdbEaJyE3E33/sIEM53XeIlinBTX0+SkLb9RXCuxYZP1JEMx0SS04o9NkY2hiFAgRnn2JXYbn/2lgDs3a1CXVVqQULFHxFlm5P7KdXUAM2MAG6oczpztIYjZCoboNr6/q6E0ZitXnI1K+hplLghZZEeVd7VwIiayk5uMppU2tkig37Uv5GH1hXdIi8PlWT2He0AEq0w7x1WVTl8CjOEEBNNRIwBmioSPkrYg5O5Fu2/nkXgm8td7XUWzTv02xaK5EKiCjXz2P2V1iDzgJuQL4FOCt07c75OutiSpUF40VWfbVdeFxs1J0s4rHbryPWfnLMkU8= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:ErrorRetry;CAT:NONE;SFS:(13230028)(4636009)(346002)(39860400002)(376002)(396003)(136003)(451199021)(40470700004)(46966006)(36840700001)(70586007)(70206006)(4326008)(86362001)(2906002)(7416002)(40460700003)(36756003)(44832011)(5660300002)(8936002)(8676002)(41300700001)(316002)(40480700001)(478600001)(54906003)(110136005)(82740400003)(83380400001)(81166007)(356005)(6666004)(26005)(186003)(16526019)(426003)(2616005)(336012)(36860700001)(82310400005)(47076005)(36900700001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2023 15:00:38.4331 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 02c2c5ee-cdf1-4cc3-31f5-08db5ad54def 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT059.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5735 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230522_080049_254141_0D472C15 X-CRM114-Status: GOOD ( 12.41 ) 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: Radhey Shyam Pandey Describe SoC L2 cache hierarchy. Signed-off-by: Radhey Shyam Pandey Signed-off-by: Michal Simek --- Changes in v2: - Update commit message to remove Linux part - reported by Laurent Linux kernel throws "cacheinfo: Unable to detect cache hierarchy for CPU 0" warning when booting on zu+ Soc. To fix it add the L2 cache node and let each CPU point to it. --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index a961bb6f31ff..02bd75900238 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -33,6 +33,7 @@ cpu0: cpu@0 { operating-points-v2 = <&cpu_opp_table>; reg = <0x0>; cpu-idle-states = <&CPU_SLEEP_0>; + next-level-cache = <&L2>; }; cpu1: cpu@1 { @@ -42,6 +43,7 @@ cpu1: cpu@1 { reg = <0x1>; operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP_0>; + next-level-cache = <&L2>; }; cpu2: cpu@2 { @@ -51,6 +53,7 @@ cpu2: cpu@2 { reg = <0x2>; operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP_0>; + next-level-cache = <&L2>; }; cpu3: cpu@3 { @@ -60,6 +63,12 @@ cpu3: cpu@3 { reg = <0x3>; operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP_0>; + next-level-cache = <&L2>; + }; + + L2: l2-cache { + compatible = "cache"; + cache-level = <2>; }; idle-states {