Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2678464rdh; Sun, 26 Nov 2023 15:28:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdddDlPYXBu6s9n2kuGDRzeXAcGnhvCnwV1gl9ooqGQFLl/kOiLJQqeJXCOIs1PNzMHJNB X-Received: by 2002:a17:903:244e:b0:1cf:677d:964d with SMTP id l14-20020a170903244e00b001cf677d964dmr9510762pls.25.1701041330609; Sun, 26 Nov 2023 15:28:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701041330; cv=none; d=google.com; s=arc-20160816; b=drnIRdhuxQTNH+Urfa5Vdsd1Sgn38daW4XfUKnn6AkTv7/PNRcsUYcY9lreolpAId2 obm3od6HywgiIu7GsMnBWhQIhDEetrgQS0WKwwoVzdddzBj1woJWZ1H2eVmoS9wH1Or0 WSxNaf2WpA0k+YUPsUHz6qxi1PyBoK4cBTcPj3HkPb/7WubKlSpN2LsemOwoswpBVU0f ys9XniBgJe6wOd+y9WPm33ciV6fDKlgEtxL41gXn1NTk1BGD1IgibCHa7LnP+Dr1tBI5 1DQxE6Ip6lCnHoJXmiSvYkIqISNoAXQOKpkmoQI79aPpYVzxiW1NjKQuN0m4W/Hch+rl 4yMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ooP6PggRSm/MvoVaaWC7Qd0T8g9hHs1exEm2Idgm5Vk=; fh=IHo4JbcU5Gy17m5IMbnjDsQH8GbpIaNOV6B0kJ1IGNQ=; b=keo1GdjCFMeSuE4hpdSb5vBRjk97Pw4Dsv6sEKHz12f2bAfho9uBgTMq/nku3YvbNa yDrIygZSR0+KZyRhPPKj78GJb5mGqULpxhwwvbcAs7tBg/xNDK4/ukcq0hPA3pKsQIuT u0+cSwELrQ3OTzDg2QCkw8oOiqnS58Z3kJDmU+3OElGL6W1cs5WhpRQ6WjyDdC2wi0Qe 3zjupgK3uWTntDz8lyrkb431+FXLXxgG+IaKtUopjlS/ILt25NvHIuGSYYXI62k3g3pj b3Hr/8Mn7nRDxRwDyV+ZjoNoQy2YJPsZSKpm3YVFJnd5GCj5L9D280djrA+Be5QhJa71 6nlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=KZi+788E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id iz15-20020a170902ef8f00b001cfb4f3da6csi4042267plb.44.2023.11.26.15.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 15:28:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=KZi+788E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 95F8A8084943; Sun, 26 Nov 2023 15:28:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231386AbjKZX2b (ORCPT + 99 others); Sun, 26 Nov 2023 18:28:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjKZX2Y (ORCPT ); Sun, 26 Nov 2023 18:28:24 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CB1B134 for ; Sun, 26 Nov 2023 15:28:28 -0800 (PST) Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 8C27E40C4E for ; Sun, 26 Nov 2023 23:28:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1701041306; bh=ooP6PggRSm/MvoVaaWC7Qd0T8g9hHs1exEm2Idgm5Vk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KZi+788ElKxojDUJyanMurB8Egk886Q5oA5ghrIuimxfijvBMNwS8slj1uSUYxZ0j 4l/l9RweaCWZxfCovcDnVGLr2ej8UEdSNP4D31AGpnTmrazCPXMgCx6n6PL3gbX80c Pxv1OLkLCUyDf6Pc1oS8Jk7bZ8kM3nabhRiKeYjJqy4nkv4fNnqlPzo23VMqbQNrV+ B9pXjr7tzFSud4ySabUiGXxsQgPDgoh7zeqfgR8zTZIu3NMrEsClOTmHd6OWZB7NtA eM23eq18Gq1rbKWoEPe9SQ04jQCZ/bqvber1NEhss2OqnajaNs4LCIrdRWH9nZ+jdk WWeSV4j5mAEEw== Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-5c27822f1b6so3518169a12.2 for ; Sun, 26 Nov 2023 15:28:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701041305; x=1701646105; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ooP6PggRSm/MvoVaaWC7Qd0T8g9hHs1exEm2Idgm5Vk=; b=bkBRhdGOk9tmClhshsNjwiAxPnoVvKAZdKRIgu04FwQ1sxQX/O40csrdrYZS/FXfd6 L0EvbAbShdXL2I6QoQqLFC5q4rbKbBQ3Yf6Z9FVItAUaPKE+BLU5/Mk3qg7qh+n1S5h1 kaBgjWe/H8anrZRR3CqSjm6ICzXUp2EX/HaGBR0kqusEvjBhSEGfr0yTYst0z5FM6ZbN 1PbSqvP0LBJ6Iv8x15QCn/teP0VvbvWXMrvKbGrysuhURrd99mss1gubO3Ts5n61uSp8 GkDNk1BpQRSaBve07FE9KLfDqodZMvmBr0uyxlVqBPXn0s+7L5LouM9JMin0fFyQjj7J Rblw== X-Gm-Message-State: AOJu0YxDKRhSBelVm2WUFtgMCTTrcz0JD+4jRMjn/VEAoH23Yt7LrXW2 MwepLegWo7MTSbrnMfBG9V5DZsFO7O9E84lOSuyoanCYBbVrs1EgsGNKXZKbvu8C3LlQwQiBO+G cUAlJDjB0t6UFQQrYPk5Q7BS8he1IKS2lJGbNmifydQ== X-Received: by 2002:a05:6a20:d396:b0:163:5bfd:ae5b with SMTP id iq22-20020a056a20d39600b001635bfdae5bmr10808814pzb.15.1701041305141; Sun, 26 Nov 2023 15:28:25 -0800 (PST) X-Received: by 2002:a05:6a20:d396:b0:163:5bfd:ae5b with SMTP id iq22-20020a056a20d39600b001635bfdae5bmr10808799pzb.15.1701041304797; Sun, 26 Nov 2023 15:28:24 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id y10-20020a170902b48a00b001cfb52ebffesm3123853plr.147.2023.11.26.15.28.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 15:28:24 -0800 (PST) From: Emil Renner Berthing To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Paul Walmsley , Palmer Dabbelt , Emil Renner Berthing , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Cristian Ciocaltea Subject: [PATCH v1 4/8] riscv: dts: starfive: Add JH7100 cache controller Date: Mon, 27 Nov 2023 00:27:42 +0100 Message-Id: <20231126232746.264302-5-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231126232746.264302-1-emil.renner.berthing@canonical.com> References: <20231126232746.264302-1-emil.renner.berthing@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 26 Nov 2023 15:28:47 -0800 (PST) The StarFive JH7100 SoC also features the SiFive L2 cache controller. This SoC has non-coherent DMAs, but predate the RISC-V Zicbom extension, so we need the sifive,cache-ops property to use the cache controller for cache flushing operations instead. Signed-off-by: Emil Renner Berthing --- arch/riscv/boot/dts/starfive/jh7100.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi b/arch/riscv/boot/dts/starfive/jh7100.dtsi index 7c1009428c1f..0cafac437746 100644 --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi @@ -32,6 +32,7 @@ U74_0: cpu@0 { i-tlb-sets = <1>; i-tlb-size = <32>; mmu-type = "riscv,sv39"; + next-level-cache = <&ccache>; riscv,isa = "rv64imafdc"; riscv,isa-base = "rv64i"; riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr", @@ -60,6 +61,7 @@ U74_1: cpu@1 { i-tlb-sets = <1>; i-tlb-size = <32>; mmu-type = "riscv,sv39"; + next-level-cache = <&ccache>; riscv,isa = "rv64imafdc"; riscv,isa-base = "rv64i"; riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "zicntr", "zicsr", @@ -154,6 +156,17 @@ clint: clint@2000000 { <&cpu1_intc 3>, <&cpu1_intc 7>; }; + ccache: cache-controller@2010000 { + compatible = "starfive,jh7100-ccache", "sifive,ccache0", "cache"; + reg = <0x0 0x2010000 0x0 0x1000>; + interrupts = <128>, <130>, <131>, <129>; + cache-block-size = <64>; + cache-level = <2>; + cache-sets = <2048>; + cache-size = <2097152>; + cache-unified; + }; + plic: interrupt-controller@c000000 { compatible = "starfive,jh7100-plic", "sifive,plic-1.0.0"; reg = <0x0 0xc000000 0x0 0x4000000>; -- 2.40.1