Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3413012pxb; Wed, 13 Oct 2021 05:38:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjUuz/WPMPSHAlVliQPMRXQ4olHlzYQKJvfU7p6SZoO5fDRiRhizDSyYRyRt9Crog45Hdt X-Received: by 2002:a17:902:a613:b0:13d:d95c:c892 with SMTP id u19-20020a170902a61300b0013dd95cc892mr35350315plq.35.1634128686256; Wed, 13 Oct 2021 05:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634128686; cv=none; d=google.com; s=arc-20160816; b=yMpSqtO1E4jQsqBBgu2WH8rw5Vn7pLQK28DPGiF1Gs4pE+6iGhq45EjHPm4BEN6yDO 9CafRgnek2pQxL8muv5T3DRjnTjhQ/rYo8q50V0R0e7OP9/wQwjEd1MKyee/IvStj9Up +oiC3wo7oywoyuBOuZm/TrhmsKVxXxl8CzWO0yEN3nuVZhw+TfKyWFAOsGJJ0N32Bnd8 YMY7rG9akEQhtp1OQleoRuutXmAfHSyugV5PsyAcb0bVf8BeDb4EJ40KgPtBxIu1+SKr laqSOMNN7XWvgM7NNzAL7aGerpjlF0N1IuoeUyi6pQBKvjuNf2cnFM3k4r1HZlGdaGNR E3IQ== 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=9wJ7tP+97dEvE4VfkCLgfljfvzDwr3GpcOhkPgXFDwc=; b=pWJ+CePJ3gsNQ1Yx7NptlvAzIBApeyauC949FkDuB2bFIC02ybwbIEZFWZdLYeTViV YiAWbLkwxeSnR2O5hn6Jlus4H37VVJtn+uoBcdWD0bTcJT1hrnYk8TvuvhBWrLmfPOfQ oaicNc+1Usik13bu/14UjVfWhe305xAxTcoxYYcU5z4XdzxSolpnSdRJ62/jEVhCR1Sd g4Fft5tXBH4k2qOFqnyZm7sa9SPbbmuQjMO7llH3BG1suXuXDAUA6SeDo1O4U7KQvi/t iUlyrX1tPSHfmgFn4QFjvYyyicLECGQbdJ8YM2sb9OKydqtN0lm6bX/4tIapgnonlMuS JO7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K9t6NAqd; 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 w4si17512181pll.312.2021.10.13.05.37.52; Wed, 13 Oct 2021 05:38:06 -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=K9t6NAqd; 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 S233368AbhJMMgs (ORCPT + 99 others); Wed, 13 Oct 2021 08:36:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:39370 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231145AbhJMMgr (ORCPT ); Wed, 13 Oct 2021 08:36:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9B81860EBB for ; Wed, 13 Oct 2021 12:34:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634128484; bh=JlEDbRIR5mybHqyx6SQLCFaW8BoVnGveOk9R4ZFD7zM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=K9t6NAqdOEGZzMasWIlRt5fOEnzL+LmFFNeDVs21urg2VMs97F3D/NOu0l1x7Ohvl cCgNe4QJYOEgIt5UTstaCvU1AYpln/4twGOILue/3NOT4rQ963KsfdYo4Ri1Zcge9T 4IfpGMouomb+OykZNrTZmL/kfHMk4vxc7zMt5k25f/Q30b7hUifeSGdjNEHkBGfapj aWKo2p3fWPgJiilcOt+kW8ZwuSFYdo6jHhSjxLvQLIqrHpzcWP0tNp7hFuxtFkAUYe eSlRF7GCD6guQIz8+kzxhYI/8GtKgWMIO2QF/urtCv/F0US8hjMd+5ozsJqx17fVhy fAj0w4v6OmWaw== Received: by mail-vk1-f180.google.com with SMTP id 34so1713169vkl.13 for ; Wed, 13 Oct 2021 05:34:44 -0700 (PDT) X-Gm-Message-State: AOAM532d/LXqx8LaqBMAOEsSUPEx4u4Ozph4LZYBbmvklqhN6/zx+C6r PKUO/9upk6Idq7dg/ZSPq2idc63FO8hQQsTUQvg= X-Received: by 2002:a1f:1844:: with SMTP id 65mr32743708vky.3.1634128483719; Wed, 13 Oct 2021 05:34:43 -0700 (PDT) MIME-Version: 1.0 References: <20211013012149.2834212-1-guoren@kernel.org> <4039032.XOxOlHldtI@diego> In-Reply-To: <4039032.XOxOlHldtI@diego> From: Guo Ren Date: Wed, 13 Oct 2021 20:34:32 +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 4:57 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. c900 is not a SOC name, but a CPU name. For soc name, it should be "allwinner,d1-plic". > > > > > - 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 > > --=20 Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/