Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp895504imw; Wed, 13 Jul 2022 09:53:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1squrWNkRa3K2niksmKkc2Z139QG2nvZRcOLqHqdNpw3JSdPwMIIivelAwBvVPCisGkSUdB X-Received: by 2002:a17:902:e94c:b0:16b:fe90:2f65 with SMTP id b12-20020a170902e94c00b0016bfe902f65mr4419128pll.111.1657731202454; Wed, 13 Jul 2022 09:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657731202; cv=none; d=google.com; s=arc-20160816; b=mfqd4aQuIbbdvxtNO+COiNpVf/j5rrsq+jfsuozLWfWzl97QYTVQsgZidu9VDSfbpG cF1HGHT4dwwzknpe3gTxdmYHXeRyqll7uO2dsbueUazaiLS3UNlpVtjq/CV8cn8txJZa CVdRHTKJWNEbs850gWvyXu9+eFStRKTZMLslcqxdnWwAIcyvP5S7Re6FY2sgt+Uui9Qh /sVgKveQk/TJ/WNFIAcEGv4/9KwUzxqKQm2sPRRGfxcmRhZMkNWTPeGRgaVerkuOdNXv 1w7Sgx4oEEwj+S9xwEJvvFZwEmzH9QhuZj2hYFN8qMlawTYWlJBIeqXj7cDCHfX96fp4 18rw== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=PrkuL4kmEzjEwwhvQ3MVrCcY+S+CsTX9vuq7g8VLfms=; b=Qg7vgNxfYOe3Y9n9n1i+y+yfKBJy5K0xlXcnlAYoGldTjktOqEyvmEzl9HU6b7f3eL cVS9GqVDjQEKJWBbtXvEzh7LUiAi5WkRcJYN5Jnnsn+z9+ZKWegyv/nNKFr2T/VwMIkl wYt9dvAGG5GvIVYEHzd0QB7pxrh7L4kgHFkD6lcOGnBwEAvCBzdHomwrniHKQ58n7UVN F2olLmKnKexcs0mMDsVz6/Hvu1hnuT6Zj7sBJlhHNvmsSOu+bXiuqaEZs2vKssZ8hxgs kkT1YdsnVqClt82nnB3w4bGB5lSnrEusaJolJRnLndXVxQx90m8WXO4BxCNHBdTLAiJT VyIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@aosc.io header.s=default header.b=LCrc1mO5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020a170903120d00b0016c3affe638si19474948plh.244.2022.07.13.09.53.10; Wed, 13 Jul 2022 09:53:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@aosc.io header.s=default header.b=LCrc1mO5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236898AbiGMPUd (ORCPT + 99 others); Wed, 13 Jul 2022 11:20:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236892AbiGMPUW (ORCPT ); Wed, 13 Jul 2022 11:20:22 -0400 Received: from relay-us1.mymailcheap.com (relay-us1.mymailcheap.com [51.81.35.219]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0740148E81 for ; Wed, 13 Jul 2022 08:20:21 -0700 (PDT) Received: from relay5.mymailcheap.com (relay5.mymailcheap.com [159.100.241.64]) by relay-us1.mymailcheap.com (Postfix) with ESMTPS id 1611220308 for ; Wed, 13 Jul 2022 15:20:20 +0000 (UTC) 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 X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_SORBS_HTTP, RCVD_IN_SORBS_SOCKS,SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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>; > > > +                               }; > > >                         }; > > >                 }; > > >         }; > > > >