Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1968685rdb; Tue, 5 Sep 2023 10:08:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5kpCI/+94EGbhgmjF1n1KNw5U30vphPMkgFKODQfvtL3144YLHZHAW0gU+hxU2atTYEaG X-Received: by 2002:a17:902:d505:b0:1c0:bf60:ba4f with SMTP id b5-20020a170902d50500b001c0bf60ba4fmr15877657plg.4.1693933703826; Tue, 05 Sep 2023 10:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693933703; cv=none; d=google.com; s=arc-20160816; b=QIHNINLH1Yf0mYX1fDZlk7amSDl4jXzyTf+k2RDdU2jjuDYaVI5GUIPitjndAkuqL2 iiLrKlg7hHvF+CZVwWqOe67J0mZFr7MlfcTyUj6UcJ2ledKwL6NZ4Iix83JupQRbDJmj XsYUcsn1PaAG1vYPbwAhW5F1a56TUqcjHdQUxdU3nlxU0O6m/jidvujK+Kyvv4rqeuL3 m1OBbUEuY41jIM8zM+OdiX8oT6RWyTGGX5m6dfLa1kQfO9UCFYrlxpmg+TsCfv+1ssKU Qej7sSxpaTbGS93xZr/jGGT6nsHihsdZP3End3IQlFoaFt4eUys/bpFVMNYwt4B181Aa UgwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=kVv58H4NLf6trOwSGu1Y0GjLZ/Vbq0+eMkS7BuVdxeg=; fh=RX43QWssgne6BIfteQTIbsikyXnF8188STe924WySqI=; b=JFyj4qQ8XHpZe7bnfK0UspmE8dy+q+18FKI9lr1RMPFSOnGdPgvWxIlVaQplPxNWBB is1uK5UBPiFlwcjF36sbG9w+Bd3x+fLpW8U2wRGFaVaccx6J6tg4/UxDPuAf7i1xGdTt 337dbiBiCgahBaCyqxfhb64MsrNmxzJHgd9cxsicYpjJYYFREYQDlL1m2OU/1ckFs3JD SwfsdBAakdhQBKN+mPnYnjm0G5/j1LhYyhyI9brEKeBnXNjq6qnzVNKrTnvUUodNTcII I+HYImE3i3RTDQsV3TWlz5+Kubdn1M+blQNUUMhhrVfFzsxnapoQamT+bM4O4f3zxr1b mo4g== 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 r18-20020a170903015200b001bba73ddf5bsi9327632plc.566.2023.09.05.10.08.09; Tue, 05 Sep 2023 10:08:23 -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 S240992AbjIEQsV (ORCPT + 99 others); Tue, 5 Sep 2023 12:48:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354392AbjIELSF (ORCPT ); Tue, 5 Sep 2023 07:18:05 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AC6EC1AE; Tue, 5 Sep 2023 04:18:01 -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 31E9611FB; Tue, 5 Sep 2023 04:18:39 -0700 (PDT) Received: from [10.1.196.40] (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CF5BA3F64C; Tue, 5 Sep 2023 04:17:59 -0700 (PDT) Message-ID: <932355b4-7d43-a465-a2da-8dded8e2d069@arm.com> Date: Tue, 5 Sep 2023 12:17:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] dt-bindings: interrupt-controller: arm,gic-v3: Add dma-noncoherent property Content-Language: en-GB To: Lorenzo Pieralisi , linux-kernel@vger.kernel.org Cc: Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Mark Rutland , Rob Herring , Fang Xiang , Marc Zyngier References: <20230905104721.52199-1-lpieralisi@kernel.org> <20230905104721.52199-2-lpieralisi@kernel.org> From: Robin Murphy In-Reply-To: <20230905104721.52199-2-lpieralisi@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 05/09/2023 11:47 am, Lorenzo Pieralisi wrote: > The GIC v3 specifications allow redistributors and ITSes interconnect > ports used to access memory to be wired up in a way that makes the > respective initiators/memory observers non-coherent. > > Add the standard dma-noncoherent property to the GICv3 bindings to > allow firmware to describe the redistributors/ITSes components and > interconnect ports behaviour in system designs where the redistributors > and ITSes are not coherent with the CPU. > > Signed-off-by: Lorenzo Pieralisi > Cc: Rob Herring > --- > .../bindings/interrupt-controller/arm,gic-v3.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml b/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml > index 39e64c7f6360..0a81ae4519a6 100644 > --- a/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml > +++ b/Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml > @@ -106,6 +106,10 @@ properties: > $ref: /schemas/types.yaml#/definitions/uint32 > maximum: 4096 > > + dma-noncoherent: > + description: | > + Present if the GIC redistributors are not cache coherent with the CPU. I wonder if it's worth being a bit more specific here, e.g. "if the GIC {redistributors,ITS} permit programming cacheable inner-shareable memory attributes, but are connected to a non-coherent downstream interconnect." That might help clarify why the negative property, which could seem a bit backwards at first glance, and that it's not so important in the cases where the GIC itself is fundamentally non-coherent anyway (which *is* software-discoverable). Otherwise, this is the same approach that I like and have previously lobbied for, so obviously I approve :) (plus I do think it's the right shape to be able to slot an equivalent field into ACPI MADT entries without *too* much bother) Thanks, Robin. > + > msi-controller: > description: > Only present if the Message Based Interrupt functionality is > @@ -193,6 +197,10 @@ patternProperties: > compatible: > const: arm,gic-v3-its > > + dma-noncoherent: > + description: | > + Present if the GIC ITS is not cache coherent with the CPU. > + > msi-controller: true > > "#msi-cells":