Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7129695rdb; Wed, 3 Jan 2024 05:44:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEaewdmAbVPHiUrUXdraJyWHXayoOjUjqNXlGl30/6X/ry3D4OJo+T05+RKfZ26p7hjAxan X-Received: by 2002:a05:6a21:1a8:b0:197:fb0c:b86c with SMTP id le40-20020a056a2101a800b00197fb0cb86cmr456324pzb.10.1704289445840; Wed, 03 Jan 2024 05:44:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704289445; cv=none; d=google.com; s=arc-20160816; b=jxRGq1RXyLmNE0z1WDZTUfPGJxoHet3fmYvJH7khfpgZvqStwKnqjatmFntp0z95Z0 dpKuBL3gO9go89FzK3drw6yvnXKek21N9pUvrm8SEaGZyjxoV/rgfbioEQCc9MmJHCn7 jgJZfosdROZyHITnPF/TlhrEJB8+wb6JlVmvAMGaV18EAkPcyo2mooM7yZPt3EoZ3BLe qxVoT2CUKCViBcWDqltPAUuNIp22NfRJ166UeDjT0sAV56iNg4l5vL4CYsYkZYrU3UdK ECPKhcdyLKD9huyCT6OfWrH1Q2vR2QpWZjDC53pApyjTlNK6If9bxmQaoDDnQmru/APt kjLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=iyL0U7ReWWKWObMLjmNTrzqgyVE7GbO/GB0G3IW1n/Q=; fh=+hv1z9m3qbMc8SSskqGF5WijbKrQlX37TApniGDRmxA=; b=uXPH4aehJd/IpirJ5REYGR6wz3jax7aNZdUFFyRBTHrmAr25Wf7LcW9xHOdiy9Oszz wXPHXTKN+Q2IAZcwNHCrMAdPuCajTHmw8wvzKSDN0MNu98FgquJFyu57x0jteW9cc41h KQy5E2mFTM3CkhewW4nH8Cv9ng6zt44Lrb4N4CDDd7r1s31CGbsGgGaAuHugAho4VeqT LUNJlQZiJlWpXyHWqu06/1ANjTz9nl05FqOU7yOyavhCzOfBbbCO5EVHypyiQIBCxg9f qCCgjRpUJTxU4OO1lC+V3Wuc5QAFdFQ42UnvUgZFUt05mT7mbdeWQl7YD/MzCNbi4tmi jptQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15612-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v14-20020a17090a7c0e00b0028bf1c4a1e5si1264412pjf.113.2024.01.03.05.44.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:44:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15612-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15612-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8185928438B for ; Wed, 3 Jan 2024 13:44:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7B3E1A5AE; Wed, 3 Jan 2024 13:43:31 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oo1-f47.google.com (mail-oo1-f47.google.com [209.85.161.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EB9D1A5A9; Wed, 3 Jan 2024 13:43:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f47.google.com with SMTP id 006d021491bc7-594cabe74f8so371544eaf.0; Wed, 03 Jan 2024 05:43:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704289408; x=1704894208; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iyL0U7ReWWKWObMLjmNTrzqgyVE7GbO/GB0G3IW1n/Q=; b=JVlYE9RdZwnNlU6muVlj/fg8fzRU3rlNGf/SdjhULQL+uuSXlqVgtBawRd8AY3LJze 49Ezc2uucoOJS3uzgMFjzqp0oilxl4JdnrEDP+Llp7EhEk6bODwBacn2lbTXpEVRLuUn QIyRfEV8sN7/8QoEMY1n0IFVugKRZKhEJPBWgeO9MUonZAspkwaMbdmS+tc8JcDkbjO3 fT9YCoaeAP4sIEqCwonWT2q/NucLv2E3mWQF8XnZwJKcADpvNQGeQqb5AFTa80zHB4DN 6HqiMQs6hS/2MLn8KQConcoRKFbTWVB6+8Gnz/DcOrwKJL/2AzkPcx95QMwYQCQv+LpV 4WyQ== X-Gm-Message-State: AOJu0YwON7gqXLaKYgJq98Vh/oAdOtYjtx055MBUQO80wl2ehHQRIY1R Zd99VSFTFFyxz8W77YuNKxgrrUDkj05uJkiRi2o= X-Received: by 2002:a4a:dc96:0:b0:594:ad62:bab9 with SMTP id g22-20020a4adc96000000b00594ad62bab9mr20085697oou.1.1704289408312; Wed, 03 Jan 2024 05:43:28 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20230905104721.52199-1-lpieralisi@kernel.org> <20231227110038.55453-1-lpieralisi@kernel.org> In-Reply-To: <20231227110038.55453-1-lpieralisi@kernel.org> From: "Rafael J. Wysocki" Date: Wed, 3 Jan 2024 14:43:16 +0100 Message-ID: Subject: Re: [PATCH v4 0/3] irqchip/gic-v3: Enable non-coherent GIC designs probing To: Lorenzo Pieralisi Cc: 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 , "Rafael J. Wysocki" , Fang Xiang , Marc Zyngier , Robert Moore Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 27, 2023 at 12:00=E2=80=AFPM 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=3D4557 > - 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 handli= ng. > > When a consistent approach is agreed upon for DT an equivalent binding wi= ll > 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!