Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3116388pxb; Tue, 12 Oct 2021 22:13:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyELcuiEuS3PvmlKcV6X8PAOSupSJAc2/0gPxd9z9O3WOdTv9e4c4XM+fOUDiEvcYIq+UF4 X-Received: by 2002:a17:90b:3851:: with SMTP id nl17mr11105065pjb.12.1634102025822; Tue, 12 Oct 2021 22:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634102025; cv=none; d=google.com; s=arc-20160816; b=CGzqUfZUhOpFBH9j5WCH/k1NvqebJuq1HzAzgnfI1gJoY+Hm++DA4qm8KUGM2hHk0b Mya6q3U9+QaxMaqiBer3Ap3mhBi9hGHr529C4jEh+p2kpWZUZnhvjtOu7/45pEIc8BdS YNgI5sfcs7X0n7z8OHMt0+XbWbGrmEDVDpLITFbj2nVzvwtEfuezwSwddkUMa3VBl45o SrV5gwxSWZe83dXpViJUgMbL6jdiwck0efq5eIolEDWAFSKwS72f6W1NvkRVcqu1v0CJ F8bwjlge0dipEiaCZgVQNw7SlftInlmVkQnxRU+CMDKcVjQWLQEzRSxR8yaMGp0pXuuF Rgxg== 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=8oEFV0or7PHUMQMd5+/L2xMc0OUI7R/fEGHl3NgZeoE=; b=V19dMyuvx/42M/c6DH6izxHtgIuPh5J3thN7Cvrz2N/DyhDBtOZ1V9DIfokmaWjn6p y/Abrju0gvrHc0ddQHEmKPFWGzpdMZHAf8CZusNMAQS/kHnycG2QCFUjYQJh2Zs4B+Y3 rF/pu9wJWMV4qEY6fKMuR1PeZdxyib3P/YZOXkKFx+QpT2Z74GIp3YfmeDekXPh6Jmta rW7xNHVmVNbAeDTZrR5a0vTX8+l6j5d2UM8vz3gS5obkQmZBSICrFMGyD+177aoJRPs/ SBE9tQ18Bkka5C3NS40v2pO4lqBnuwQLEZ2u26DwWgD3PBIS7fd7QhkOic85VF9EONCP 6DsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=P6BmYB+k; 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 z21si20404672pgv.590.2021.10.12.22.13.32; Tue, 12 Oct 2021 22:13:45 -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=P6BmYB+k; 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 S232025AbhJMFOD (ORCPT + 99 others); Wed, 13 Oct 2021 01:14:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbhJMFOC (ORCPT ); Wed, 13 Oct 2021 01:14:02 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F35D2C061570 for ; Tue, 12 Oct 2021 22:11:59 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id m22so4192254wrb.0 for ; Tue, 12 Oct 2021 22:11:59 -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; bh=8oEFV0or7PHUMQMd5+/L2xMc0OUI7R/fEGHl3NgZeoE=; b=P6BmYB+k8phnQzRTC3McT5TXQ8SpqX/hpEQgWN3LcU8BGs0jrFnydtG6bmNfoEuK3v cosAys/VatlzBRzIkb9in8GJt4YcCKeQeUott/GfXHGoNDxCAv6nMOU6yg9mW+d6TmKv iH1IxjgFVNeRJsRcFwvtLuusAhjniK8m2krvcsvLmmvFUtGnR11DbNzQZfpurHHXzQFI p2oKSpijSJ3Kt2Qh4bhcZnChgUHkqBC34WIzr5TdBJ9ZGPZd/iqEGbi5LiT9gP5TXtlQ ipyxeI5zNq33H8eFNddXucBXn7mCJJMETWx5qBJTUVt/PwQB9qkNaC+jcEfD0jYSKFY/ 378w== 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; bh=8oEFV0or7PHUMQMd5+/L2xMc0OUI7R/fEGHl3NgZeoE=; b=6Gqew3fB6xb31ZtLSgGunyW4rRhG49zcHEMIA5V2jON5wafubj7bXomR+O5rgufVed HtBJV4Urq/Zcdpmynxy+I/IFViZFlXP7DDSbhGjcLzMOJlCxEDOwLhuXjCKdVaZElSfw +mRgrsABLDu1SRkVetpHU+syno5/EYGIQtrTUKyZBUX8uckaPUA58RAirjHykVil/c1+ 34qCgJ6OE+OH3PB3hLHZt+EwXXYLhtBZ6k9O13YcZRZivSVehGBu6gHSOwxYtcUOhDYB MDY32J5fKx4kopqivHBtk/PO3kGnYNg3maDc+8nrtDqlNrvDr+tXhPV2V9YoJOORc4fS NyGA== X-Gm-Message-State: AOAM531QmZammUraBE5Z4vULt5d91AP3eTHkIrozvODpOP78AwAfHeIP YqUXw9nIPqTcRJ8F5gh52Nn5Gwku+vDe1mYFweKLGw== X-Received: by 2002:a05:600c:4111:: with SMTP id j17mr10363683wmi.59.1634101918493; Tue, 12 Oct 2021 22:11:58 -0700 (PDT) MIME-Version: 1.0 References: <20211013012149.2834212-1-guoren@kernel.org> In-Reply-To: <20211013012149.2834212-1-guoren@kernel.org> From: Anup Patel Date: Wed, 13 Oct 2021 10:41:46 +0530 Message-ID: Subject: Re: [PATCH V3 1/2] dt-bindings: update riscv plic compatible string To: Guo Ren Cc: Atish Patra , Marc Zyngier , Thomas Gleixner , Palmer Dabbelt , =?UTF-8?Q?Heiko_St=C3=BCbner?= , "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 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/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(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 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 > - 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 > > reg: > -- > 2.25.1 > Regards, Anup