Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3424057pxb; Wed, 13 Oct 2021 05:52:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw46C/XoIHY07KLX+BGl4P6r2nqKpMVNwOyNgj6RMDLIKZQi3gNy/RnYuLYEK0Eja6J01Sd X-Received: by 2002:a05:6402:5209:: with SMTP id s9mr9305782edd.250.1634129538392; Wed, 13 Oct 2021 05:52:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634129538; cv=none; d=google.com; s=arc-20160816; b=OzI55M6tP4d87P2eYi6FUXmu4LQ/JbepCil3KIDxN8hLYXxz+HTR2cHFtk0XKcbXDG s4G7vPXW2plqGKOP+MFXRDKnDB4vFME/xU+0uybaDdWDIRwV9RC47At6VgMG4lfMqhho pAJKZVHbBj8g7Q3wD+sVZ/0wGGaL2cyJVi4HrkykX3XDXI0tZZeTgpioj0uo4BNqCvYd 5n3iukJOdMKkeiSmIIdI1d7dcNoqXthm8kugMVTxSF57aysYunb765PZPLnNKDkftQtE lZh3wXl76ljUaSxGxmwxeMD1tX6blGPjkuLQMQyJnycBpIV/ygsK6pnyA9q0V3SVYNa5 CH5g== 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=/qrRcHyMR6kz483YLc/fKE8fkuRC39LsXCMJkXJnIHw=; b=xysSCO1Yx/5863CxVT9y4E+L/+oKyZMo/dHMOf5NpS960YLkJqNd+bdPRziMhEzoxK Ee6Wbu/O3xRlTufFClxRWDw1UK4GmXhd1zwoQZLEMYQV74Lb72QY2MEqx0TlrrvsH7lz cz40JG3FYTvtMhGUwE2riPJyItFfyfgMpHRusSJHRAtn/g+lg4iaBhzsycr9nZh7Dkax yC0zH2UKhKhKlOL81i+f+8D36H3693XuGmOrpSL2Ca29X6aIzB3NglkZsNjtA+FZU7Jh CzVKXoAjE3zMFe9KUBUfZJfECO33IrLZdM9VOpil1luZ3ogREPMB/h67UFuw7d6avhnG avzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ounni1CZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si19909020ejh.79.2021.10.13.05.51.54; Wed, 13 Oct 2021 05:52:18 -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=@kernel.org header.s=k20201202 header.b=Ounni1CZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233247AbhJMMwO (ORCPT + 99 others); Wed, 13 Oct 2021 08:52:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:51252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233204AbhJMMwM (ORCPT ); Wed, 13 Oct 2021 08:52:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 65E1F61108 for ; Wed, 13 Oct 2021 12:50:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634129409; bh=J8g0tilzDKDby65Hj+Esonf9qYC68SF2NllkOVPodHI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Ounni1CZ7mb3RKxYgPL+4J3upP35LrQNOjvT/tm80YmXedHoZ/RJV01CDPMnsITHx XZuOBDU5e+LCCvDF8pGLtaBV5PNoxLN3dXzIU5HEsZfOVAPxI1c0NXUS/Y1ylvBXMR cg4upO5gjW8dB/F/q/PftevcjyYCAmhdNgCLKOVKoiVCiEcS0993yV+5mTpW46J2fm BhBne/YZNbkrDZ854ZiHPS9280uG9aZz0TLU1fCpMNdwe+u4kAITjZv23tv2aKwXw1 JnpEXHrrjcs+/QN99rokkFO3dV94qmM7l6Pz8Cfq5XQQNaRrCREAVVKP78HCuuuM/P 8ciu1R8j/JwNA== Received: by mail-ua1-f52.google.com with SMTP id h19so4197800uax.5 for ; Wed, 13 Oct 2021 05:50:09 -0700 (PDT) X-Gm-Message-State: AOAM530jZ+FK6Eu97xZ5tU+yz2uwuR1MhviemPzEeEqmMayRnq1SA6Zo 04rh4xIw2CjNU7XkBApJ50B9bZa6VFK4zYMXtpQ= X-Received: by 2002:a05:6102:537:: with SMTP id m23mr1535407vsa.43.1634129408301; Wed, 13 Oct 2021 05:50:08 -0700 (PDT) MIME-Version: 1.0 References: <20211013012149.2834212-1-guoren@kernel.org> <4245323.jvX0RauA9x@diego> <4027415.QZv1u5a1DM@diego> In-Reply-To: <4027415.QZv1u5a1DM@diego> From: Guo Ren Date: Wed, 13 Oct 2021 20:49:57 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V3 1/2] dt-bindings: update riscv plic compatible string To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: Anup Patel , 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 5:43 PM Heiko St=C3=BCbner wrote: > > Am Mittwoch, 13. Oktober 2021, 11:19:53 CEST schrieb Anup Patel: > > On Wed, Oct 13, 2021 at 2:44 PM Heiko St=C3=BCbner wr= ote: > > > > > > Am Mittwoch, 13. Oktober 2021, 11:11:26 CEST schrieb Anup Patel: > > > > 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-cont= roller/sifive,plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt= -controller/sifive,plic-1.0.0.yaml > > > > > > > index 08d5a57ce00f..82629832e5a5 100644 > > > > > > > --- a/Documentation/devicetree/bindings/interrupt-controller/= sifive,plic-1.0.0.yaml > > > > > > > +++ b/Documentation/devicetree/bindings/interrupt-controller/= sifive,plic-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(clai= m), so it needn't > > > > > > > + mask/unmask which needed in RISC-V PLIC. When in IRQS_ONES= HOT & IRQCHIP_EOI_THREADED > > > > > > > + path, unnecessary mask operation would cause a blocking ir= q bug in thead,c900-plic. > > > > > > > + Because when IRQ is disabled in c900, writel(hwirq, claim)= would be 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. > > > > > > What I meant was that the soc-specific string should name the > > > actual SoC (c906, c910) and not some imaginary chip ;-) > > > > Ahh, yes. It should be an actual soc name in the compatible > > string. > > > > For example, SiFive uses "fu540" string to identify some of the > > devices on both SiFive unleashed and SiFive unmatched boards. > > > > I was under the impression that "c900" is an actual SoC name. > > > > Regards, > > Anup > > > > > > > > See for example mali gpu bindings for a similar reference > > > in devicetree/bindings/gpu/arm,mali-bifrost.yaml . > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > - 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 > > isn't XuanTie the series containing the c906 and c910? XuanTie contain two CPU series: riscv: c906, c910 csky: c807, c810, c860 > So maybe > thead,xuantie-plic > for the spec compatible. > > So doing in full > compatible =3D "thead,c906-plic", "thead,xuantie-plic" How about: compatible =3D "allwinner,d1-plic", "thead,c900-plic" > > > Heiko > > --=20 Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/