Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3436438pxb; Sun, 24 Oct 2021 02:06:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSb77+8eYOuhzq6w8hu5hyGSuPnWRQ+GtokrMfJfDcj/hUYP7swqSp4KqMCoF+6Ln214lJ X-Received: by 2002:a62:e40a:0:b0:44d:a86:43ce with SMTP id r10-20020a62e40a000000b0044d0a8643cemr10973453pfh.69.1635066416519; Sun, 24 Oct 2021 02:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635066416; cv=none; d=google.com; s=arc-20160816; b=O9oNiNi2BggiEolzXnrDM4Ai1tG7QQkrmmx9GwrdkP0lAqG38he/suSuQguDI5aZQC xBRRyCCyyCMDGP9TGL7bdfGnWYXYFvyhNIuId1MqEjtA58oVeN1HwBrSylqdTq/oALrr jus/cqas0qOVFtgni/aexLY/Lkh1fPIEnQkUnTY0Cc4N/zit+143lM962rivhleLHNP6 Q+2gjiSiwmdzuKIaBqtlyWoL3ezZPL9oLYYXkRL9knoY1m65flJ2KZ8zHPfOPsyY4gz/ 8VB8D0OrDEYrTR0tkEI6wvXkICdLr8Uj99HrBasyIHADOPAY64sG8HuRBl8+nXatGMfx dhJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nH6FtizVbfhZ2aZmhHFmPT1Ss0Z8jC0hjuUUeez8HRY=; b=wFECDLJZlS1JBj9y75Jcej9nCPYustefBeSHgYWv5t15SRsm5f9DCdziW8MYew2YeN OvFCfLOXZhtFSVlaPXSCRtq+xhgOykg7ZXCu13+CTSNEenKE2eQ0RqNr/iINzBssVg/Y zIrsDOWUdGd6XWWZPRxLj2TDd7gqYd11vIDm0LD5Lp49VNa98mUfot5kGkpGszwnQEhk /w96B2K6KustBOCLZhvezFdd2kxArMoBCx3MLSeVtMDXrI9htxp2M7XyAwz+QWfOWX3k lkuwoObNP+hQwCVEzM7mCexnfFKwYSuJmxUGIdPCbBNInzIYPvN+XG7ObO+fhbijgfR+ YwZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kthwDYUz; 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 oc11si29342043pjb.39.2021.10.24.02.06.30; Sun, 24 Oct 2021 02:06:56 -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=kthwDYUz; 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 S229867AbhJXJEB (ORCPT + 99 others); Sun, 24 Oct 2021 05:04:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:56634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbhJXJEA (ORCPT ); Sun, 24 Oct 2021 05:04:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 83D8C60F57 for ; Sun, 24 Oct 2021 09:01:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635066100; bh=Q0VYQA2JvqZt+JhQWrv84zpC9usCOBda9SPMR0yD3sM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kthwDYUzOYXbfcLswBUxZUYLLbflQ6Bto4C3zpEKkQiLsfukoK0UAOEyC79dwrL2h vKa5m5RYFkFZe/slMwEzuksuCFMYJqu2K93ZYMeoYIhdroynkC5sHjJYMnrbGD1jR5 3AWg/Nzx6JoHlWToUjz3fXLstCGBnnXt0S2PcuEG+W4uD1SRpquRc3Nx1QSGVkUOdL BUE1ErnQpyIQLfzVWdnicDz03HjzBYb7T1q2ut1oVXNOIvpewi2WtjGEfVJHSbHwvD lACjJiNC+RSrK0WdHHXQPeXnSqaePNgfJ5EBvbv1Hx32Xo9rXnmlAYWExG8W+X24+b 63lNOlqSw2BCg== Received: by mail-ua1-f48.google.com with SMTP id a17so16052986uax.12 for ; Sun, 24 Oct 2021 02:01:40 -0700 (PDT) X-Gm-Message-State: AOAM532heKJ6eEd6Ubast+yBp3wIpXKsLQP4VSCpyJwyipSyZ5LC1vp+ XKMnT+1m16GWVta4B53eEquVn0eaMYl9r/ozBH4= X-Received: by 2002:a05:6102:c4d:: with SMTP id y13mr9744916vss.33.1635066099683; Sun, 24 Oct 2021 02:01:39 -0700 (PDT) MIME-Version: 1.0 References: <20211024013303.3499461-1-guoren@kernel.org> <20211024013303.3499461-3-guoren@kernel.org> In-Reply-To: From: Guo Ren Date: Sun, 24 Oct 2021 17:01:28 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V5 2/3] dt-bindings: update riscv plic compatible string To: Anup Patel Cc: Atish Patra , Marc Zyngier , Thomas Gleixner , Palmer Dabbelt , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Rob Herring , "linux-kernel@vger.kernel.org List" , linux-riscv , Guo Ren , Rob Herring , Palmer Dabbelt Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 24, 2021 at 3:35 PM Anup Patel wrote: > > On Sun, Oct 24, 2021 at 7:03 AM wrote: > > > > From: Guo Ren > > > > Add the compatible string "thead,c900-plic" to the riscv plic > > bindings to support allwinner d1 SOC which contains c906 core. > > > > Signed-off-by: Guo Ren > > Cc: Anup Patel > > Cc: Atish Patra > > Cc: Heiko Stuebner > > Cc: Rob Herring > > Cc: Rob Herring > > Cc: Palmer Dabbelt > > > > --- > > > > Changes since V5: > > - Add DT list > > - Fixup compatible string > > - Remove allwinner-d1 compatible > > - make dt_binding_check > > > > Changes since V4: > > - Update description in errata style > > - Update enum suggested by Anup, Heiko, Samuel > > > > Changes since V3: > > - Rename "c9xx" to "c900" > > - Add thead,c900-plic in the description section > > --- > > .../interrupt-controller/sifive,plic-1.0.0.yaml | 15 ++++++++++++--- > > 1 file changed, 12 insertions(+), 3 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml > > index 08d5a57ce00f..18b97bfd7954 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,10 @@ description: > > contains a specific memory layout, which is documented in chapter 8 of the > > SiFive U5 Coreplex Series Manual . > > > > + The thead,c900-plic couldn't complete masked irq source which has been disabled in > > + enable register. Add thead_plic_chip which fix up c906-plic irq source completion > > + problem by unmask/mask wrapper. > > + > > This is an incomplete description about how T-HEAD PLIC is different from > RISC-V PLIC. > > I would suggest the following: > > The T-HEAD C9xx SoC implements a modified/custom T-HEAD PLIC specification > which will mask current IRQ upon read to CLAIM register and will unmask the IRQ > upon write to CLAIM register. The thead,c900-plic compatible string > represents the > custom T-HEAD PLIC specification. The patch fixup the problem that when "thead,c900-plic" couldn't complete masked irq source which has been disabled. This patch is different from the last one in that there is no relationship with the auto-mask feature. > > Regards, > Anup > > > maintainers: > > - Sagar Kadam > > - Paul Walmsley > > @@ -42,11 +46,16 @@ maintainers: > > > > properties: > > compatible: > > - items: > > + oneOf: > > + - items: > > - enum: > > - - sifive,fu540-c000-plic > > - - canaan,k210-plic > > + - sifive,fu540-c000-plic > > + - canaan,k210-plic > > - const: sifive,plic-1.0.0 > > + - items: > > + - enum: > > + - allwinner,sun20i-d1-plic > > + - const: thead,c900-plic > > > > reg: > > maxItems: 1 > > -- > > 2.25.1 > > -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/