Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2946446pxb; Tue, 21 Sep 2021 10:54:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM9isd6XhezMtz/FzcFlE57+Sk/qBN+uLOuH74NmBK6Sr4AF/AaQxInUa80DSe+gwN2DUE X-Received: by 2002:a05:6e02:1a28:: with SMTP id g8mr23690654ile.158.1632246857462; Tue, 21 Sep 2021 10:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632246857; cv=none; d=google.com; s=arc-20160816; b=hknDHgwWuQjnIBm9Sw39tKPikZDwcdtxCUEnygDxkKm8PPU6vs5zPcEtz9CZY7jURC TzMaXn2eMtTcelUBBnoOk7N4srs4mZDO015KezILRUvzJ4CZh9D6qos1wgEBcITS4Awt OYmthxEKw3zzMNmSTGllleHZACRLckjlISLiL0JlVif7CIRI+zeEJDpb0dzSIpnvL8Vs wfqk6QDAPDD9P7vflK8lMwPgVuG3CbPB7A9KYnH0A/DK0kQCpjK7CeTITY5pJ5+pDg8A CRFNqpUZFbFkLP7snsRfy4ADhe22WwUITBbO+2c7jOzkk4NzMccqhhtYKGhZfSdjpwcE ivKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:references:subject:in-reply-to:cc:to :from:date; bh=F3aWEKZVa2G2WL7zVf4w/6JiY53TsogXtkIg4MYk5BQ=; b=ciKQhFm1EkjrCCMXxjS7L+P4p6vvobMqfeE/Nbz4MF5BrxDPidOyEtrRmiiU4Ejm+Z 2ZcVnMHKe2ACTdbNi7fp7+6yv8+WokuD8Nhy3BDR/IwGmjKmRODMi2N45FZyly1H22BD 09FmYO7dDMTNyzyfixWLnPKPEkNWPWS0B/ZiP1+DoD7j5fTDfqJX4+SrVYsXj6PHVA2f T1u+ZMQJH4roXkyJouWmawETBkapDQJxTzy2EkMEQRCJzC0/WpUIuEmMUeXAM3d8JVwT OsijjO1abzmE8JmS4IQPU+hbJjr2p+DYpa8LObJH4DlF3R1dq056z2jdyBgGu9FExhIc r1cg== 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=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si6852958ila.152.2021.09.21.10.54.01; Tue, 21 Sep 2021 10:54:17 -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=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231805AbhIURxv (ORCPT + 99 others); Tue, 21 Sep 2021 13:53:51 -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 > > > > >