Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp31730rdb; Mon, 22 Jan 2024 10:58:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/HdbPJKHhWNOcv9PtnTThOsxONxKNOzsf/1eIeFG1np3y1UnkE7uixfbhd7VyKqFkWyjH X-Received: by 2002:a05:6512:2356:b0:50f:ff74:cd93 with SMTP id p22-20020a056512235600b0050fff74cd93mr472168lfu.60.1705949881404; Mon, 22 Jan 2024 10:58:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705949881; cv=pass; d=google.com; s=arc-20160816; b=LKnK0Le/e7Diy6SXdWxMIHi8i8iHUkttw9kF+PvIwJJ4zqv0pBNxk1ZyvlHcnFWWVh xl400tOL8lgAqpaHm6o3gUfQP6XRGdPSAIBzbqr+9oIqtNKjgxw2Y2uKegg/7QTRnzY0 7ZBvhEewKdzuV55GcQcbjeNP1IqOr2ZHylDJMXGp2fOD5DSVwR8kbcb4Vz//8Uo51v8d mocARdh6YimEdK8DyiANJRDzOPTp72xmOSIK+gkVZ9teUKU/+vVQqDv65/Lthr+hgOQZ wzs479YZ8JrJnEoPxq5OhnikmQSTz4hFx/usQYJnqPaGj0cGChpcblDr+tU6EBxYfR6P bHOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=oZn5UlLBsXs9gwaLx7xfLE9RNMmdLhiPj5PZxDiiP0A=; fh=nqCAEgswBK1U9iwPhscgUX0IxdupzXoW0ixSwhUY1RU=; b=UAssv1mp1UW5Nv1PiBfHed4virt9En+4pA0AT8vfvw1ljlZ8kByHFryh83TxRDsXyr y9kKTdffU0GgJ35YduQHq2jvMkI6vXgZhjc87+jcMdthxJJVWQlJXEJ/H3KMlrWI4/B1 rh3uPCE6jLc+6bntQ/pvEoM1rtdqN1aw+FgDxIUuSWn4oO6HOON7NQ8v/q3JAh+sUWAt 1QIRfcm2f8PeSiDKqriGMUToPLuegbZvde9ha/xCDOUog8ZiBLTlPbiaa7WCIlr6IvvZ zUkE2J7HBYcsAzkWoM0z+181sROTBAFEspSecqXYVPz4H+Mm6kUUHCvFpXO6WUbcawim 5Ojg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J9ORIfSZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33982-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33982-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y25-20020a17090629d900b00a2e5c29768asi6961061eje.474.2024.01.22.10.58.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 10:58:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33982-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J9ORIfSZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33982-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33982-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1CFE51F297B1 for ; Mon, 22 Jan 2024 18:58:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9F434E1A1; Mon, 22 Jan 2024 18:27:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="J9ORIfSZ" 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 DCE3F3FB3B; Mon, 22 Jan 2024 18:27:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705948032; cv=none; b=WX7rqz53ntMi0PnKHlsO6zWCepuCsOIDtXRemmzozXI144T5UmF5NxqD5Dhc6xbOmrRnTb18c4eELymDctHSuunYdYbzfOhxkt7dLawii/ag2AZM8ZEn8Sn2RO4h/WZ+pqEe39vXn4JzlQ9MwAoCl4314jd9tPD+IGgc7AOby+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705948032; c=relaxed/simple; bh=oTAlfbxsHwQumPtM8k60cVyd41GO2x5zNL8PvATJItY=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=b8DszN7jgP5ei0l+DumZx0D+nvaz7R9Ky2gnj6CqiykXGS9h6R+AlqfUXhi2y8HXkb74dX4xqik7ab3NFIPeCqyh2N243v9dn/KIjq1wzaE+H2A7XD414fplZ+9/gvUZMrPUbR1XW+zSYMKXu9YoDMDNRZGOzxTiy3YX3UodWMg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=J9ORIfSZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6802C433F1; Mon, 22 Jan 2024 18:27:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705948031; bh=oTAlfbxsHwQumPtM8k60cVyd41GO2x5zNL8PvATJItY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=J9ORIfSZ+MRVSajWpgmPnnuIchex+Hzj+KIIJ2f2sC0/WGQ/kZEUz31x77bFc+39b HXos+5aYkRhgqBA7kcW6n9q65adE3yCD6NqNMYtpMOLqe8Vcdgecx5od49itv7o6Qc rzGRzHuss8mspDWw+cnc5tVIFaCya0ofY/5HZTA/lvQxcYIM2laOPChzgztB1w1XYL pKjWnUkmKtnoS8jICKdks7Pol52M8NEc+jF0natgh339ow8vcvvsZoReoNZxeSZGTt Vb3kw2QFdKMECuEETJXCfx939a/L3ElVmGA5OuXpo5ON4FkutuLLnGhMBNe6q3N0yN en9vkQl6kTumQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rRz0n-00DhTj-J5; Mon, 22 Jan 2024 18:27:09 +0000 Date: Mon, 22 Jan 2024 18:27:09 +0000 Message-ID: <86plxt8br6.wl-maz@kernel.org> From: Marc Zyngier To: Lorenzo Pieralisi Cc: linux-kernel@vger.kernel.org, Robin Murphy , Mark Rutland , "Rafael J. Wysocki" , linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, Fang Xiang , Robert Moore Subject: Re: [PATCH v4 3/3] irqchip/gic-v3: Enable non-coherent redistributors/ITSes ACPI probing In-Reply-To: References: <20230905104721.52199-1-lpieralisi@kernel.org> <20231227110038.55453-1-lpieralisi@kernel.org> <20231227110038.55453-4-lpieralisi@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: lpieralisi@kernel.org, linux-kernel@vger.kernel.org, robin.murphy@arm.com, mark.rutland@arm.com, rafael@kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, fangxiang3@xiaomi.com, robert.moore@intel.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Mon, 22 Jan 2024 16:18:04 +0000, Lorenzo Pieralisi wrote: > > On Wed, Dec 27, 2023 at 12:00:38PM +0100, Lorenzo Pieralisi wrote: > > [...] > > > @@ -2380,6 +2385,10 @@ gic_acpi_parse_madt_gicc(union acpi_subtable_headers *header, > > return -ENOMEM; > > gic_request_region(gicc->gicr_base_address, size, "GICR"); > > > > + if (gic_acpi_non_coherent_flag(gicc->flags, > > + ACPI_MADT_GICC_NON_COHERENT)) > > + gic_data.rdists.flags |= RDIST_FLAGS_FORCE_NON_SHAREABLE; > > + > > Quick question before reposting it. We run this function for > every GICC entry, I didn't add a check to make sure all GICC > entries have the same flag value, please let me know if that's > OK. > > I don't think there is a point in keeping a live variable across > calls to set the flag once for all either. I don't think that's useful. Once we see the flag being set, we'll enforce the non-coherency. If it wasn't set before, it's because it wasn't necessary. If one day we find a firmware that only randomly exposes the flag, we'll treat it as a quirk. Thanks, M. -- Without deviation from the norm, progress is not possible.