Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1143394pxb; Wed, 1 Sep 2021 18:53:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4sFznD3iAPBox0RCdQeH3x4liPXa2IOxBiZgQqACbvMAUtiOonpvx4GPwfF+GP4Et1djP X-Received: by 2002:a02:3b22:: with SMTP id c34mr743664jaa.140.1630547610092; Wed, 01 Sep 2021 18:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630547610; cv=none; d=google.com; s=arc-20160816; b=gZif696dmlAEnY9QbVZotOf1i2LsSy98092seKEobOpKltiBV3NKR84Xloe8vCPsed 8g+ttOSfcE7SRLF23o4+/oSje+aftntybdebLoLlAUXhidIqCeXk8Tt2Q0POgGCquqGx z3T8gqJ75cBcNXtHAPHU2YaXsjhYG+u+vBkACqUkmkO7Vijhr6zG5rRcPWVlUGoA8iLn 0zChyK/AflizJTc8GWv+CqZCxBIfHaB9JfxMpWItqtiOpn9NAF/ut+ioiFPMngbfClry sJxl/p06q2udL5ONObSdXie/E6QLC0otZQuv9epkJ0iO33ifcjB4ay9q+yeb9cXyrElQ V6+Q== 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=wTvLeD55f/+cT30LFk/ZUgKiLqiOwst0EprdgeqjHco=; b=CPE7HsCPpAHANzAr9jbWSWMVG0JKT6SGQKuy+kISjDE25PKlVp9aZTa2WyDNGXNb3H nbHhkt5M94UUktT5hCYFYKNSu5DSw42oZhWKysddsm52+m7iuGcpAhE4xbV3TH2EXjkZ DFgKE+vDjF6Q8qWUBg63ZkxxaOfxnvE0dcPM5OfJVGdXRiLEXSOagAr3BTCQxxbg1taR ernUX5X/JIFm5PFX9ph0WG3m/ajj81VF68Xjekq8uvL5t1RnJAD39L6eZqhz6FcyDliU kQW44DnEmhvtWR/zNC01PfB5rDHf/kkwbFnyAosrcvkxdkRfFSW5a1uoNkEr+kdi5KwZ J5TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W5rwDc+W; 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 132si320823jaf.20.2021.09.01.18.53.12; Wed, 01 Sep 2021 18:53:30 -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=W5rwDc+W; 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 S232732AbhIBATn (ORCPT + 99 others); Wed, 1 Sep 2021 20:19:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:49640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229898AbhIBATm (ORCPT ); Wed, 1 Sep 2021 20:19:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A56B610A4; Thu, 2 Sep 2021 00:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630541925; bh=wTvLeD55f/+cT30LFk/ZUgKiLqiOwst0EprdgeqjHco=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=W5rwDc+WtZTjMsZXQP/vmM2B3QxWtYh7u9gR9LKrnv82l4ifBZGyKEdYZflIPoB9y AcJyT5lvGIvbGECjfQlSYMDiUU9a5sB9T/2jIGwQGqzO4xziNiOht9eit/OXdkguxL ZDDLv13iCfD4wNvXdYVmnAWnBfqNbCRZHHLHiAxf47tKeDFtY11ANr6ITf78eI4cfT hmPflu3jjKeL8PvSMKw8auBs+yWRCXAUN2ziNB55jpVTNQ1mAnO/ObS1glGL6CvWo3 yP7BJU1zq/eidcYqFI31XR/gwo6UUKHs4KGMPfuIDnPIDRA4H/jcffFhWCXdiE59pn OjC6jZuiyR8xw== Received: by mail-ed1-f54.google.com with SMTP id g22so115702edy.12; Wed, 01 Sep 2021 17:18:44 -0700 (PDT) X-Gm-Message-State: AOAM530MIS7GEOs6WsOx+vEsjQNPCRuUvq4diG4HdzZfyd6NRL9IqBEt 3ooMgPuhveY70H5VyTWsxUN2OnJqKtKeb3g88Q== X-Received: by 2002:a50:9b52:: with SMTP id a18mr586841edj.165.1630541923672; Wed, 01 Sep 2021 17:18:43 -0700 (PDT) MIME-Version: 1.0 References: <20210830041729.237252-1-anup.patel@wdc.com> <20210830041729.237252-7-anup.patel@wdc.com> In-Reply-To: From: Rob Herring Date: Wed, 1 Sep 2021 19:18:32 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v3 06/11] dt-bindings: timer: Update SiFive CLINT bindings for IPI support To: Anup Patel Cc: Anup Patel , Palmer Dabbelt , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Marc Zyngier , Daniel Lezcano , Atish Patra , Alistair Francis , linux-riscv , "linux-kernel@vger.kernel.org List" , DTML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 1, 2021 at 7:00 AM Anup Patel wrote: > > On Wed, Sep 1, 2021 at 6:59 AM Rob Herring wrote: > > > > 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. > > Linux IRQCHIP framework only probes IRQCHIP DT nodes which > have "interrupt-controller" DT property. Right, I believe I wrote that... So what would it look like to fix that? The simplest thing is just drop the check for 'interrupt-controller'. That's just a sanity check and we have other ways to do that now (schemas). Do you need this early? You can always implement your own initcall. > The "interrupt-cells" DT property > can be removed because as an interrupt controller SiFive CLINT > will only provide IPIs to arch code. The schema will disagree. Rob