Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3262774pxb; Wed, 13 Oct 2021 02:22:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfPdLxTYJakpiHfdBMuL0typWxE3fem079h533o3jikLhgHdclihRcF3ji37swOFGm16rl X-Received: by 2002:a17:90a:a78e:: with SMTP id f14mr11824155pjq.235.1634116928603; Wed, 13 Oct 2021 02:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634116928; cv=none; d=google.com; s=arc-20160816; b=QFCOVdEoHeGjo/8m874S/stUGg+mbSpt8qylSe26MKLKKGgnZBDaQ5vFH7dogDvRdh wymSjGtqI2xkFYBS2yZJ7rR6LdLmktc1ABSJCGm/wA8MASBNc3OAhnN0UoKPdSK/nfeJ WYYgWRUJPcicPmsQQ92Pe6qDVFcldhk04bvK5cewR/MheXolqMl3p7Kcx1Pn/6SROSIv nizLbjPgH5QHXG/HQfHmEdXvAO5Z83K4BtRsiXqSshs8xVGMXULFN0jrZqAsjF++eIjh G76UZOqkPGux6N4dZnu76R668R6oRjnBero4hFVNWl9cnu75R99ddRLe7T2tNFTb0mfa xd2Q== 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=+lUdmvM630HC9Rc0ejWwyoYWLa7F0b+RBSdS/FDtwnA=; b=aRlNyuNZX8yiJ6YtV/BN2xm00zgxm+SxdQyzERHdPm0DW5zbqCQA5luQ+meXS3V97Z K1P7MTxjTwcT8exsO9oHq7ylBBl6Ign3tS/3DkfR577Lm/yWEzPnSe2XRV+4EqNLioT5 hYTIs3n0tyXxBvjuWhzeSkc2ohzlbybF/f5UJj4K7K/VMml7G1ZZ6k8wmQbqAY9WwMtN MZQbqK1vTYAsSX/70Rjv1v7eEFmmbk40E9Fvf2WQz64GtbqwDeprkF4t3+OmjpeviezO ZLbUJDN9IEDBLUqvgRnZbr5jdAVzhRS3HQxWqWBaMr+Whr45od+do0J4vf1Sh9dx7kbi /k8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=jig85W7c; 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 i14si6954795pju.110.2021.10.13.02.21.55; Wed, 13 Oct 2021 02:22:08 -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=jig85W7c; 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 S239115AbhJMJWS (ORCPT + 99 others); Wed, 13 Oct 2021 05:22:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239130AbhJMJWL (ORCPT ); Wed, 13 Oct 2021 05:22:11 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BBEAC061765 for ; Wed, 13 Oct 2021 02:20:06 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id t2so5997858wrb.8 for ; Wed, 13 Oct 2021 02:20:06 -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=+lUdmvM630HC9Rc0ejWwyoYWLa7F0b+RBSdS/FDtwnA=; b=jig85W7cYgKDE+smX7nYNQXEs3qABJA6zH/0hbObl7vu+CWeDkZBq41AszpsMC/woD 8z1mA1Hcy/K5ehSvffBsNDjKBIDCADmNvDmFv3G+/2KbjjG5GZQ9xR8yrPHYEWYvWy4k OnTWLlxDlRhtDvwgyCzBNPu4F6AJ9J491lfjO0R88PK26w4mCvH/NXiXw+1wSGucDaMd GOWMe5l88a3PAS7oN8N19t+usI9dWPRLtOgGdAlFJc0RK3T9fN8mPNF+redW7XRG2ObZ 8hN/lB1gsob3dBR7zFQZZVQ6/CtLz0Z4m3l3NWP+7X+dBukal8sqGA9+WRBcrhO8zizh Bjug== 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=+lUdmvM630HC9Rc0ejWwyoYWLa7F0b+RBSdS/FDtwnA=; b=HjTR6vpdcoMmRo/sEZ7/KHFbaOTVgzrYsqq3iN/rdIiuUDjsM5M641K3ytKHqCUek7 xgkczcxJLPP/cGs2cOdTebW8CLV5qkFv3KVoEUvCGm1SavCycQn18TXrkwmrtExZTWkv xIva9OuZtKtmYdLVB/L5+KnNDZXc7WLDbORtF/gaEcEPJjnPgVr70G8eB/VbAyUVJF0v F9Ki3V9i+9/KnJdycYJqNa9BnpSFU5fTHnfuVIf7wKgKCnB9O4LTGfBMe5bSWQpXbsI4 l9QaCbY8cuTquAwQPVC2VwydUyGFw6p8kA2hLyZVcH5WqYZXmKEQ3nQd0eR3YumwbUwU i/fw== X-Gm-Message-State: AOAM532A86X23eU2sS89wnhXZQolPpLf3qlKzecrywisb3ppmTIcQB97 46gaMn7EwmxFUYWzNUpspi/TqC8LLpVkuL3WaiDiLA== X-Received: by 2002:a05:600c:4111:: with SMTP id j17mr11477749wmi.59.1634116804936; Wed, 13 Oct 2021 02:20:04 -0700 (PDT) MIME-Version: 1.0 References: <20211013012149.2834212-1-guoren@kernel.org> <4039032.XOxOlHldtI@diego> <4245323.jvX0RauA9x@diego> In-Reply-To: <4245323.jvX0RauA9x@diego> From: Anup Patel Date: Wed, 13 Oct 2021 14:49:53 +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:44 PM Heiko St=C3=BCbner wrote: > > 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 wr= ote: > > > > > > 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-controll= er/sifive,plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-con= troller/sifive,plic-1.0.0.yaml > > > > > index 08d5a57ce00f..82629832e5a5 100644 > > > > > --- a/Documentation/devicetree/bindings/interrupt-controller/sifi= ve,plic-1.0.0.yaml > > > > > +++ b/Documentation/devicetree/bindings/interrupt-controller/sifi= ve,plic-1.0.0.yaml > > > > > @@ -35,6 +35,11 @@ description: > > > > > contains a specific memory layout, which is documented in chap= ter 8 of the > > > > > SiFive U5 Coreplex Series Manual . > > > > > > > > > > + While the "thead,c900-plic" would mask IRQ with readl(claim), = so it needn't > > > > > + mask/unmask which needed in RISC-V PLIC. When in IRQS_ONESHOT = & IRQCHIP_EOI_THREADED > > > > > + path, unnecessary mask operation would cause a blocking irq bu= g in thead,c900-plic. > > > > > + Because when IRQ is disabled in c900, writel(hwirq, claim) wou= ld 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 > > > > > > > > > > Regards, > > Anup > > > > > >