Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1569535ybl; Fri, 13 Dec 2019 18:14:36 -0800 (PST) X-Google-Smtp-Source: APXvYqwDgvkHv6CGjT8cC4S4uIpj0tUWnO2lu7JZjXYF38Xs6Iih0r4FjgIynK71C3KWro5gtebb X-Received: by 2002:a05:6830:1e02:: with SMTP id s2mr17312425otr.168.1576289676735; Fri, 13 Dec 2019 18:14:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576289676; cv=none; d=google.com; s=arc-20160816; b=tAUDSGVNGGYSxQINsMZEsQhq+txMeS8nmkGE/6MWEx3zJKVON4FpLF5T+1FTvsDPNJ +Br+21zL305vkq6B3oVT58+20kwDreUGTSnc71bINtw+btE2SC8/xgqNJt7LKx4Zxk+D KC2b1mPzNcqnqgiWVUJ91gSLcbHlA3xaLu52lzsD5wBFIN7mJD3s0NaoqYRsP/gVbPcs FgOjfMvekeff/urPiWw0u7CsqHC1yaB6cqSRkFb1CUlbBgQIYpNVEsYkHAA8YZPeliC0 FnVU8qwDtOXiLnYcoVOR0TMjc77YP2goclbTI21AblkjWwY6+KwHvkkg6UD2vKnXC/+2 Kz3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:references:in-reply-to:to:cc:subject:from:date :dkim-signature; bh=LlBgPd4jKU/ivB4inJv2NdvJiBH02P7hq9N0GagI2Hc=; b=nwT8B1JSf7sMZBIfXcu58ELxHWgAE31B38cqy5nvcuCtfnQ7pKcvQ8RiJPTW0YUaly +rJMm06DgJFxQZM6650us0v8/vEGZnACP7yM7aJRKJRCs/18Cek+3vtCNByMCkz4lV1k ie6MA34w7t0xdxLzw3X/RCJnsdCzJB9qtBwhYQoOHRzUB7JTFYHODAD9tJ83hiSYae5V eEVA6rgsfX0jIDgKsu4tj07MeRheLsptdTvjlWJvHAQRPYT21RLQul/dQ1KsKO4O4Qmj KG1FU6k5KuL4z4Z2r5D7sDSF5OXXaO/GnuI6uyaBGJzV/g3VUgc6zZ3y1nGHcBsIGKJz qg8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BrGWiWYw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v21si5837908otn.8.2019.12.13.18.14.25; Fri, 13 Dec 2019 18:14:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BrGWiWYw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbfLNCNZ (ORCPT + 99 others); Fri, 13 Dec 2019 21:13:25 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:35528 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbfLNCNY (ORCPT ); Fri, 13 Dec 2019 21:13:24 -0500 Received: by mail-pj1-f67.google.com with SMTP id w23so493428pjd.2 for ; Fri, 13 Dec 2019 18:13:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:subject:cc:to:in-reply-to:references:message-id :mime-version:content-transfer-encoding; bh=LlBgPd4jKU/ivB4inJv2NdvJiBH02P7hq9N0GagI2Hc=; b=BrGWiWYwglLuch8nF6G6oTkqNFA41MXuP9p9xbZitOO4McQTuD58hZzHKG/a03AzkK X42N8H0YvBPayz8I6Uh0XriwvXTVsejiXkIozcO4JgDIOkGFu1bZem2KEuMyLKAsPLL0 DzzY0oiQTF62+chWS2BeE/+P/XE/6/9LJNDzBKLLn9r7XmqtsIE2a/xwU9ZhTEVmlLtY uVygOLJb1lOyo3gUbP24BGF05pbUAps3FPiYHRv9AFl1ek/+rbe3zhTz+ggEsoL8pc9O Hz1TZIeeuZ5mPgTIqEG6ASO3x/BqGvjVtQnGFYp6crcvwEIkSVcW+fl1vaNiskAok30F f/9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:cc:to:in-reply-to:references :message-id:mime-version:content-transfer-encoding; bh=LlBgPd4jKU/ivB4inJv2NdvJiBH02P7hq9N0GagI2Hc=; b=Ok8on3OkdQaOj8CtXvmwk/eZkP2SJBHbH/CG9XPGTDIATHaePTBAf6BRePQEttmZY7 0XwGHFWZ9/f03XvJDnUpZMv3z24U8/lcet3iUcqQ9DYLswzJaAS2glmRlD5/2EKZcJ7k ITaK5wQBq7l96rjLXEChB7JivwDxSdkK+PqDARRrEw2itWNlRnc+17mmy4iPojoiUILK R7taitK/omp4zLNcZUs13Yyte2F4XaLFG4uclMofhi23BAZPw3S+HSG/T3TzN908zHFO C0Xp0+n+QB9o3j7nYOd0ejUtTvzlwSvS6sNl/jd2fJkBG5MGOIjq8iikun9AirlctgCh eZiQ== X-Gm-Message-State: APjAAAU+NXkB9eqFs7YcyAJdgIyVz0c52fJM164VDSzDtPh1IYsqMyAW HYfDjjkP++J0NARQ6Wa/klcTUA== X-Received: by 2002:a17:902:b418:: with SMTP id x24mr2855620plr.85.1576289603789; Fri, 13 Dec 2019 18:13:23 -0800 (PST) Received: from localhost ([2620:0:1000:2514:7f69:cd98:a2a2:a03d]) by smtp.gmail.com with ESMTPSA id y62sm13929924pfg.45.2019.12.13.18.13.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2019 18:13:23 -0800 (PST) Date: Fri, 13 Dec 2019 18:13:23 -0800 (PST) X-Google-Original-Date: Fri, 13 Dec 2019 18:13:20 PST (-0800) From: Palmer Dabbelt X-Google-Original-From: Palmer Dabbelt Subject: Re: [PATCH 1/2] riscv: dts: Add DT support for SiFive L2 cache controller CC: robh+dt@kernel.org, mark.rutland@arm.com, Paul Walmsley , aou@eecs.berkeley.edu, bmeng.cn@gmail.com, allison@lohutok.net, alexios.zavras@intel.com, Atish Patra , tglx@linutronix.de, Greg KH , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, yash.shah@sifive.com To: yash.shah@sifive.com In-Reply-To: <1575890706-36162-2-git-send-email-yash.shah@sifive.com> References: <1575890706-36162-2-git-send-email-yash.shah@sifive.com> <1575890706-36162-1-git-send-email-yash.shah@sifive.com> Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 09 Dec 2019 03:25:05 PST (-0800), yash.shah@sifive.com wrote: > Add the L2 cache controller DT node in SiFive FU540 soc-specific DT file > > Signed-off-by: Yash Shah > --- > arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi > index afa43c7..812db02 100644 > --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi > +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi > @@ -19,6 +19,16 @@ > chosen { > }; > > + reserved-memory { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + l2_lim: lim@0x8000000 { > + reg = <0x0 0x8000000 0x0 0x2000000>; > + }; > + }; > + > cpus { > #address-cells = <1>; > #size-cells = <0>; > @@ -54,6 +64,7 @@ > reg = <1>; > riscv,isa = "rv64imafdc"; > tlb-split; > + next-level-cache = <&l2cache>; > cpu1_intc: interrupt-controller { > #interrupt-cells = <1>; > compatible = "riscv,cpu-intc"; > @@ -77,6 +88,7 @@ > reg = <2>; > riscv,isa = "rv64imafdc"; > tlb-split; > + next-level-cache = <&l2cache>; > cpu2_intc: interrupt-controller { > #interrupt-cells = <1>; > compatible = "riscv,cpu-intc"; > @@ -100,6 +112,7 @@ > reg = <3>; > riscv,isa = "rv64imafdc"; > tlb-split; > + next-level-cache = <&l2cache>; > cpu3_intc: interrupt-controller { > #interrupt-cells = <1>; > compatible = "riscv,cpu-intc"; > @@ -123,6 +136,7 @@ > reg = <4>; > riscv,isa = "rv64imafdc"; > tlb-split; > + next-level-cache = <&l2cache>; > cpu4_intc: interrupt-controller { > #interrupt-cells = <1>; > compatible = "riscv,cpu-intc"; > @@ -246,6 +260,18 @@ > #pwm-cells = <3>; > status = "disabled"; > }; > + l2cache: cache-controller@2010000 { > + compatible = "sifive,fu540-c000-ccache", "cache"; > + cache-block-size = <64>; > + cache-level = <2>; > + cache-sets = <1024>; > + cache-size = <2097152>; > + cache-unified; > + interrupt-parent = <&plic0>; > + interrupts = <1 2 3>; > + reg = <0x0 0x2010000 0x0 0x1000>; > + memory-region = <&l2_lim>; > + }; > > }; > }; Reviewed-by: Palmer Dabbelt