Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp290543rdb; Tue, 31 Oct 2023 07:38:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEXrBmWmeJdBaK6Yts8MkDuJ9L0JiWU9m2gw+A7zPvewknJyWnKtRr6nN7Me31vReb3j3+k X-Received: by 2002:a05:6a00:1488:b0:6bb:8982:411c with SMTP id v8-20020a056a00148800b006bb8982411cmr12848721pfu.8.1698763135460; Tue, 31 Oct 2023 07:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698763135; cv=none; d=google.com; s=arc-20160816; b=tsq/N4uFYtYzMfKhIKyM4LC4NSrUPUI5bkX+1OBVZP9SEqxuTTStmX8/lSsoxEaaM+ fm0PSTYLU0Ld76ErhuxmUqPLNgVFGbYeRzKYRpQOgp7gpK7S7kVj+/vRQZXn0vii99W/ BC3aQFhgkwfLjxJb33h3JzW1USw8W8gsbfERmL82QyYaTBLcomIms/AnfYujh7+Hj+G4 vvPy7ZhuO3zw8Q7EH1lZTzTGoa0YAcVuu77kPF9an/OCefuZTTNo5xynbVLwAyKyZ4E+ M0FBHLMSZf0x5E5RcJocv5sXTobIQ5PO68OF6+jc84JXDS2KVtJxDpdXVUn1VgZkNiNb mX7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:mime-version :references:in-reply-to:from:dkim-signature; bh=au17QPiJsjAocXmUfByZs1Bf5AaxfhY0/xgh3nLmqCY=; fh=L3sAS9rIAPetJrE918VRFcCQQAY8UAZiZXaHWXOVg+s=; b=tsV3Hst6Kxf6uW9p+BNL1+MzCPtdJQhTJmEnEeZv7YCvK1Jx9PRdysx3ca5cEHG2tY kNWWLEFU5SAtkH0B3ayBSJHf7qQ1AdhOFnVs1zTrhn4RlQX5qxHAU3+g8rOFI50ZxrmC ew2TlLqZpUsZSu62EFxWMIsWqnJmrtnGH8+Gomt3pCysgK+RCUKC2lN6G4eiaKC3StfQ ri09NMdR1UtK3dU+EIY+nNuSMNT5wicIMgi0soVaQCWC7o1U75q9dj3+oxXpWhrrP9Qf T+HxOSdKhRY0uGjDfZG3g0L8lIxp101rcUwgDYomwS3mgBuHZxsVW897MBlSXg5phoU+ nbMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=pkcgatLG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id g1-20020aa796a1000000b006be04dec663si1059990pfk.311.2023.10.31.07.38.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 07:38:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=pkcgatLG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id D91D6806E3D2; Tue, 31 Oct 2023 07:38:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344254AbjJaOiq (ORCPT + 99 others); Tue, 31 Oct 2023 10:38:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230405AbjJaOip (ORCPT ); Tue, 31 Oct 2023 10:38:45 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F07ADE4 for ; Tue, 31 Oct 2023 07:38:42 -0700 (PDT) Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) (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-0.canonical.com (Postfix) with ESMTPS id 1F77E4081E for ; Tue, 31 Oct 2023 14:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1698763114; bh=au17QPiJsjAocXmUfByZs1Bf5AaxfhY0/xgh3nLmqCY=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=pkcgatLGruVrFC1KZkHbr6lflUuZja1M2cmhmghsFWfFexjXw8OjGNaIL7OLp0I0L KgWIM0hyWO4buQ0XPAsN3WolZsFwAE3tsuBCSkE1oDmIgq8ic16lu1Qy6JuAcO2gqk TB9iRAWX6bbiqzNcELxBXwLxeK+2oknpCkQRMKB7+fLxluVwWuudyHlNEiJdtDMQLP D/0Q2qWGTnVwj54PWGUYbBba2gBqY0uRqiCoIBZo2ln1p2YynHjIzOPaCQVwwib1QB zMBFvMy8m0pGC5eTEE2lj8n7LY/x25nRP6Gu9a1ZN9UQJJVKFYuyQZazOyvtuvUGQ0 X8S+OeWOsv4pA== Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-670b675b2c5so38738836d6.0 for ; Tue, 31 Oct 2023 07:38:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698763109; x=1699367909; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=au17QPiJsjAocXmUfByZs1Bf5AaxfhY0/xgh3nLmqCY=; b=QpoIboJfJ/2/lcm0X/CVw4jZIWS4kKaM+9vepxcuDLGkFTsoEprVTa4ynXhhk1C8em nXcjEUpZxa3WF0mInOePamJWwSrGllhx2xpxI1YOgUEwb+Ygxrk7HsZRAcAsarbGANbP Z/u5PD6NFVKahQgWdCDp1xI2a6U7Kohcv/C3lARitXMrrk836b0BLAzzRCRtUwxt+NTo 7wSBibEoBhu5tIVAdgQGWvTjigndWl76LdlqjjcFkpZpRH3hJ+t+O7lLRWESXfV7TK2v CGtFcZLhtL2WX1uYnmVaGXc2HSof1BIQGprUlJ7zNbsia6hB6BkOYtRbUCy6/jD6YdmD uuQg== X-Gm-Message-State: AOJu0YwUACVValQbNguHui4F/UZw8zuqsc6GgS2rkqAi22pXb0n8xes8 0JxMAPSLMtqya3ODYtoUqg1musVnrX8QHi9jKHCUdSfa3X8EZnQEXt1AbdSpQtdQjz6DX4/iwgh Lqn5rfDvNfP6tmTlVVgEfDq7oZ8LdK06Ee9mF+0fMUA4arnfM0vfVKVAqqw== X-Received: by 2002:a05:622a:1009:b0:419:7623:ef6c with SMTP id d9-20020a05622a100900b004197623ef6cmr16897769qte.60.1698763109679; Tue, 31 Oct 2023 07:38:29 -0700 (PDT) X-Received: by 2002:a05:622a:1009:b0:419:7623:ef6c with SMTP id d9-20020a05622a100900b004197623ef6cmr16897742qte.60.1698763109425; Tue, 31 Oct 2023 07:38:29 -0700 (PDT) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Tue, 31 Oct 2023 07:38:29 -0700 From: Emil Renner Berthing In-Reply-To: <20231029042712.520010-8-cristian.ciocaltea@collabora.com> References: <20231029042712.520010-1-cristian.ciocaltea@collabora.com> <20231029042712.520010-8-cristian.ciocaltea@collabora.com> Mime-Version: 1.0 Date: Tue, 31 Oct 2023 07:38:29 -0700 Message-ID: Subject: Re: [PATCH v2 07/12] riscv: dts: starfive: jh7100: Add ccache DT node To: Cristian Ciocaltea , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Samin Guo , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Richard Cochran , Giuseppe Cavallaro Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.3 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 31 Oct 2023 07:38:53 -0700 (PDT) Cristian Ciocaltea wrote: > Provide a DT node for the SiFive Composable Cache controller found on > the StarFive JH7100 SoC. > > Note this is also used to support non-coherent DMA, via the > sifive,cache-ops cache flushing operations. This property is no longer needed: https://lore.kernel.org/linux-riscv/20231031141444.53426-1-emil.renner.berthing@canonical.com/ Also it would be nice to mention that these nodes are copied from my visionfive patches ;) > > Signed-off-by: Cristian Ciocaltea > --- > arch/riscv/boot/dts/starfive/jh7100.dtsi | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi b/arch/riscv/boot/dts/starfive/jh7100.dtsi > index 06bb157ce111..a8a5bb00b0d8 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", > @@ -147,6 +149,18 @@ soc { > dma-noncoherent; > ranges; > > + 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; > + sifive,cache-ops; > + }; > + > clint: clint@2000000 { > compatible = "starfive,jh7100-clint", "sifive,clint0"; > reg = <0x0 0x2000000 0x0 0x10000>; > -- > 2.42.0 >