Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3256790pxb; Wed, 13 Oct 2021 02:13:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9yFmFJtNIAzrpd3nkUgqBD8LdCBJxCLWQWzhpoALcl2eS3O983ONk7WCxi0Uazfu2iLAg X-Received: by 2002:a17:90b:1e01:: with SMTP id pg1mr12060480pjb.81.1634116390450; Wed, 13 Oct 2021 02:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634116390; cv=none; d=google.com; s=arc-20160816; b=ffG6NFCBUgHIYQpgyVOcv2RMIDCb4QSwCkrBdQcFJYhrPs+UD8MtTOAlLMJMy4plJm 4BUC58aNNZoKWpX5kEiq2gJpr7I5e1S3jWoCuVaBFDC2y0WL2lgbL0zcqKTA2iQlWDH9 Kz3MHqrr5bNFPT7jaZwJm8utuwVLC5ZbNriqpYHDGVku/2MBb6CtlZbO7NM20Uhc5HNX W5lsgvUUkmhlGBosU7X7eyXpj9EV4bp43iWFPPmubTdI8iLg1ZwrlzuFWS5H3ijARRw7 lAg/tOiQWsHe0MvHjr8FXQjPAhi1Cj2HsnuaMSjHh3sRym5HUzhZct7SZYw5E5HfTiZ0 GMQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=PV4TDA9Wg4a3/4+lvLr8uQ2IGR+/8BcN/iS1LNsPzfE=; b=kvzRMXhtSq+VjtvFe4h5k0NU9upogg4MRogftM8mGzmQZy4iQeWH0JpPEmFRUOzbZA nAvHh8DyI63qtQIJSeGTasATVVz9XGhjMn403ZdlRvAkgx4V5jT75FpElveHf8QBZXv5 7Kia9xcfW9KZq7017Stej5hmuNw5ZXZNIIJH2MQwjJzs3sWTqGS9LOKKuwk0NYBDdBXT pVB0ztzKh75j4V66lXdj4jGNzqOBgYYn5dvAgUE1FZnBatQaK905zvxBeJdEIycv6Uau 4F2/lvwblXRgfxPnnBMdMzUSIcdtpUdU1HvMB3THeytk7Vj0At1KyYJteqbDwFLp3sEn vs7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=4cWkdw4C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s7si18769456plr.455.2021.10.13.02.12.55; Wed, 13 Oct 2021 02:13:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=4cWkdw4C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239080AbhJMJNn (ORCPT + 99 others); Wed, 13 Oct 2021 05:13:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239065AbhJMJNm (ORCPT ); Wed, 13 Oct 2021 05:13:42 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54577C061570 for ; Wed, 13 Oct 2021 02:11:39 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id t2so5919074wrb.8 for ; Wed, 13 Oct 2021 02:11:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=PV4TDA9Wg4a3/4+lvLr8uQ2IGR+/8BcN/iS1LNsPzfE=; b=4cWkdw4CWnHs6G7XTSrFY0htwwCVCl8pqcD74gAXvrbpdAaxoIEYgALY2LK9WjZzJH V+0gi186XUglWAfVoTSWZVZlGQiBhOJDJmvuKd/vl2gyWCMY7Mede+Nt0p1IG5ND9j2y MA+rynIjYs1BP+4dsgA7GNVmvifaiB3O+6IFGdYV523C1GewdGkP1z0CrmjMuiJKv3uk TPJMtDnORLiWkJb/wGgv9FB1n/13IYx3t7Q9V+XaMFIniQkYEKNf4tcKWoNKpZa+0+QC Y+/eKYV5A/5T/Ye3+X3sWp5yVRxkR7G8dXtAi9fkxxZUY17hpwCZPPeLnF08baaJ0zeU GTgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=PV4TDA9Wg4a3/4+lvLr8uQ2IGR+/8BcN/iS1LNsPzfE=; b=nkkpumfwDa5MGXaISTb/bJDMZuPVoL7R0mGn+WGCq5cu+izmsBGqPQT6CdoZjZcHJk ZMzXKbHx79C0K64Y8uCwq5Qfg2Tr57JhMRsn+bjW3NydDJfYIt2+rW04c5pV3iSobdsk qkenTSgAvowPNNX5wi0PpzzSA7j98IwfwBS113sJyIFXoXb14j3dgy9QUuKwaSI7YHAI 9PmlZPxQB4KT5cpeuF1cIdzewUHKd+eWLxwI8xHnhqUDVXQkp2gaVE3W04cVDKwNGdSK oDDmTDSUpRDaZOg1Ch23OifoTsM7GRab5logcnuDOFlKm6xLsTVVfFyK+oVT0uINkz/Q t/Gg== X-Gm-Message-State: AOAM5300m1F6FY9UOxDzYioBiaXmFOVkBIB/jMdFzFZzY1mlriO6Ed85 SccUAseq0303fAPOurl0XhdobodCYjd8I0Zd8yPN6w== X-Received: by 2002:a7b:cc14:: with SMTP id f20mr11281690wmh.137.1634116297799; Wed, 13 Oct 2021 02:11:37 -0700 (PDT) MIME-Version: 1.0 References: <20211013012149.2834212-1-guoren@kernel.org> <4039032.XOxOlHldtI@diego> In-Reply-To: <4039032.XOxOlHldtI@diego> From: Anup Patel Date: Wed, 13 Oct 2021 14:41:26 +0530 Message-ID: Subject: Re: [PATCH V3 1/2] dt-bindings: update riscv plic compatible string To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: Guo Ren , Atish Patra , Marc Zyngier , Thomas Gleixner , Palmer Dabbelt , "linux-kernel@vger.kernel.org List" , linux-riscv , Guo Ren , Rob Herring , Palmer Dabbelt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 13, 2021 at 2:27 PM Heiko St=C3=BCbner wrote: > > Hi Anup, > > Am Mittwoch, 13. Oktober 2021, 07:11:46 CEST schrieb Anup Patel: > > On Wed, Oct 13, 2021 at 6:52 AM wrote: > > > > > > From: Guo Ren > > > > > > Add the compatible string "thead,c900-plic" to the riscv plic > > > bindings to support SOCs with thead,c9xx processor cores. > > > > > > Signed-off-by: Guo Ren > > > Cc: Rob Herring > > > Cc: Palmer Dabbelt > > > Cc: Anup Patel > > > Cc: Atish Patra > > > > > > --- > > > > > > Changes since V3: > > > - Rename "c9xx" to "c900" > > > - Add thead,c900-plic in the description section > > > --- > > > .../bindings/interrupt-controller/sifive,plic-1.0.0.yaml | 6 ++++= ++ > > > 1 file changed, 6 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/s= ifive,plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-control= ler/sifive,plic-1.0.0.yaml > > > index 08d5a57ce00f..82629832e5a5 100644 > > > --- a/Documentation/devicetree/bindings/interrupt-controller/sifive,p= lic-1.0.0.yaml > > > +++ b/Documentation/devicetree/bindings/interrupt-controller/sifive,p= lic-1.0.0.yaml > > > @@ -35,6 +35,11 @@ description: > > > contains a specific memory layout, which is documented in chapter = 8 of the > > > SiFive U5 Coreplex Series Manual . > > > > > > + While the "thead,c900-plic" would mask IRQ with readl(claim), so i= t needn't > > > + mask/unmask which needed in RISC-V PLIC. When in IRQS_ONESHOT & IR= QCHIP_EOI_THREADED > > > + path, unnecessary mask operation would cause a blocking irq bug in= thead,c900-plic. > > > + Because when IRQ is disabled in c900, writel(hwirq, claim) would b= e invalid. > > > > This is a totally incorrect description of the errata required for C9xx= PLIC. > > > > Please don't project non-compliance as a feature of C9xx PLIC. > > > > > + > > > maintainers: > > > - Sagar Kadam > > > - Paul Walmsley > > > @@ -46,6 +51,7 @@ properties: > > > - enum: > > > - sifive,fu540-c000-plic > > > - canaan,k210-plic > > > + - thead,c900-plic > > we still want specific SoC names in the compatible, the "c900" > is still a sort-of placeholder. Yes, we need "c900" compatible string as well. The "c9xx" compatible string is for the custom PLIC spec followed by T-HEAD. > > > > > - const: sifive,plic-1.0.0 > > > > The PLIC DT node requires two compatible string: > > , > > > > The C9xx PLIC is not RISC-V PLIC so, the DT node should > > be: "thead,c900-plic", "thead,c9xx-plic" > > > > You need to change "- const: sifive,plic-1.0.0" to > > - enum: > > - sifive,plic-1.0.0 > > - thead,c9xx-plic > > Regards, Anup