Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10038023ybi; Wed, 24 Jul 2019 14:42:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPnADrt1N8cz71wxuYrxNqzYDfnKHFu1Gz5FwdNSVzWXf/nY7QoRduiUymRXJLVEeXpdui X-Received: by 2002:a63:5765:: with SMTP id h37mr50476738pgm.183.1564004523461; Wed, 24 Jul 2019 14:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564004523; cv=none; d=google.com; s=arc-20160816; b=CZEQxy1x8wJOhgCA8kTWZAHX7Jef3T/jqN/tDoL52uhrliJ8RGMg6Mns/nllDO8Fb5 3kSfoZrhPC8oLJBuiSDA0ktePxeQXHldryA8u+uWdebHQWoGJCw7DQNEXErwcSIWgj9F CWMXxDNmPXyeHkqpCa8rHFn5v2oe0gw35K0y8sZjP1tju0SzK6SxvvqKHLAddXUb9FTV DQ6P1Ew+86dw4jrHBwR2lOktl/9BD3pF5S5sI6b1fTz63VGIk0/pfA0cRzuaVQikWwlV 45IfdcPlYNbNLtkxdXudlyUgDdNv9rYnIFYyvdolmAoeUy1B1XiMfmUUwRJt4g3WwPSp Nu2Q== 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 :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=w7Ss6sBrQHMupDimQWwO95AVN89e91bf3yXBxmdm6jE=; b=CxySrma/ylyx9kO6gXrkzUHqAu6z1zoKu+xcF0NKgAMi32+c7BGgaFwij12sRcGi59 umot47g1dhs8os1/A2FrnNDyMuSb1VN/pBi4WiQ25pzrAPwh84lqrXq1ha3Nqvi+2f/3 w5/DHxYn0FE2Vmw5UQDS7TEZLbb5BMrYRyxolwzvA4HhPihQGrf5xQTKZOMBWQMGeexV 9NEKo4aTA1tVp0XEo0VYSWcbGJc18TbwnTJh1UgqWEkTg8qqg4R2noXRkKfJrVAPo0nP RFSPn+NX1tBnIwId2D7m12Q/NCMaDSIhO8k3pCv8kchIVOhTuBCjWyRwu3qF8dKMejqU Zh6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=HMBUm4xr; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d22si13066950pls.112.2019.07.24.14.41.48; Wed, 24 Jul 2019 14:42:03 -0700 (PDT) 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=fail header.i=@crapouillou.net header.s=mail header.b=HMBUm4xr; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727442AbfGXR7F (ORCPT + 99 others); Wed, 24 Jul 2019 13:59:05 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:56258 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbfGXR7C (ORCPT ); Wed, 24 Jul 2019 13:59:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1563991140; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w7Ss6sBrQHMupDimQWwO95AVN89e91bf3yXBxmdm6jE=; b=HMBUm4xr7tlEhCFt6PaX05OQdnJDOsbf+iiPbQaNv1FdSBMsmng4rvUDmmTlD+MLO72MTL DodO/fj1dgfM302yjBbdgbKtmEYQolb7xmcXXccoIG6t6rmVAze60NJwKwJ0DH9SD10Knd 8s105L0qFYLSPN33HG9+U4UziLhHpcs= Date: Wed, 24 Jul 2019 13:58:46 -0400 From: Paul Cercueil Subject: Re: [PATCH 2/2] MIPS: dts: ingenic: Add 'cpus' node To: Paul Burton Cc: Ralf Baechle , James Hogan , Rob Herring , Mark Rutland , od@zcrc.me, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <1563991126.1918.0@crapouillou.net> In-Reply-To: <20190722222858.4nmhyzi45dg7u67u@pburton-laptop> References: <20190722175548.18434-1-paul@crapouillou.net> <20190722175548.18434-2-paul@crapouillou.net> <20190722222858.4nmhyzi45dg7u67u@pburton-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le lun. 22 juil. 2019 =E0 18:28, Paul Burton a=20 =E9crit : > Hi Paul, >=20 > On Mon, Jul 22, 2019 at 01:55:48PM -0400, Paul Cercueil wrote: >> Add 'cpus' node to the jz4740.dtsi, jz4770.dtsi, jz4780.dtsi files. >=20 > What's the motivation for this? >=20 > If it's to silence the "cacheinfo: Unable to detect cache hierarchy" > messages, does commit b8bea8a5e5d9 ("mips: fix cacheinfo") from > mips-fixes work for you instead? >=20 > I'm not seeing much point listing cache setup in DT when we already > detect it from cop0 anyway. Ok, just drop this patchset then. >=20 > Thanks, > Paul >=20 >> Signed-off-by: Paul Cercueil >> --- >> arch/mips/boot/dts/ingenic/jz4740.dtsi | 19 +++++++++++ >> arch/mips/boot/dts/ingenic/jz4770.dtsi | 29 ++++++++++++++++ >> arch/mips/boot/dts/ingenic/jz4780.dtsi | 47=20 >> ++++++++++++++++++++++++++ >> 3 files changed, 95 insertions(+) >>=20 >> diff --git a/arch/mips/boot/dts/ingenic/jz4740.dtsi=20 >> b/arch/mips/boot/dts/ingenic/jz4740.dtsi >> index 2beb78a62b7d..14d777dae87d 100644 >> --- a/arch/mips/boot/dts/ingenic/jz4740.dtsi >> +++ b/arch/mips/boot/dts/ingenic/jz4740.dtsi >> @@ -6,6 +6,25 @@ >> #size-cells =3D <1>; >> compatible =3D "ingenic,jz4740"; >>=20 >> + cpus { >> + #address-cells =3D <1>; >> + #size-cells =3D <0>; >> + >> + cpu0: cpu@0 { >> + device_type =3D "cpu"; >> + compatible =3D "ingenic,xburst-d0"; >> + reg =3D <0>; >> + clocks =3D <&cgu JZ4740_CLK_CCLK>; >> + clock-names =3D "cpu"; >> + >> + i-cache-size =3D <0x4000>; >> + i-cache-block-size =3D <32>; >> + >> + d-cache-size =3D <0x4000>; >> + d-cache-block-size =3D <32>; >> + }; >> + }; >> + >> cpuintc: interrupt-controller { >> #address-cells =3D <0>; >> #interrupt-cells =3D <1>; >> diff --git a/arch/mips/boot/dts/ingenic/jz4770.dtsi=20 >> b/arch/mips/boot/dts/ingenic/jz4770.dtsi >> index 49ede6c14ff3..83ee526fbe10 100644 >> --- a/arch/mips/boot/dts/ingenic/jz4770.dtsi >> +++ b/arch/mips/boot/dts/ingenic/jz4770.dtsi >> @@ -7,6 +7,35 @@ >> #size-cells =3D <1>; >> compatible =3D "ingenic,jz4770"; >>=20 >> + cpus { >> + #address-cells =3D <1>; >> + #size-cells =3D <0>; >> + >> + cpu0: cpu@0 { >> + device_type =3D "cpu"; >> + compatible =3D "ingenic,xburst-d1"; >> + reg =3D <0>; >> + clocks =3D <&cgu JZ4770_CLK_CCLK>; >> + clock-names =3D "cpu"; >> + >> + i-cache-size =3D <0x4000>; >> + i-cache-block-size =3D <32>; >> + >> + d-cache-size =3D <0x4000>; >> + d-cache-block-size =3D <32>; >> + >> + next-level-cache =3D <&L2_cache>; >> + >> + L2_cache: cache-controller { >> + compatible =3D "cache"; >> + cache-unified; >> + cache-level =3D <2>; >> + cache-size =3D <0x40000>; >> + cache-block-size =3D <32>; >> + }; >> + }; >> + }; >> + >> cpuintc: interrupt-controller { >> #address-cells =3D <0>; >> #interrupt-cells =3D <1>; >> diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi=20 >> b/arch/mips/boot/dts/ingenic/jz4780.dtsi >> index b03cdec56de9..3339b37101c0 100644 >> --- a/arch/mips/boot/dts/ingenic/jz4780.dtsi >> +++ b/arch/mips/boot/dts/ingenic/jz4780.dtsi >> @@ -7,6 +7,53 @@ >> #size-cells =3D <1>; >> compatible =3D "ingenic,jz4780"; >>=20 >> + cpus { >> + #address-cells =3D <1>; >> + #size-cells =3D <0>; >> + >> + cpu0: cpu@0 { >> + device_type =3D "cpu"; >> + compatible =3D "ingenic,xburst-e1"; >> + reg =3D <0>; >> + >> + clocks =3D <&cgu JZ4780_CLK_CPU>; >> + clock-names =3D "cpu"; >> + >> + i-cache-size =3D <0x8000>; >> + i-cache-block-size =3D <32>; >> + >> + d-cache-size =3D <0x8000>; >> + d-cache-block-size =3D <32>; >> + >> + next-level-cache =3D <&L2_cache>; >> + >> + L2_cache: l2-cache { >> + compatible =3D "cache"; >> + cache-unified; >> + cache-level =3D <2>; >> + cache-size =3D <0x80000>; >> + cache-block-size =3D <32>; >> + }; >> + }; >> + >> + cpu1: cpu@1 { >> + device_type =3D "cpu"; >> + compatible =3D "ingenic,xburst-e1"; >> + reg =3D <1>; >> + >> + clocks =3D <&cgu JZ4780_CLK_CORE1>; >> + clock-names =3D "cpu"; >> + >> + i-cache-size =3D <0x8000>; >> + i-cache-block-size =3D <32>; >> + >> + d-cache-size =3D <0x8000>; >> + d-cache-block-size =3D <32>; >> + >> + next-level-cache =3D <&L2_cache>; >> + }; >> + }; >> + >> cpuintc: interrupt-controller { >> #address-cells =3D <0>; >> #interrupt-cells =3D <1>; >> -- >> 2.21.0.593.g511ec345e18 >>=20 =