Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp200336pxb; Tue, 31 Aug 2021 19:05:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySR8PXSkrDYZb00Pi/N0Xw2l9viUztvW5C1IfnCS+iZ/HYeG9/yLeSPSE86GuR8J1WDr0+ X-Received: by 2002:a17:906:3699:: with SMTP id a25mr33302293ejc.452.1630461909040; Tue, 31 Aug 2021 19:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630461909; cv=none; d=google.com; s=arc-20160816; b=MrquudU4iZx7wwL0MH1sXoG8sbf6FpGG/mAfVoGK7dZTZMvjPuNuTHSK0wU0gXf+p6 bB+s677YNSBTDTe3HzC2WWVXqmU9k8mUc79wjWYYKPn8uaqJxPK7v/ytDO6clHEC06Lh Q2tTptP6mPBgoJa2W4Bu+6lf9AQU1lBN4XajMQBoth5BTc28VTuxzuiBLgIMKkYZAdsr InyA46R5e/xdSHPPSWuwB7VmLrj4u2GiJlpnuF/evfbvw89Z95DvD6iqjSlEBvPiCYen o302aqrfOJ4Hu7Y9UsI7cLENwnQJ/qaobXaiXFP3Kk4mKfdXv1l199hKG1Eo2k78GSkl WX+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=e7d5LjRjv/FxWQd5I6d33tUIdmNpt47w5kqmkdntcuc=; b=OaeFOp6y/4vIPmnLKZ21J3nD/2iNCuLRE8BxHsaGashHsBv1KGmzfwYotjf5ktfzdf kqIeR22QeZ/QKk7jw2Mz5H4ex2sp16ybaEColM1SVrJBiC9u8QpU4g50bPEklwlVqcct afDxMx4QyCRli9I+tUrt6SZq8ycGMgeGbvlAKPd0EPU+FhjQwRBzUK4TuOHFMDft4ZuV J5N7QMGXchbumLAd3VvOInnmN8sm57dReQZobTTgRZXu7bMMaSPn+mWSyYUADBAx4cTi lIj4Fxf8svzsqxLeocELHGA0zmGLTO3rVNB3rvUzR4L4012wqpZdMRi6+zmJ30eQvbDs j5aQ== ARC-Authentication-Results: i=1; mx.google.com; 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 y25si18357976eds.171.2021.08.31.19.04.46; Tue, 31 Aug 2021 19:05:09 -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; 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 S241600AbhIABay (ORCPT + 99 others); Tue, 31 Aug 2021 21:30:54 -0400 Received: from mail-ot1-f47.google.com ([209.85.210.47]:42864 "EHLO mail-ot1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234036AbhIABax (ORCPT ); Tue, 31 Aug 2021 21:30:53 -0400 Received: by mail-ot1-f47.google.com with SMTP id c19-20020a9d6153000000b0051829acbfc7so1569487otk.9; Tue, 31 Aug 2021 18:29:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=e7d5LjRjv/FxWQd5I6d33tUIdmNpt47w5kqmkdntcuc=; b=MZlJ8GYdJawuHS+NLt10lzZ/UftSf83tIGNl2I6Z1MJulUp6U6Ha1pu4wjRlolLkx6 pJBkZYA4PmZTw52xp5Mb9GJQ+Xl0IEH8rofpSbarqnmlLrHLOz0YZXdtEO+8nf9AHpM0 2x4myIiGSeki+6M13bdC/5CZo0XcqzPKttop5ltKOBPtPtFzloubGR2yKS5MYvGshlOs 8T6FjseaRCE00UWwgOcdPxhwz1dalC6VkXmzqDa7F26jdjCyRumFLedR6fr9jBcKZ+0E thHn1Dgu4mUwwWkTSGcwQhZSqW6qg0NQ4qykoOTV8DGwNBgkzr4Pubc9QUP+dEtl13LX UxsA== X-Gm-Message-State: AOAM533Yj6cmzhpMlgrcYSqgfyZnMpPjx2G/s8viBl8mffnaVK2rpmcC 4R7N2T2hP5LMyJxgbNsmUA== X-Received: by 2002:a9d:5e05:: with SMTP id d5mr28375862oti.61.1630459797200; Tue, 31 Aug 2021 18:29:57 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id v11sm4356634oto.22.2021.08.31.18.29.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Aug 2021 18:29:56 -0700 (PDT) Received: (nullmailer pid 997400 invoked by uid 1000); Wed, 01 Sep 2021 01:29:55 -0000 Date: Tue, 31 Aug 2021 20:29:55 -0500 From: Rob Herring To: Anup Patel Cc: Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Marc Zyngier , Daniel Lezcano , Atish Patra , Alistair Francis , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [RFC PATCH v3 06/11] dt-bindings: timer: Update SiFive CLINT bindings for IPI support Message-ID: References: <20210830041729.237252-1-anup.patel@wdc.com> <20210830041729.237252-7-anup.patel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210830041729.237252-7-anup.patel@wdc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 30, 2021 at 09:47:24AM +0530, Anup Patel wrote: > The Linux RISC-V now treats IPIs as regular per-CPU IRQs. This means > we have to create a IPI interrupt domain to use CLINT IPI functionality > hence requiring a "interrupt-controller" and "#interrupt-cells" DT > property in CLINT DT nodes. > > Impact of this CLINT DT bindings change only affects Linux RISC-V > NoMMU kernel and has no effect of existing M-mode runtime firmwares > (i.e. OpenSBI). It appears to me you should fix Linux to not need these 2 useless properties. I say useless because #interrupt-cells being 0 is pretty useless. > > Signed-off-by: Anup Patel > --- > .../bindings/timer/sifive,clint.yaml | 20 ++++++++++++++----- > arch/riscv/boot/dts/canaan/k210.dtsi | 2 ++ > .../boot/dts/microchip/microchip-mpfs.dtsi | 2 ++ > 3 files changed, 19 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > index a35952f48742..9c8ef9f4094f 100644 > --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > @@ -43,6 +43,12 @@ properties: > > interrupts-extended: > minItems: 1 > + maxItems: 4095 > + > + "#interrupt-cells": > + const: 0 > + > + interrupt-controller: true > > additionalProperties: false > > @@ -50,15 +56,19 @@ required: > - compatible > - reg > - interrupts-extended > + - interrupt-controller > + - "#interrupt-cells" > > examples: > - | > timer@2000000 { > compatible = "sifive,fu540-c000-clint", "sifive,clint0"; > - interrupts-extended = <&cpu1intc 3 &cpu1intc 7 > - &cpu2intc 3 &cpu2intc 7 > - &cpu3intc 3 &cpu3intc 7 > - &cpu4intc 3 &cpu4intc 7>; > - reg = <0x2000000 0x10000>; > + interrupts-extended = <&cpu1intc 3>, <&cpu1intc 7>, > + <&cpu2intc 3>, <&cpu2intc 7>, > + <&cpu3intc 3>, <&cpu3intc 7>, > + <&cpu4intc 3>, <&cpu4intc 7>; > + reg = <0x2000000 0x10000>; > + interrupt-controller; > + #interrupt-cells = <0>; > }; > ... > diff --git a/arch/riscv/boot/dts/canaan/k210.dtsi b/arch/riscv/boot/dts/canaan/k210.dtsi > index 5e8ca8142482..67dcda1efadb 100644 > --- a/arch/riscv/boot/dts/canaan/k210.dtsi > +++ b/arch/riscv/boot/dts/canaan/k210.dtsi > @@ -105,6 +105,8 @@ clint0: timer@2000000 { > reg = <0x2000000 0xC000>; > interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7 > &cpu1_intc 3 &cpu1_intc 7>; > + #interrupt-cells = <0>; > + interrupt-controller; > }; > > plic0: interrupt-controller@c000000 { > diff --git a/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi b/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi > index b9819570a7d1..67fb41439f20 100644 > --- a/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi > +++ b/arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi > @@ -168,6 +168,8 @@ &cpu1_intc 3 &cpu1_intc 7 > &cpu2_intc 3 &cpu2_intc 7 > &cpu3_intc 3 &cpu3_intc 7 > &cpu4_intc 3 &cpu4_intc 7>; > + #interrupt-cells = <0>; > + interrupt-controller; > }; > > plic: interrupt-controller@c000000 { > -- > 2.25.1 > >