Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2303629rdb; Thu, 21 Sep 2023 14:48:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuHPlm/s70lnPmep8ez9ASoUdwFT9Od57cpURAwDq+7OCRXAPdfl++Ud/CYIRJueZs8MlW X-Received: by 2002:a05:6a20:4415:b0:153:39d9:56fe with SMTP id ce21-20020a056a20441500b0015339d956femr8300189pzb.47.1695332907106; Thu, 21 Sep 2023 14:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695332907; cv=none; d=google.com; s=arc-20160816; b=DahzQ7NKbUyHkt7Yc0fZVHIF07duzp5gjvHG6Q+sRgK/z+LSbi8W13MWE/jxM1pySL eo+vPEesVVAovnfkOZJOj7HhGTskw2ClfBjwgbbTVMtzGnD31Dk+raYAn9awT6/CtmZf TR5z64hwYzODTaqaBeJnV4Rh0uzNKN3/aE9RNQHuWmE77xBNWnn+A/7wFEE+G/H/JLFr h/JgpwOjLJpgod0crh08yrZ92xTX7j/oBSJ3WMRR6VrAS+m1OtxFHgv6duEduWUjs83K AtEtEHem1c5oL1ZYFa06+crP9QtR/7jJOyNigKR+Vu0RFM9xFMWxpb2ewSPMaxylGckb 0lFw== 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:dkim-signature; bh=diqMvYKxVvuq+0fwIvifv52lK0x/GDQE/vGKiTfBaD4=; fh=4mLuuH6j3MyiYtUJZW/LTpoy1PPjsCUYQZZjpgW4J6M=; b=Sk+Rm5hpqcZmGzfp6EHBKizUZeYR35loEeSWgJLdfkeRAsHMEWD6EZVStv523YyrBr ZAQWAPFXosBaGTYQLnPlFWeL4xMiWB8XPCGgUR+BoeAney8Jpu1qDD42b9oN7URk0F66 WNcaPKZ0AaujV6t07g2ASZkX/n/Er1iULAibRLZHa970kxppiK6POEVw4Mksf3KTW/y/ Ki6VixKZ2k2Sth+TACqf3U8vl1b3nPncKtPh+xiab8kMgnEDvSiXgEyl+AEjF8YiEW6R FQT+NSYy8bbqkK7jAnytaNN2a9sDlRQ2Yo7DzlyN1B9MLUCCkQtVnkZaXGSeTWOuK0dA +nnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="FWi/MotY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id p6-20020a170902780600b001bf095dfb74si2134856pll.66.2023.09.21.14.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 14:48:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="FWi/MotY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 37C8381C00D9; Thu, 21 Sep 2023 14:35:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231807AbjIUVev (ORCPT + 99 others); Thu, 21 Sep 2023 17:34:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231817AbjIUVeG (ORCPT ); Thu, 21 Sep 2023 17:34:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A68855AD6 for ; Thu, 21 Sep 2023 10:17:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94BADC3278E; Thu, 21 Sep 2023 10:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695291104; bh=AdutLBV21eG6/I5c7ck2kz5+kkufzxzMbnOhofwlRNc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FWi/MotY0IkufMUjM3uKZhdm+J7+OHxVMKxpp9S4ULn+0QBoAqNetS57FJt/Z82Jj O4jZOEpZ3K3DMsxVN+AsCK9an9VanRO9LUCPf2MBL+cJpjENamWN9SyImsDiZcXI9M m/tL9UhfOGgSLpLh2gRs6oovaNH1q5HV9y/R/oWLEwq2s5zLxtdLlG9agn0VqQhJiG 4zdLRFTvjZau67sD0cWB/t3ORDx8iPIqHJOL3U47iHQx+k5Fv7q0/+lvXkWbeAnYgD B8+L/gxKzFZDKtMqiOqOSatrbOTGqf6csrNnPMWYgsj50Ls9fgs4iFIk4auWYhyVOr x+I/nBQXLndPw== Date: Thu, 21 Sep 2023 12:11:39 +0200 From: Lorenzo Pieralisi To: Marc Zyngier Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Mark Rutland , Robin Murphy , Rob Herring , Fang Xiang Subject: Re: [PATCH v2 0/2] irqchip/gic-v3: Enable non-coherent GIC designs probing Message-ID: References: <20230905104721.52199-1-lpieralisi@kernel.org> <20230906094139.16032-1-lpieralisi@kernel.org> <6f94c6d38f00031bf7c59e0cb8baf04c@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 21 Sep 2023 14:35:10 -0700 (PDT) On Wed, Sep 06, 2023 at 01:23:30PM +0200, Lorenzo Pieralisi wrote: > On Wed, Sep 06, 2023 at 10:52:01AM +0100, Marc Zyngier wrote: > > On 2023-09-06 10:41, Lorenzo Pieralisi wrote: > > > This series is v2 of a previous version[1]. > > > > > > v1 -> v2: > > > - Updated DT bindings as per feedback > > > - Updated patch[2] to use GIC quirks infrastructure > > > > > > [1] > > > https://lore.kernel.org/all/20230905104721.52199-1-lpieralisi@kernel.org > > > > > > Original cover letter > > > --- > > > The GICv3 architecture specifications provide a means for the > > > system programmer to set the shareability and cacheability > > > attributes the GIC components (redistributors and ITSes) use > > > to drive memory transactions. > > > > > > Albeit the architecture give control over shareability/cacheability > > > memory transactions attributes (and barriers), it is allowed to > > > connect the GIC interconnect ports to non-coherent memory ports > > > on the interconnect, basically tying off shareability/cacheability > > > "wires" and de-facto making the redistributors and ITSes non-coherent > > > memory observers. > > > > > > This series aims at starting a discussion over a possible solution > > > to this problem, by adding to the GIC device tree bindings the > > > standard dma-noncoherent property. The GIC driver uses the property > > > to force the redistributors and ITSes shareability attributes to > > > non-shareable, which consequently forces the driver to use CMOs > > > on GIC memory tables. > > > > > > On ARM DT DMA is default non-coherent, so the GIC driver can't rely > > > on the generic DT dma-coherent/non-coherent property management layer > > > (of_dma_is_coherent()) which would default all GIC designs in the field > > > as non-coherent; it has to rely on ad-hoc dma-noncoherent property > > > handling. > > > > > > When a consistent approach is agreed upon for DT an equivalent binding > > > will > > > be put forward for ACPI based systems. > > > > What is the plan for this last point? I'd like to see at least > > a proposal before taking this series in. > > Absolutely, I am starting a thread on related MADT changes, should not > take too long. Quick update, bindings filed, I will code against it but we should not merge anything till it is approved (could be missing v6.7 timeline). https://bugzilla.tianocore.org/show_bug.cgi?id=4557 Lorenzo