Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3298083rdb; Wed, 27 Dec 2023 03:01:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEp8PFp9H0imgx2XPFp20hwfpWtZ2aj/W1gOBaAmqMlHU5z3la1j1b4YWhIfQo47SyjM4x5 X-Received: by 2002:ac2:51b2:0:b0:50e:80d2:4ddf with SMTP id f18-20020ac251b2000000b0050e80d24ddfmr953998lfk.99.1703674879725; Wed, 27 Dec 2023 03:01:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703674879; cv=none; d=google.com; s=arc-20160816; b=ZFPBnfrrgzrsnb4V6OHMTfLqkNBiGcShh1abfQL7ScXPrwtWMZBP9c3vxPzziSJhux Hd6CqzhawWZZc6CPYamHANIhi9Wp0hQY0l9SjlRx+QWHsw0+oxK7EYGnOs4fYe0qfqHK bcE2G06uOPNHg90k/m1UM3nX3QsH7bPHGZ8nwRv8Ae/zSQI3UQm17G6b73PvU8YXK+36 KFyHCKqpg8dGDLRbUuhVyyt5M3m7R53IYStGBnMdbbjnkPAujHycsp+dbQL1bKPftt8l cTkclvvZPV3LnafpiqI9vYAfXyclPgQJ74MrtnVIdpf4BjDyhAZxee0QKoc6yqlwrrdd M6RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=V4bFPuxdbD/6SjrAXIBLcdsRV2zyoB+iNwqADTUFkKk=; fh=C8gVY265bQFvyWMUdytrlmBpSudO3PShOKoNznniSbY=; b=EF2/iWw8i028ncF1wVQcxkbkVvGlUnkXG/m2gKLJpgjW+SdQddbizt+po2b2UwMN7u V5t3sxTWgQ6iOSiceA9Pil/5T+rOtsmt6guOYMgEyCyLX595ghf0RIXfzN/YtU8seHmc 9PvifLhVdm98wKSxRqa/AMizOu7Xw7rjjresLupQKZWd9X8NTrrgUdzacMLKBLWvN9FS HhR9WPAVStv92GTWCcdhW0bAqIidlu+cJ9jQaRM3lY9fIJ3C5ygZR5pIS1X4hoOToZCA 45GWYu4xtz0IsaEnXrFrKkUmu5Q8PHhAl/UQLopoKWQMq3EQA16jUS/XBR+1yujRTH5v Ys/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WCddVyjA; spf=pass (google.com: domain of linux-kernel+bounces-11975-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11975-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 gg23-20020a170906e29700b00a26a97869b1si5316544ejb.72.2023.12.27.03.01.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 03:01:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11975-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=WCddVyjA; spf=pass (google.com: domain of linux-kernel+bounces-11975-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11975-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 74A141F2108F for ; Wed, 27 Dec 2023 11:01:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3E8244384; Wed, 27 Dec 2023 11:00:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WCddVyjA" 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 11C8A446A9; Wed, 27 Dec 2023 11:00:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CF28C43395; Wed, 27 Dec 2023 11:00:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703674852; bh=QU+DYQDLS/MfjWJm3QN3L+CpUr04o07dcK8fax9PUP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WCddVyjAHYEJTEHjUsB+r03dv8YSq751+x+eH2BX8V7jzL2mdouObzhZ1pGGXHaBU FotcD8fbiM6slfbQqgYDFQ2Cjv/keyqHPpA4hgZRw/EyEfWLnloM9Q3xC1+k2YLeMa s/LJfDcQXDKXcQx/ENZAPkeMYUll3Ji96Jq+tfEPEXNmvo8eyb+nrWL7UIo3czBO2A /s5TY30Fn9Ie/0YCA12YXOz/JOdhhfEijNGtJvM2D2mYFi6LDqiyuZMGZVEAAgW+b7 bGf33pU/PJuq587y1Oz2wCeppPJ3F8RnE832N23SdvOqvdmRqn+cmWnByGe3YpBu2V 3+HAwe4uaIe8w== From: Lorenzo Pieralisi To: linux-kernel@vger.kernel.org Cc: Lorenzo Pieralisi , Robert Moore , "Rafael J. Wysocki" , 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 Subject: [PATCH v4 2/3] ACPICA: MADT: Add new MADT GICC/GICR/ITS non-coherent flags handling Date: Wed, 27 Dec 2023 12:00:37 +0100 Message-Id: <20231227110038.55453-3-lpieralisi@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231227110038.55453-1-lpieralisi@kernel.org> References: <20230905104721.52199-1-lpieralisi@kernel.org> <20231227110038.55453-1-lpieralisi@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ACPICA commit c5d2010744b1bf7efba0bd04a8a9c200ef8fb610 Add new flags and related fields to the MADT GICC/GICR/ITS structures according to the code first ECR: https://bugzilla.tianocore.org/show_bug.cgi?id=4557 Update the MADT template to the latest MADT revision. Link: https://github.com/acpica/acpica/commit/c5d20107 Signed-off-by: Lorenzo Pieralisi Cc: Robert Moore Cc: "Rafael J. Wysocki" --- include/acpi/actbl2.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index 2b4dd2c3348f..9775384d61c6 100644 --- a/include/acpi/actbl2.h +++ b/include/acpi/actbl2.h @@ -1047,6 +1047,7 @@ struct acpi_madt_generic_interrupt { #define ACPI_MADT_PERFORMANCE_IRQ_MODE (1<<1) /* 01: Performance Interrupt Mode */ #define ACPI_MADT_VGIC_IRQ_MODE (1<<2) /* 02: VGIC Maintenance Interrupt mode */ #define ACPI_MADT_GICC_ONLINE_CAPABLE (1<<3) /* 03: Processor is online capable */ +#define ACPI_MADT_GICC_NON_COHERENT (1<<4) /* 04: GIC redistributor is not coherent */ /* 12: Generic Distributor (ACPI 5.0 + ACPI 6.0 changes) */ @@ -1091,21 +1092,27 @@ struct acpi_madt_generic_msi_frame { struct acpi_madt_generic_redistributor { struct acpi_subtable_header header; - u16 reserved; /* reserved - must be zero */ + u8 flags; + u8 reserved; /* reserved - must be zero */ u64 base_address; u32 length; }; +#define ACPI_MADT_GICR_NON_COHERENT (1) + /* 15: Generic Translator (ACPI 6.0) */ struct acpi_madt_generic_translator { struct acpi_subtable_header header; - u16 reserved; /* reserved - must be zero */ + u8 flags; + u8 reserved; /* reserved - must be zero */ u32 translation_id; u64 base_address; u32 reserved2; }; +#define ACPI_MADT_ITS_NON_COHERENT (1) + /* 16: Multiprocessor wakeup (ACPI 6.4) */ struct acpi_madt_multiproc_wakeup { -- 2.34.1