Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp213281lql; Fri, 12 Apr 2024 08:15:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWt3caCjnKVbokQseDsxiekn/EI7kgc1EtBn3zoK9sc2WzDgl2Ut82UMcltO/sI0czoUco9Sm01rM/oL/eGt3raDyKpWU+/zd7MWz3N4A== X-Google-Smtp-Source: AGHT+IEwV6UgfcRI8j5ZWhZE8nMQcxrzh3CLTXO7QjS9wG7W9nlTiSJ1JqF5/uGs+gFv5Vo5j/nv X-Received: by 2002:a05:6871:203:b0:22e:c59d:bad4 with SMTP id t3-20020a056871020300b0022ec59dbad4mr3048544oad.2.1712934929037; Fri, 12 Apr 2024 08:15:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712934929; cv=pass; d=google.com; s=arc-20160816; b=bUCB6iu4tT22rMtuJgd4QcF8IRQrYCPrvU8kBEysw3LZ1IeX2LOHSujWbBodVMA/II CVuqyVYdkufb2lnQ3YzCmGXoPLEsPIb1RH8bPK15jsmLMvapq2+LXov+9JoWSYp+nVm9 rzO1GKSj3uUBEtDo9d8qIdcTdVYFGkOM2TsRJXNEreL9/8odua6Wb32BiIpWOeLu9So4 VTpXfjQqINEjLjyuH18LVutxyJCreTSxPejiSGTbu+/C7K+MwQyOcprfHlV01g1MfElk 3pbkon9d2ki6drh6HR7xqo4uQIgLxTKPd8yfCCE6bFtoY5p/vfM3hWXBfjYhPqT34+1W ZWMQ== ARC-Message-Signature: i=2; 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=qog7EDOGXwRD/gAOaILAcP67Ri0guWEF5KjSHP/UXDs=; fh=9nwRopHxyVgRW5VsWcX5PqyjsRn0wIZwejY5TUrUef0=; b=DE7pJxMZZdYxOaRwI6HVyXPwIk+iBqpoj96vWzTbIqKrOjax7Yuyu3CRxMChaT5aNq dX7m59Iu/Nf/rdyNIDy7tH4icOSkP0I4070SzdQ1jrSjryHCgFb+cURDYQbA+Nn8sYMP ARu7lKtZ6qcZjp7GrXjvWLamuzth283qPsUx40GmnFxv9+W4S+dsjSDFITOVKdq57cae 4/I3nqlYQwrJ9AB/Rln9ynjswV8GaVAVan6ruNnJIcaN81swgSLkuAOA/38IHzeoZJhF NGfTTlAHx1AKY4VGGDJK24PsvRHh61ZP4AEFWXsz8cVeF0/Ax2ii7fU4Y6d0qXJ01SZy yeug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rjwysocki.net header.s=dkim header.b=Yo6NiBpQ; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net dkim=pass dkdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-142913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142913-linux.lists.archive=gmail.com@vger.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 dt6-20020a05620a478600b0078d6aabb1b5si3975040qkb.142.2024.04.12.08.15.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 08:15:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142913-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=@rjwysocki.net header.s=dkim header.b=Yo6NiBpQ; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net dkim=pass dkdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-142913-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142913-linux.lists.archive=gmail.com@vger.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 BB3DC1C22AAF for ; Fri, 12 Apr 2024 15:15:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBB4814A090; Fri, 12 Apr 2024 15:13:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rjwysocki.net header.i=@rjwysocki.net header.b="Yo6NiBpQ" Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) (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 AEBF0148852; Fri, 12 Apr 2024 15:13:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.96.170.134 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712934806; cv=none; b=d31UITwy12hERVc1Whvl26X8ICrltcbhbpffQ90sOeAxheEi+4AXXo71X4YvsqhuZOoZgF88PfoyGvzeEVASJhAwGOnor2MKdV6qjNlCAahIwjS/dBqWKNnsi5qunyKOFEtOJZI4S/pB8Vtw0hbbFyuiTa6BBND9xFdwSL6S67c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712934806; c=relaxed/simple; bh=p4RQPeK0t0p2e2jCLxKSwbzqwUNfBGe8Sq+4GIgMmpo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AX0kCwEP9uBTdsLpNUYsTvCpjegvo2gDEFrD3DUSf+pRLK22XA6nhM8+iZX7cwymSq6QKOsl5yqjgaYE4BkYPtI4M+hjU+TSJLZJdLutG3vrbwXGy673siTBHCFDKfZd1GMY9ILkGultSwjN6k9CVQ2WUwHwuHeEKlBlgMuZ/ns= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net; spf=pass smtp.mailfrom=rjwysocki.net; dkim=pass (2048-bit key) header.d=rjwysocki.net header.i=@rjwysocki.net header.b=Yo6NiBpQ; arc=none smtp.client-ip=79.96.170.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rjwysocki.net Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 6.0.0) id 78badbab5f534439; Fri, 12 Apr 2024 17:13:17 +0200 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cloudserver094114.home.pl (Postfix) with ESMTPSA id 84BA866CC48; Fri, 12 Apr 2024 17:13:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rjwysocki.net; s=dkim; t=1712934797; bh=p4RQPeK0t0p2e2jCLxKSwbzqwUNfBGe8Sq+4GIgMmpo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Yo6NiBpQEy0o83yG+bqFvdaxWxNKjVdqxSuVqzys0B+2veY6Chrc411w4+H9njz5t J9QiFRtLaLHUizzt21p8TOPEWWLo22PgclHFpdjoQ6Aq9S5qzq7ZQZ7xkh3oC7ISO3 AUO5GoXa3NTCnz4ZjAygcZP3zZQT/M0pRFpGlbP1ljWHWKMGKVAZt7hHTwssgpxNHg 2kVLDz+qYi2mT/84n5CHGLy2l2coKsVlXx9n8iqoMveifyiOHaQnaBuUf1voJd5J55 CMhp0L/RGYs8JWULCHMvyRKMntuB6liTR0eQ0IriFuKu7kTj8oqZLWWlXQvwqkqmz/ h4RFSq75tHt/Q== From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Bob Moore , Saket Dumbre Subject: [PATCH v1 08/12] ACPICA: SRAT: Add RISC-V RINTC affinity structure Date: Fri, 12 Apr 2024 17:09:44 +0200 Message-ID: <3810933.kQq0lBPeGt@kreacher> In-Reply-To: <4920972.31r3eYUQgx@kreacher> References: <4920972.31r3eYUQgx@kreacher> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrudeiuddgkeejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepledtieekkeekveeikeetgffgteeuteefjeevjeegudelvdduheeiuedvieehieevnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeegpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhhosggvrhhtrdhmohhorhgvsehinhhtvghlrdgtohhmpdhrtghpthhtohepshgrkhgvthdrughumhgsrhgv sehinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=4 Fuz1=4 Fuz2=4 From: Haibo Xu ACPICA commit 93caddbf2f620769052c59ec471f018281dc3a24 Add definition of RISC-V Interrupt Controller(RINTC) affinity structure which was approved by UEFI forum and will be part of next ACPI spec version(6.6). Link: https://github.com/acpica/acpica/commit/93caddbf Signed-off-by: Haibo Xu Signed-off-by: Rafael J. Wysocki --- include/acpi/actbl3.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h index c080d579a546..e32149d605dc 100644 --- a/include/acpi/actbl3.h +++ b/include/acpi/actbl3.h @@ -192,7 +192,8 @@ enum acpi_srat_type { ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4, /* ACPI 6.2 */ ACPI_SRAT_TYPE_GENERIC_AFFINITY = 5, /* ACPI 6.3 */ ACPI_SRAT_TYPE_GENERIC_PORT_AFFINITY = 6, /* ACPI 6.4 */ - ACPI_SRAT_TYPE_RESERVED = 7 /* 7 and greater are reserved */ + ACPI_SRAT_TYPE_RINTC_AFFINITY = 7, /* ACPI 6.6 */ + ACPI_SRAT_TYPE_RESERVED = 8 /* 8 and greater are reserved */ }; /* @@ -296,6 +297,21 @@ struct acpi_srat_generic_affinity { #define ACPI_SRAT_GENERIC_AFFINITY_ENABLED (1) /* 00: Use affinity structure */ #define ACPI_SRAT_ARCHITECTURAL_TRANSACTIONS (1<<1) /* ACPI 6.4 */ +/* 7: RINTC Affinity Structure(ACPI 6.6) */ + +struct acpi_srat_rintc_affinity { + struct acpi_subtable_header header; + u16 reserved; + u32 proximity_domain; + u32 acpi_processor_uid; + u32 flags; + u32 clock_domain; +}; + +/* Flags for ACPI_SRAT_RINTC_AFFINITY */ + +#define ACPI_SRAT_RINTC_ENABLED (1) /* 00: Use affinity structure */ + /******************************************************************************* * * STAO - Status Override Table (_STA override) - ACPI 6.0 -- 2.35.3