Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp460531rdb; Mon, 22 Jan 2024 09:20:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEN4uNCDFB9zQfBlgSXwyiiLi/p9orWxQyzyi5oeVVRW7xmMITvLT8FB63HOBr0PE/dOjcD X-Received: by 2002:a05:6870:a101:b0:204:1d93:f850 with SMTP id m1-20020a056870a10100b002041d93f850mr230180oae.110.1705944051366; Mon, 22 Jan 2024 09:20:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705944051; cv=pass; d=google.com; s=arc-20160816; b=i6AoJKQp06cTYamp1CVXJovlPYrkKxvlm/XEzo/gufTYBenFpP8fp2U0Aqcot6t2C6 KaAz6fa9Ar8Kix5yq/WHZ2/+lHGmVysH+69/AhdhyWnA84x6Qr0BSP6dSxRRA1oGWObb R+jEoHkWs3vloG9XCl9SmSI12Wus9y6qM6sPDw3Wn4e4gIQavP9DZgD/VV7h8Ni07LnR Mqh8XTkRSJ67LArCYB4UK8EoLn+75CXg9zz5WwLMhIkd1wJr/Y0ZrwAr5yuesXhAL/HN zMnFpLb58UYHl6I8qG+w3f35I4ORbQ5fmt1BMVo8W4QYXZOyRIpOo38cSlF0fkyy0gq2 FCfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3+8xirzT1bxHAEH6Lgx7QR/AXWDBXeT4FnFeBwTbnPk=; fh=jJc4HhD4232QWxZkHQU8/jeZvtkWL8yRduezwTmqmuk=; b=NbSOwUgXJtGbDiLY+yMMLlaOZrkl4KAfIH19LbiIOR8TwHQdQt3NIt/IfmSpPwap1w KQDt41rX4qZiu02x0iwpSdRYJAgvQiDBKpaNCEFsLAgLv5lMdQUnWcPLm2Jms4Mu2VIx bsVdW5dms+DSYwVXNEAQtroADzNtVT5CSRYmTu7Ht2oAoyfBHAcBG63W7owVl8hwBqyX uG3WrEDTLHx79IDLwE4CpHODuiXWUOXycNIyOeA4uPXwX7KF05bSN7NkbdobzX/VfhaN StnosyAFyXZvgR9j/bOqZR8+gl5pzNXGlVng/g5tepwdmjJlvL2o6RVrYLX1ZTnPvfTz fGfA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RS+FCjUH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33666-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33666-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. [147.75.199.223]) by mx.google.com with ESMTPS id b17-20020ac84f11000000b0042839f9aae5si5622029qte.769.2024.01.22.09.20.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:20:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33666-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RS+FCjUH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33666-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33666-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 5EACC1C22A30 for ; Mon, 22 Jan 2024 17:20:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38C644F897; Mon, 22 Jan 2024 16:18:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RS+FCjUH" 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 5937B3F8D1; Mon, 22 Jan 2024 16:18: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=1705940291; cv=none; b=V8wxdetAMijvwr78meH/LcWhnOwPqbyonzC0XjZaUljzaKEa9Mrb0n3hnaaQYlFbLllnepp3z3a7UL41VrcKVd9KF4Pr7OR0Fgew06m2ZaQx0rZLr7+R6OB3soFpw7Jgv0Zj2fZnGq1rZkv2dNXl3lIU66lRp1LQWJezBtMOSTw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705940291; c=relaxed/simple; bh=WDAnCV9Ra1LfdfiCu5KUZtV9r+eTg+bc/y0G1AdYs68=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rHRiNyndcFiZRYmhySFoSYiVjyTHRgXg7uGC9JmDvtXa7b3RvSxFGfLJ3VylLB8/eJfP5c16qB7bZkJ6lv4ZZbtMKrKdi4uOIyNp1pG8TBeqCNDnQpaqspLyYDYjmQWoFMLuAyiTQKl/ioDdulv9Z/DxghHOTPW1VyJgFUmtbGM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RS+FCjUH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DF1EC433A6; Mon, 22 Jan 2024 16:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705940290; bh=WDAnCV9Ra1LfdfiCu5KUZtV9r+eTg+bc/y0G1AdYs68=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RS+FCjUHhg+ZtvA25siHP9vJuHFDG9pNT0ZYWi9BoJg1/RjWftZzKK/17uqQ/Tpx8 WJVGnWUQXYyZ7pssaMJpxDdg0oAPCp3l/gD/yf9XD1Vj8ZTfm4Q7PTMBpDY3/5Ec9E UVMYUWswJfsZoai7e4TYHXtXrADib5wJRE0vcOGubW6v6HSQhey3/kX6+5SYFAmAv0 qwT+07n2gsqHjAZJCO6LfjPqdiD0cX7rbF/QU7IwILpFkEGhfvpkbhwCm/UnCRi1lQ H3qSb5vGJy4zachG7xZN2IIxxiJm5UIA6a5DNVRInn7d0Gaxv4JBIVMZbPbF8K1yU+ Gw05OJGYleqhQ== Date: Mon, 22 Jan 2024 17:18:04 +0100 From: Lorenzo Pieralisi To: linux-kernel@vger.kernel.org, Marc Zyngier Cc: 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 Message-ID: References: <20230905104721.52199-1-lpieralisi@kernel.org> <20231227110038.55453-1-lpieralisi@kernel.org> <20231227110038.55453-4-lpieralisi@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=us-ascii Content-Disposition: inline In-Reply-To: <20231227110038.55453-4-lpieralisi@kernel.org> 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. Thanks, Lorenzo > gic_acpi_register_redist(gicc->gicr_base_address, redist_base); > return 0; > } > diff --git a/include/linux/acpi.h b/include/linux/acpi.h > index 54189e0e5f41..a292f2bdb693 100644 > --- a/include/linux/acpi.h > +++ b/include/linux/acpi.h > @@ -283,6 +283,9 @@ static inline bool invalid_phys_cpuid(phys_cpuid_t phys_id) > return phys_id == PHYS_CPUID_INVALID; > } > > + > +u8 __init acpi_get_madt_revision(void); > + > /* Validate the processor object's proc_id */ > bool acpi_duplicate_processor_id(int proc_id); > /* Processor _CTS control */ > -- > 2.34.1 >