From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A438CCA481 for ; Wed, 13 Jul 2022 15:20:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236499AbiGMPUU (ORCPT ); Wed, 13 Jul 2022 11:20:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236872AbiGMPUS (ORCPT ); Wed, 13 Jul 2022 11:20:18 -0400 X-Greylist: delayed 98542 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 13 Jul 2022 08:20:17 PDT Received: from relay5.mymailcheap.com (relay5.mymailcheap.com [159.100.241.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 994974504B for ; Wed, 13 Jul 2022 08:20:17 -0700 (PDT) Received: from relay4.mymailcheap.com (relay4.mymailcheap.com [137.74.80.155]) by relay5.mymailcheap.com (Postfix) with ESMTPS id E4F41200FE; Wed, 13 Jul 2022 15:20:15 +0000 (UTC) Received: from filter1.mymailcheap.com (filter1.mymailcheap.com [149.56.130.247]) by relay4.mymailcheap.com (Postfix) with ESMTPS id 582762002B; Wed, 13 Jul 2022 15:20:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by filter1.mymailcheap.com (Postfix) with ESMTP id A7FD62A37A; Wed, 13 Jul 2022 15:20:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at filter1.mymailcheap.com Received: from filter1.mymailcheap.com ([127.0.0.1]) by localhost (filter1.mymailcheap.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Mjtnp9Yh_b5A; Wed, 13 Jul 2022 15:20:11 +0000 (UTC) Received: from mail20.mymailcheap.com (mail20.mymailcheap.com [51.83.111.147]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by filter1.mymailcheap.com (Postfix) with ESMTPS; Wed, 13 Jul 2022 15:20:11 +0000 (UTC) Received: from edelgard.icenowy.me (unknown [59.41.163.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail20.mymailcheap.com (Postfix) with ESMTPSA id 0FC58401DE; Wed, 13 Jul 2022 15:20:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aosc.io; s=default; t=1657725611; bh=+yBjiaaM+sNFe9mQaPmsE4kvOTzDSDgxYxxc0Iq+MY8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=LCrc1mO5Ay1rRkF9QUGl4hQizZ5rOnedJWUoAOdi3X+2wmQ49ho4zjByDepWWvL/M m9R+2QlpsED2A+6C+02bn6FrwdibSyylTreJ3D/F8rSQBjEfds807pLbIz4fSLr33P /HCg4HifkboydGfuh0ZYDWtag6yqzgYqTUy306ns= Message-ID: Subject: Re: [PATCH v1 2/2] riscv: dts: starfive: add the missing monitor core From: Icenowy Zheng To: Conor.Dooley@microchip.com, kernel@esmil.dk, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, anup@brainfault.org Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Date: Wed, 13 Jul 2022 23:20:03 +0800 In-Reply-To: <224a7ec2-62ca-a8a5-ff36-37de4186e05e@microchip.com> References: <20220711184325.1367393-1-mail@conchuod.ie> <20220711184325.1367393-3-mail@conchuod.ie> <2303fc91e5110f22fc9ea6008fa4bbc77c1bdb13.camel@aosc.io> <224a7ec2-62ca-a8a5-ff36-37de4186e05e@microchip.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 在 2022-07-13星期三的 15:16 +0000,Conor.Dooley@microchip.com写道: > On 13/07/2022 16:15, Icenowy Zheng wrote: > > 在 2022-07-11星期一的 19:43 +0100,Conor Dooley写道: > > > From: Conor Dooley > > > > > > The JH7100 has a 32 bit monitor core that is missing from the > > > device > > > tree. Add it (and its cpu-map entry) to more accurately reflect > > > the > > > actual topology of the SoC. > > > > > > Signed-off-by: Conor Dooley > > > --- > > >  arch/riscv/boot/dts/starfive/jh7100.dtsi | 21 > > > +++++++++++++++++++++ > > >  1 file changed, 21 insertions(+) > > > > > > diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi > > > b/arch/riscv/boot/dts/starfive/jh7100.dtsi > > > index c617a61e26e2..92fce5b66d3d 100644 > > > --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi > > > +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi > > > @@ -67,6 +67,23 @@ cpu1_intc: interrupt-controller { > > >                         }; > > >                 }; > > >   > > > +               E24: cpu@2 { > > > +                       compatible = "sifive,e24", "riscv"; > > > > Oh, by the way "sifive,e24" is not a documented compatible in the > > DT > > binding. > > > > If you really want to add it here, you need to add the compatible > > string to the DT binding first. > > Check patch 1/2. Oh sorry I forgot this. Nevermind. > > > > > > +                       reg = <2>; > > > +                       device_type = "cpu"; > > > +                       i-cache-block-size = <32>; > > > +                       i-cache-sets = <256>; > > > +                       i-cache-size = <16384>; > > > +                       riscv,isa = "rv32imafc"; > > > +                       status = "disabled"; > > > + > > > +                       cpu2_intc: interrupt-controller { > > > +                               compatible = "riscv,cpu-intc"; > > > +                               interrupt-controller; > > > +                               #interrupt-cells = <1>; > > > +                       }; > > > +               }; > > > + > > >                 cpu-map { > > >                         cluster0 { > > >                                 core0 { > > > @@ -76,6 +93,10 @@ core0 { > > >                                 core1 { > > >                                         cpu = <&U74_1>; > > >                                 }; > > > + > > > +                               core2 { > > > +                                       cpu = <&E24>; > > > +                               }; > > >                         }; > > >                 }; > > >         }; > > > >