Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1523595rdb; Mon, 8 Jan 2024 01:46:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0efAyD04IeRebz6QbvMOi4gXjWAFypnMyxi/KcI1BMsCKuj/cKOdrPYq5STnYqGg65DdK X-Received: by 2002:ac8:7f10:0:b0:429:7658:d6fd with SMTP id f16-20020ac87f10000000b004297658d6fdmr5516853qtk.35.1704707161646; Mon, 08 Jan 2024 01:46:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704707161; cv=none; d=google.com; s=arc-20160816; b=ABm1+G/QofywUTzf8K7DfmkwrIFC/CFnuGoJI7YC+WWgIm7xUBL8RSMPI7eZAAwh41 v671QKb9KTU4M0Mj16xPW3VfEyRkS+jZj4/nBSXQkEaqBDj9KYu0FGI+Ha8lVV8JKEhC 1nXfw59BteGsOwY4uPx4E7ZWFEqnj2IjjAFFLFwXAxM6+NgE23IKdiF8vOyDQn9yzSXI 2IinjhzFvgBvYNtXNFlNYXJZd00qaui2eTkPIok3u28X0fD5JYuBjxQkMq7IQLcbzRlf VDiz1GiVvY+mzDoXQ5aYAj3Ddn8khCOpQgaUWPt0duAUyAeQUfpjGkQIkgqDeWuY52U8 UCSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=L954RiQvlah3mCnkpYlOc5PQhaQUqnAisX2a9/I/2is=; fh=Xr8SjMO9CkZ9zvnAK0hvXk9uAWutx3bYqQBDouJ/FmQ=; b=m3P0A11Vjdpyl6pdJkcU0XlWxAw1hS/fo9G0FL9g75zxcc4pOVoMSMYLAf2vdlfXCS 4Z+vdna5ed0YwpV03qt+lAPzuQquIwdSf3rsuh4+QAB5yXhay3YlKRpWenwEBgj6YYJL k+JIYA/hRmcMZMxGjolpNYAJat9wCc5TJ0l8ixdAEFiMCvrsbe3J5a6A+rlcksWwSOH+ 1I6doXsHFBfkBgp9/XdbsPJop3577iWWBXA0LI0CyTAc9GdCG1GmBmYIyZ6SfoVxl6fB 8YayNSvOqywAxRasmclgH8WE95N/iu00clM0TIc/z0tEEiheRoYr84nukBoZM0cTejZd 95RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nAbQPibr; spf=pass (google.com: domain of linux-kernel+bounces-19297-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b18-20020ac85bd2000000b0042813d99215si7336250qtb.244.2024.01.08.01.46.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 01:46:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19297-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nAbQPibr; spf=pass (google.com: domain of linux-kernel+bounces-19297-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 67C271C21D74 for ; Mon, 8 Jan 2024 09:46:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6D55134BF; Mon, 8 Jan 2024 09:45:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nAbQPibr" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0160B13AC9; Mon, 8 Jan 2024 09:45:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF012C433C8; Mon, 8 Jan 2024 09:45:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704707146; bh=f6WCM1z5/+ZFnyvuqtaD9vtixmN+3lnBNV++wPJ45j0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nAbQPibrQv3/Hig92JSWM9+EyJ2L7BwdnVsvdnKK9UBDsZva0Y0T1cGvdXfUXuetn CFL60LWh68TC+opYZUkdUQ5BxRNhWG1wthBvONFdLirRanS8lqw3CtIUdGNgtURYsW jwqM+5byNHS9eS7RLYU8PQmRjT6ZLfO//UZHEtgnKiT3jLP0tMXaKPyPnOLF8x2Rrc SwQ8av8OlFUAf1d6stadBWO/sqzFiOUZA2AnaVFMSGan5h27z+G0XW4VlfiExAqN0k cGIcVzf8OBj7+Ft/4Ia2Y3xYmPkIguRXHhezDyPoZtGV3RhoUjSAmO/CYOEbcTGtaa hKqFoEA5R/Cww== Date: Mon, 8 Jan 2024 10:45:40 +0100 From: Lorenzo Pieralisi To: "Rafael J. Wysocki" Cc: "Russell King (Oracle)" , Marc Zyngier , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, Mark Rutland , Robin Murphy , Fang Xiang , Robert Moore Subject: Re: [PATCH v4 0/3] irqchip/gic-v3: Enable non-coherent GIC designs probing Message-ID: References: <20230905104721.52199-1-lpieralisi@kernel.org> <20231227110038.55453-1-lpieralisi@kernel.org> <86h6jt9vs7.wl-maz@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Jan 04, 2024 at 02:21:44PM +0100, Rafael J. Wysocki wrote: > On Thu, Jan 4, 2024 at 1:04 PM Russell King (Oracle) > wrote: > > > > On Thu, Jan 04, 2024 at 11:34:48AM +0000, Marc Zyngier wrote: > > > On Wed, 03 Jan 2024 13:43:16 +0000, > > > "Rafael J. Wysocki" wrote: > > > > > > > > On Wed, Dec 27, 2023 at 12:00 PM Lorenzo Pieralisi > > > > wrote: > > > > > > > > > > This series is v4 of previous series: > > > > > > > > > > v3: https://lore.kernel.org/all/20231006125929.48591-1-lpieralisi@kernel.org > > > > > v2: https://lore.kernel.org/all/20230906094139.16032-1-lpieralisi@kernel.org > > > > > v1: https://lore.kernel.org/all/20230905104721.52199-1-lpieralisi@kernel.org > > > > > > > > > > v3 -> v4: > > > > > - Dropped patches [1-3], already merged > > > > > - Added Linuxized ACPICA changes accepted upstream > > > > > - Rebased against v6.7-rc3 > > > > > > > > > > v2 -> v3: > > > > > - Added ACPICA temporary changes and ACPI changes to implement > > > > > ECR https://bugzilla.tianocore.org/show_bug.cgi?id=4557 > > > > > - ACPI changes are for testing purposes - subject to ECR code > > > > > first approval > > > > > > > > > > v1 -> v2: > > > > > - Updated DT bindings as per feedback > > > > > - Updated patch[2] to use GIC quirks infrastructure > > > > > > > > > > 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. > > > > > > > > > > Lorenzo Pieralisi (3): > > > > > ACPICA: MADT: Add GICC online capable bit handling > > > > > ACPICA: MADT: Add new MADT GICC/GICR/ITS non-coherent flags handling > > > > > irqchip/gic-v3: Enable non-coherent redistributors/ITSes ACPI probing > > > > > > > > > > drivers/acpi/processor_core.c | 21 +++++++++++++++++++++ > > > > > drivers/irqchip/irq-gic-common.h | 8 ++++++++ > > > > > drivers/irqchip/irq-gic-v3-its.c | 4 ++++ > > > > > drivers/irqchip/irq-gic-v3.c | 9 +++++++++ > > > > > include/acpi/actbl2.h | 12 ++++++++++-- > > > > > include/linux/acpi.h | 3 +++ > > > > > 6 files changed, 55 insertions(+), 2 deletions(-) > > > > > > > > > > -- > > > > > > > > I can apply the first 2 patches, but I would need an ACK for the 3rd one. > > > > > > > > Alternatively, feel free to add > > > > > > > > Acked-by: Rafael J. Wysocki > > > > > > > > to the first 2 patches and route them via ARM64. > > > > > > Thanks for that. I have some comments on the third patch, which I'd > > > like to see addressed beforehand. This is probably all 6.9 material > > > anyway (nobody is affected by this so far). > > > > From a purely selfish point of view, it would be useful to have the > > first patch merged merely to reduce the burden of patches for vcpu > > hotplug. > > OK, since there will be at least one more iteration of patch [3/3] > AFAICS, I'll queue up patches [1-2/3] for 6.8 (next week, though). Thank you Rafael. Lorenzo