From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0F5F3C47DAF for ; Mon, 22 Jan 2024 18:28:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EFGKP39U9Fr2bC+GvsLs4ip1eB3k1+Le6Wvbxj9qPBk=; b=IhbEcdZhDo8b7J Z7Y19MQOMqZKm7CRgoZoffFqnV9OlejiV3WrjXls9hHIIKV3gRwxVPFSBSTLYIbyxSAV1rx2vnMck YgS9SpWxtL9wYlmdjvMqPn58gJqwBZdpPGO/s72qbEUMkDKoi+TsgFIvXKA12jtkcAWNbpmry2W2w hILQ3LyKcaU5KKJcDIiA/al8rNIZdLlOaR9IBvY8we1tZ5kU7Dnu4exOBjc3ArzuYxuSNcKKq6ZbK Gh7OhMcabYr/P5TQ7rQPw8ReZwsqftsWCU4Jbr6bbBUJR4WrOde7e2cy+OlT4RHOrY3jm2kBqH2PG XnJaglDAqYofpN+FXnNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRz1N-00DWdc-0t; Mon, 22 Jan 2024 18:27:45 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rRz1K-00DWd9-27 for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2024 18:27:43 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 11A4B61069; Mon, 22 Jan 2024 18:27:12 +0000 (UTC) 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) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240122_102742_732530_D36885AA X-CRM114-Status: GOOD ( 20.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel