Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1817739rwl; Thu, 30 Mar 2023 01:47:42 -0700 (PDT) X-Google-Smtp-Source: AKy350ZRacVD5YampSrP6URdjqY2nx1mT7v9bnHDY4fxmkoQhn6Q6SRy5KmL79ZiF9xAygJkT0+D X-Received: by 2002:a17:906:dd:b0:8b1:2614:dea6 with SMTP id 29-20020a17090600dd00b008b12614dea6mr1430638eji.1.1680166062543; Thu, 30 Mar 2023 01:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680166062; cv=none; d=google.com; s=arc-20160816; b=wrQC7cRIuKtUDysVWkJ5ULhwuMT/c7UqRc6RKUr0P9bZbdcDlDvdu3XixhOrZ6TkMW snzkI0CK8q3XnTGfp/7WD7lbocFsz8QBN6z/ugB7Q1VvJb7s8aS+Y5v+2vqtxzXsm0rR Ez0njagSW/MJrsuEK+Yrc9R8S5YS9RDrkJ+odC01rn16afa0mfkiMU36L+sMngSNu7hF K45VAY8ESf7oZLmGrmYGmWG/fX4nCbyHbILbvlJ9+YmXlYHXIn740O5OshRY/JpO5moy aJB6me8R2li0esHbzotLI9z7mkMMH5Uf56F9BS0nOQZhdbXLX1uIMTlwsEPbt5Ms7H2z lAeQ== 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=TKXjjAMCmx5wcJ1pfojU0OlVAr+UWJMQZdxrA/MrI6Y=; b=VK1SrWFPmSw4x6EXKqdsj1bVsGPu6tSScX7MCvbiqbzS8jupm3ycBOJHizmBwjM6s6 yURPrRgTp7PMskYVkUmXGAIUv2OEAKwH2XNSvPObBKYM3rW4qRi0wk19Dcy84XMufgqS tSz8uXXK9uS5bp3K/nU5orHoGXva5mwcm4chrVsyWFs2ZGEU78XyiIyBJQ3D+4QwRMOS 1+vRFbxg8ejNLNkIQfokeD1nD/GvqC81GSJjtScpBcu73vbTGMnsK5YT9d/V8Q1mGU2i VeifBMEoLj8EsFh1MD9DVSlhwJTr+W2S6UA37KgnF8NnfvsA7viLrsEhUMCeX6ccwIhE sAdg== 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 n5-20020a170906688500b009320276666asi33480346ejr.793.2023.03.30.01.47.16; Thu, 30 Mar 2023 01:47: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 S230116AbjC3IqE (ORCPT + 99 others); Thu, 30 Mar 2023 04:46:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230136AbjC3Ipz (ORCPT ); Thu, 30 Mar 2023 04:45:55 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 488647D98; Thu, 30 Mar 2023 01:45:36 -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 9256D2F4; Thu, 30 Mar 2023 01:46:15 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 83F2E3F73F; Thu, 30 Mar 2023 01:45:29 -0700 (PDT) Date: Thu, 30 Mar 2023 09:45:19 +0100 From: Cristian Marussi To: Krzysztof Kozlowski Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sudeep.holla@arm.com, 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> <7e93c0c9-0a84-c1ce-a978-c4743963012b@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7e93c0c9-0a84-c1ce-a978-c4743963012b@linaro.org> 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 Thu, Mar 30, 2023 at 09:36:06AM +0200, Krzysztof Kozlowski wrote: > On 29/03/2023 17:39, 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. > Hi, > Last sentence indicates that TX mode has something else, e.g. max 1 > interrupt. Either correct the sentence or add if:then: narrowing it for TX. > By the spec really you can have up to 124 rx interrupt (one per channel) and optionally 124 tx interrupt too. At least one RX is mandatory, while the TX clear channel iterrupt is optional (and not supported at all for spec < 2.1) In both cases you could just have one single combined interrupt, though, and this is what the driver did, and still do (I have noot changed this), on the TX side: it just supports one single combined tx interrupt. So on the TX side, at the HW level, there could be really 124 interrupts BUT the driver still only support a single combined one. So I think my statement above is anyway ambiguos and I'll fix it, but how to fix it, really depends if we want to describe fully what the HW potentially supports OR what the driver really can cope with as of now. Thanks, Cristian