Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1806971rwl; Thu, 30 Mar 2023 01:35:42 -0700 (PDT) X-Google-Smtp-Source: AKy350YlpOeVvL0rTSD/kXifWKpQOcS398mAvhv6IWYesLwViwCD5e/fOsW02KEx2MtE4ht0EnLC X-Received: by 2002:a17:906:74ca:b0:932:efa8:28fa with SMTP id z10-20020a17090674ca00b00932efa828famr20133838ejl.2.1680165342646; Thu, 30 Mar 2023 01:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680165342; cv=none; d=google.com; s=arc-20160816; b=EPG2ryLQtQzknTA5xNLH7zWUZJmHs+wZBnNSyCILCkPtGbuEjyXeus2HWracJonr2X p+fhYx0jKRbfKmFoY/7GIjKqjuPa4yH8N18BMPNm5b7QH8pyAv8OhR4ozMPZ/d7nl55a ZTjKus+PMgfR+MmCdoA3jRtVqg5i6Z13YvCFbTmzpiHl40lSQifTm72ITJVCVpDcvUHZ k95xtZhM5DjcaXDwdXpGeyBk9Tzxa1n2cG77vFnALOCh4GPfBQ6u8eFOKnaH512h+P5P /fh25uYVMQndhRRXBJe5YBVKY02Tnv6pan6HrhJDVMKYdujPLlk7ShaUENRYC3wrj7xX x84A== 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=D2WEeOOUkyKCY+URkbIWdx8q1iA4h9VwaOLtguh4Nxk=; b=dhcvEcDoBqbind7cZbHX/biNYAgMMu4ljItX7tdAxFDhLRi6wnKli4v81U9D7LqrWR SYEzAKcjls9ZS7l7HGE7Q8MUBmshRsWWjT+fWqQL9ajX41rel+wwup+Q0OGHcuPIFF7G nd/JxMC4usen6xtjKFbHohCPBLrBcaUZ/jjH4x0DhNP8sVfsqpwbWIbqCUEztWG5zaRZ trkJbc10Fd4h4n0K5prvlgBb7BMPMaW36yhY0tnH7QTVM9tqJWYfabLJpXGl3skGknHj RprOonS1lGhVbhWvu8I42mm4pAc0yv52V34YtnCixB3Vwo8uVl9B+6trUnunKSuGZnun +AmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f25-20020a17090631d900b0092c8da1e5edsi35622445ejf.611.2023.03.30.01.35.12; Thu, 30 Mar 2023 01:35:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230042AbjC3Ia3 (ORCPT + 99 others); Thu, 30 Mar 2023 04:30:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230420AbjC3IaJ (ORCPT ); Thu, 30 Mar 2023 04:30:09 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8B7CB7EDF; Thu, 30 Mar 2023 01:29:38 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 015C12F4; Thu, 30 Mar 2023 01:30:16 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0E6CA3F73F; Thu, 30 Mar 2023 01:29:29 -0700 (PDT) Date: Thu, 30 Mar 2023 09:29:23 +0100 From: Cristian Marussi To: Sudeep Holla Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, vincent.guittot@linaro.org, souvik.chakravarty@arm.com, nicola.mazzucato@arm.com, Tushar.Khandelwal@arm.com, viresh.kumar@linaro.org, jassisinghbrar@gmail.com, Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: mailbox : arm,mhuv2: Allow for more RX interrupts Message-ID: References: <20230329153936.394911-1-cristian.marussi@arm.com> <20230329153936.394911-2-cristian.marussi@arm.com> <20230329174431.yga3c233sazimane@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230329174431.yga3c233sazimane@bogus> X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 29, 2023 at 06:44:31PM +0100, Sudeep Holla wrote: > On Wed, Mar 29, 2023 at 04:39:35PM +0100, Cristian Marussi wrote: > > The ARM MHUv2 Receiver block can indeed support more interrupts, up to the > > maximum number of available channels, but anyway no more than the maximum > > number of supported interrupt for an AMBA device. > > > > Signed-off-by: Cristian Marussi > > --- > > Cc: Rob Herring > > Cc: Krzysztof Kozlowski > > Cc: devicetree@vger.kernel.org > > > > .../devicetree/bindings/mailbox/arm,mhuv2.yaml | 13 +++++++++---- > > 1 file changed, 9 insertions(+), 4 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml b/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml > > index a4f1fe63659a..5a57f4e2a623 100644 > > --- a/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml > > +++ b/Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml > > @@ -69,10 +69,15 @@ properties: > > > > interrupts: > > description: | > > - The MHUv2 controller always implements an interrupt in the "receiver" > > - mode, while the interrupt in the "sender" mode was not available in the > > - version MHUv2.0, but the later versions do have it. > > - maxItems: 1 > > + The MHUv2 controller always implements at least an interrupt in the > > + "receiver" mode, while the interrupt in the "sender" mode was not > > + available in the version MHUv2.0, but the later versions do have it. > > + In "receiver" mode, beside a single combined interrupt, there could be > > + multiple interrupts, up to the number of implemented channels but anyway > > + no more than the maximum number of interrupts potentially supported by > > + AMBA. > > + minItems: 1 > > + maxItems: 9 > Hi, > I am not sure 9 is the correct value here. IIUC it is just what Linux defines > as AMBA_NR_IRQS. Looking at the history it was bumped from 2 to 9 for use > by PL330 DMA driver. I couldn't find anything to relate this 9 in any > AMBA or other related specification. > Yes, I could not find either where the 9 comes from, but it is what currently each amba device is limited to, at the software level, in terms of interrupts that can be detected. > Ideally I would say we don't know what the max here. We just have a platform > implementing 2 interrupts now. Do we for with 2 for now and change it if some > new users require more in the future ? > By the spec seems to me that the maximum number of interrupts are equal to the maximum possible channels (124), or one combined interrupt. But these in turn, as said, are capped by the AMBA_NR_IRQS and I have only seen one system using 2. (for which I need this series to work) > I will leave that to the DT maintainers but 9 is simply random based on Linux > code so I would rather choose some other random number with a better reasoning > than 9 as AMBA code in the kernel is limiting it to 9. > Agreed. Aiming to describe any possible hw in the DT, I would say 124 at this point. (even though implausible not to use the combined interrupt at that point...) Thanks, Cristian