From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63A8AC4332F for ; Tue, 21 Sep 2021 17:52:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4541760F24 for ; Tue, 21 Sep 2021 17:52:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231842AbhIURxw (ORCPT ); Tue, 21 Sep 2021 13:53:52 -0400 Received: from sibelius.xs4all.nl ([83.163.83.176]:51995 "EHLO sibelius.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231153AbhIURxv (ORCPT ); Tue, 21 Sep 2021 13:53:51 -0400 Received: from localhost (bloch.sibelius.xs4all.nl [local]) by bloch.sibelius.xs4all.nl (OpenSMTPD) with ESMTPA id eddbe515; Tue, 21 Sep 2021 19:52:18 +0200 (CEST) Date: Tue, 21 Sep 2021 19:52:18 +0200 (CEST) From: Mark Kettenis To: Rob Herring Cc: devicetree@vger.kernel.org, alyssa@rosenzweig.io, kettenis@openbsd.org, tglx@linutronix.de, maz@kernel.org, marcan@marcan.st, bhelgaas@google.com, jim2101024@gmail.com, nsaenz@kernel.org, f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, daire.mcnamara@microchip.com, nsaenzjulienne@suse.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-rpi-kernel@lists.infradead.org In-Reply-To: (message from Rob Herring on Tue, 31 Aug 2021 16:16:02 -0500) Subject: Re: [PATCH v4 2/4] dt-bindings: interrupt-controller: msi: Add msi-ranges property References: <20210827171534.62380-1-mark.kettenis@xs4all.nl> <20210827171534.62380-3-mark.kettenis@xs4all.nl> Message-ID: <56147407e10f61cb@bloch.sibelius.xs4all.nl> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Date: Tue, 31 Aug 2021 16:16:02 -0500 > From: Rob Herring > > On Fri, Aug 27, 2021 at 07:15:27PM +0200, Mark Kettenis wrote: > > From: Mark Kettenis > > > > Update the MSI controller binding to add an msi-ranges property > > that specifies how MSIs map onto regular interrupts on some other > > interrupt controller. > > > > Signed-off-by: Mark Kettenis > > --- > > .../bindings/interrupt-controller/msi-controller.yaml | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml b/Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml > > index 5ed6cd46e2e0..bf8b8a7dba09 100644 > > --- a/Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml > > +++ b/Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml > > @@ -31,4 +31,12 @@ properties: > > Identifies the node as an MSI controller. > > $ref: /schemas/types.yaml#/definitions/flag > > > > + msi-ranges: > > + description: > > + A list of pairs , where "intid" is the specification > > It's not really 'pairs' and 'interrupt specifier' is the terminology the > spec uses. How about: > > A list of , where "phandle" is parent interrupt > controller, "intspec" is the starting/base interrupt specifier, and > "span" is the size of that range (typically multiples of 32). > > The 'multiples of 32' part is what Marc told me. Thanks Rob! That sounds good. But 32 is what's typical for the Apple hardware, and I expect that different hardware that might use this property will use a different value, so I left that last bit out. I also kept the bit that states that multiple ranges are allowed. > > + of the first interrupt (including the phandle for the interrupt > > + controller) that can be used as an MSI, and "span" the size of > > + that range. Multiple ranges can be provided. > > + $ref: /schemas/types.yaml#/definitions/phandle-array > > + > > additionalProperties: true > > -- > > 2.32.0 > > > > >