Linux-ACPI Archive mirror
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Linux ACPI <linux-acpi@vger.kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Bob Moore <robert.moore@intel.com>,
	Saket Dumbre <saket.dumbre@intel.com>
Subject: [PATCH v1 08/12] ACPICA: SRAT: Add RISC-V RINTC affinity structure
Date: Fri, 12 Apr 2024 17:09:44 +0200	[thread overview]
Message-ID: <3810933.kQq0lBPeGt@kreacher> (raw)
In-Reply-To: <4920972.31r3eYUQgx@kreacher>

From: Haibo Xu <haibo1.xu@intel.com>

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 <haibo1.xu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 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





  parent reply	other threads:[~2024-04-12 15:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-12 15:03 [PATCH v1 00/12] ACPICA: ACPICA 20240322 Rafael J. Wysocki
2024-04-12 15:04 ` [PATCH v1 01/12] ACPICA: actbl1.h: Add EINJ CXL error types Rafael J. Wysocki
2024-04-12 15:05 ` [PATCH v1 02/12] ACPICA: ACPI 6.5: RAS2: Add support for RAS2 table Rafael J. Wysocki
2024-04-12 15:05 ` [PATCH v1 03/12] ACPICA: Attempt 1 to fix issue #900 Rafael J. Wysocki
2024-04-12 15:06 ` [PATCH v1 04/12] ACPICA: Fix various spelling mistakes in text files and code comments Rafael J. Wysocki
2024-04-12 15:07 ` [PATCH v1 05/12] ACPICA: Clean up the fix for Issue #900 Rafael J. Wysocki
2024-04-12 15:07 ` [PATCH v1 06/12] ACPICA: Fix spelling and typos Rafael J. Wysocki
2024-04-12 15:08 ` [PATCH v1 07/12] ACPICA: Modify ACPI_OBJECT_COMMON_HEADER Rafael J. Wysocki
2024-04-12 15:09 ` Rafael J. Wysocki [this message]
2024-04-12 15:10 ` [PATCH v1 09/12] ACPICA: SRAT: Add dump and compiler support for RINTC affinity structure Rafael J. Wysocki
2024-04-12 15:11 ` [PATCH v1 10/12] ACPICA: Fix CXL 3.0 structure (RDPAS) in the CEDT table Rafael J. Wysocki
2024-04-12 15:12 ` [PATCH v1 11/12] ACPICA: events/evgpeinit: don't forget to increment registered GPE count Rafael J. Wysocki
2024-04-12 15:13 ` [PATCH v1 12/12] ACPICA: Update acpixf.h for new ACPICA release 20240322 Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3810933.kQq0lBPeGt@kreacher \
    --to=rjw@rjwysocki.net \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robert.moore@intel.com \
    --cc=saket.dumbre@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).