linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] ACPICA: ACPICA 20210730
@ 2021-08-03 18:06 Rafael J. Wysocki
  2021-08-03 18:07 ` [PATCH 1/7] ACPICA: iASL: Add support for the AEST table (data compiler) Rafael J. Wysocki
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2021-08-03 18:06 UTC (permalink / raw)
  To: Linux ACPI; +Cc: LKML, Bob Moore

Hi All,

This series of patches is the linux-ized set of ACPICA 20210730 changes
described at https://acpica.org/sites/acpica/files/changes_59.txt

It contains the following changes:

Bob Moore (6):
      ACPICA: iASL: Add support for the AEST table (data compiler)
      ACPICA: Fix an if statement (add parens)
      ACPICA: Macros should not use a trailing semicolon
      ACPICA: iASL: Fix for WPBT table with no command-line arguments
      ACPICA: Add method name "_DIS" For use with aslmethod.c
      ACPICA: Update version to 20210730

Marcin Wojtas (1):
      ACPICA: Headers: Add new DBG2 Serial Port Subtypes

Thanks!




^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/7] ACPICA: iASL: Add support for the AEST table (data compiler)
  2021-08-03 18:06 [PATCH 0/7] ACPICA: ACPICA 20210730 Rafael J. Wysocki
@ 2021-08-03 18:07 ` Rafael J. Wysocki
  2021-08-03 18:08 ` [PATCH 2/7] ACPICA: Fix an if statement (add parens) Rafael J. Wysocki
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2021-08-03 18:07 UTC (permalink / raw)
  To: Linux ACPI; +Cc: LKML, Bob Moore

From: Bob Moore <robert.moore@intel.com>

Includes support in the table compiler and the disassembler.

ACPICA commit e75074d84d1207339a048486c2d06ecb935d0092

Link: https://github.com/acpica/acpica/commit/e75074d8
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 include/acpi/actbl1.h |   1 +
 include/acpi/actbl2.h | 170 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 171 insertions(+)

diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h
index ef2872dea01c..a7ea179b2089 100644
--- a/include/acpi/actbl1.h
+++ b/include/acpi/actbl1.h
@@ -24,6 +24,7 @@
  * file. Useful because they make it more difficult to inadvertently type in
  * the wrong signature.
  */
+#define ACPI_SIG_AEST           "AEST"	/* Arm Error Source Table */
 #define ACPI_SIG_ASF            "ASF!"	/* Alert Standard Format table */
 #define ACPI_SIG_BERT           "BERT"	/* Boot Error Record Table */
 #define ACPI_SIG_BGRT           "BGRT"	/* Boot Graphics Resource Table */
diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
index 2069ac38a4e2..a47b32a5cbde 100644
--- a/include/acpi/actbl2.h
+++ b/include/acpi/actbl2.h
@@ -67,6 +67,176 @@
  * See http://stackoverflow.com/a/1053662/41661
  */
 
+/*******************************************************************************
+ *
+ * AEST - Arm Error Source Table
+ *
+ * Conforms to: ACPI for the Armv8 RAS Extensions 1.1 Platform Design Document
+ * September 2020.
+ *
+ ******************************************************************************/
+
+struct acpi_table_aest {
+	struct acpi_table_header header;
+	void *node_array[];
+};
+
+/* Common Subtable header - one per Node Structure (Subtable) */
+
+struct acpi_aest_hdr {
+	u8 type;
+	u16 length;
+	u8 reserved;
+	u32 node_specific_offset;
+	u32 node_interface_offset;
+	u32 node_interrupt_offset;
+	u32 node_interrupt_count;
+	u64 timestamp_rate;
+	u64 reserved1;
+	u64 error_injection_rate;
+};
+
+/* Values for Type above */
+
+#define ACPI_AEST_PROCESSOR_ERROR_NODE      0
+#define ACPI_AEST_MEMORY_ERROR_NODE         1
+#define ACPI_AEST_SMMU_ERROR_NODE           2
+#define ACPI_AEST_VENDOR_ERROR_NODE         3
+#define ACPI_AEST_GIC_ERROR_NODE            4
+#define ACPI_AEST_NODE_TYPE_RESERVED        5	/* 5 and above are reserved */
+
+/*
+ * AEST subtables (Error nodes)
+ */
+
+/* 0: Processor Error */
+
+typedef struct acpi_aest_processor {
+	u32 processor_id;
+	u8 resource_type;
+	u8 reserved;
+	u8 flags;
+	u8 revision;
+	u64 processor_affinity;
+
+} acpi_aest_processor;
+
+/* Values for resource_type above, related structs below */
+
+#define ACPI_AEST_CACHE_RESOURCE            0
+#define ACPI_AEST_TLB_RESOURCE              1
+#define ACPI_AEST_GENERIC_RESOURCE          2
+#define ACPI_AEST_RESOURCE_RESERVED         3	/* 3 and above are reserved */
+
+/* 0R: Processor Cache Resource Substructure */
+
+typedef struct acpi_aest_processor_cache {
+	u32 cache_reference;
+	u32 reserved;
+
+} acpi_aest_processor_cache;
+
+/* Values for cache_type above */
+
+#define ACPI_AEST_CACHE_DATA                0
+#define ACPI_AEST_CACHE_INSTRUCTION         1
+#define ACPI_AEST_CACHE_UNIFIED             2
+#define ACPI_AEST_CACHE_RESERVED            3	/* 3 and above are reserved */
+
+/* 1R: Processor TLB Resource Substructure */
+
+typedef struct acpi_aest_processor_tlb {
+	u32 tlb_level;
+	u32 reserved;
+
+} acpi_aest_processor_tlb;
+
+/* 2R: Processor Generic Resource Substructure */
+
+typedef struct acpi_aest_processor_generic {
+	u8 *resource;
+
+} acpi_aest_processor_generic;
+
+/* 1: Memory Error */
+
+typedef struct acpi_aest_memory {
+	u32 srat_proximity_domain;
+
+} acpi_aest_memory;
+
+/* 2: Smmu Error */
+
+typedef struct acpi_aest_smmu {
+	u32 iort_node_reference;
+	u32 subcomponent_reference;
+
+} acpi_aest_smmu;
+
+/* 3: Vendor Defined */
+
+typedef struct acpi_aest_vendor {
+	u32 acpi_hid;
+	u32 acpi_uid;
+	u8 vendor_specific_data[16];
+
+} acpi_aest_vendor;
+
+/* 4: Gic Error */
+
+typedef struct acpi_aest_gic {
+	u32 interface_type;
+	u32 instance_id;
+
+} acpi_aest_gic;
+
+/* Values for interface_type above */
+
+#define ACPI_AEST_GIC_CPU                   0
+#define ACPI_AEST_GIC_DISTRIBUTOR           1
+#define ACPI_AEST_GIC_REDISTRIBUTOR         2
+#define ACPI_AEST_GIC_ITS                   3
+#define ACPI_AEST_GIC_RESERVED              4	/* 4 and above are reserved */
+
+/* Node Interface Structure */
+
+typedef struct acpi_aest_node_interface {
+	u8 type;
+	u8 reserved[3];
+	u32 flags;
+	u64 address;
+	u32 error_record_index;
+	u32 error_record_count;
+	u64 error_record_implemented;
+	u64 error_status_reporting;
+	u64 addressing_mode;
+
+} acpi_aest_node_interface;
+
+/* Values for Type field above */
+
+#define ACPI_AEST_NODE_SYSTEM_REGISTER      0
+#define ACPI_AEST_NODE_MEMORY_MAPPED        1
+#define ACPI_AEST_XFACE_RESERVED            2	/* 2 and above are reserved */
+
+/* Node Interrupt Structure */
+
+typedef struct acpi_aest_node_interrupt {
+	u8 type;
+	u8 reserved[2];
+	u8 flags;
+	u32 gsiv;
+	u8 iort_id;
+	u8 reserved1[3];
+
+} acpi_aest_node_interrupt;
+
+/* Values for Type field above */
+
+#define ACPI_AEST_NODE_FAULT_HANDLING       0
+#define ACPI_AEST_NODE_ERROR_RECOVERY       1
+#define ACPI_AEST_XRUPT_RESERVED            2	/* 2 and above are reserved */
+
 /*******************************************************************************
  *
  * BDAT - BIOS Data ACPI Table
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/7] ACPICA: Fix an if statement (add parens)
  2021-08-03 18:06 [PATCH 0/7] ACPICA: ACPICA 20210730 Rafael J. Wysocki
  2021-08-03 18:07 ` [PATCH 1/7] ACPICA: iASL: Add support for the AEST table (data compiler) Rafael J. Wysocki
@ 2021-08-03 18:08 ` Rafael J. Wysocki
  2021-08-03 18:09 ` [PATCH 3/7] ACPICA: Macros should not use a trailing semicolon Rafael J. Wysocki
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2021-08-03 18:08 UTC (permalink / raw)
  To: Linux ACPI; +Cc: LKML, Bob Moore

From: Bob Moore <robert.moore@intel.com>

ACPICA commit 4dbe4b9a0c203b04918705f022e0db997aa55696

Link: https://github.com/acpica/acpica/commit/4dbe4b9a
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 drivers/acpi/acpica/dswexec.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/acpi/acpica/dswexec.c b/drivers/acpi/acpica/dswexec.c
index 41ba7773fd10..f2d2267054af 100644
--- a/drivers/acpi/acpica/dswexec.c
+++ b/drivers/acpi/acpica/dswexec.c
@@ -561,11 +561,10 @@ acpi_status acpi_ds_exec_end_op(struct acpi_walk_state *walk_state)
 								op->common.
 								node->object,
 								NULL);
-				if ACPI_FAILURE
-					(status) {
+				if (ACPI_FAILURE(status)) {
 					ACPI_EXCEPTION((AE_INFO, status,
 							"While writing to buffer field"));
-					}
+				}
 			}
 			ACPI_FREE(namepath);
 			status = AE_OK;
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/7] ACPICA: Macros should not use a trailing semicolon
  2021-08-03 18:06 [PATCH 0/7] ACPICA: ACPICA 20210730 Rafael J. Wysocki
  2021-08-03 18:07 ` [PATCH 1/7] ACPICA: iASL: Add support for the AEST table (data compiler) Rafael J. Wysocki
  2021-08-03 18:08 ` [PATCH 2/7] ACPICA: Fix an if statement (add parens) Rafael J. Wysocki
@ 2021-08-03 18:09 ` Rafael J. Wysocki
  2021-08-03 18:10 ` [PATCH 4/7] ACPICA: Headers: Add new DBG2 Serial Port Subtypes Rafael J. Wysocki
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2021-08-03 18:09 UTC (permalink / raw)
  To: Linux ACPI; +Cc: LKML, Bob Moore

From: Bob Moore <robert.moore@intel.com>

ACPICA commit 8d49c0b2b78b8a8c5dae4d5ff28432729f4d59f2

Link: https://github.com/acpica/acpica/commit/8d49c0b2
Signed-off-by: Huilong Deng <denghuilong@cdjrlc.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 include/acpi/acoutput.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h
index 1b4c45815695..5a3875744678 100644
--- a/include/acpi/acoutput.h
+++ b/include/acpi/acoutput.h
@@ -415,7 +415,7 @@
 /* Conditional execution */
 
 #define ACPI_DEBUG_EXEC(a)              a
-#define ACPI_DEBUG_ONLY_MEMBERS(a)      a;
+#define ACPI_DEBUG_ONLY_MEMBERS(a)      a
 #define _VERBOSE_STRUCTURES
 
 /* Various object display routines for debug */
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 4/7] ACPICA: Headers: Add new DBG2 Serial Port Subtypes
  2021-08-03 18:06 [PATCH 0/7] ACPICA: ACPICA 20210730 Rafael J. Wysocki
                   ` (2 preceding siblings ...)
  2021-08-03 18:09 ` [PATCH 3/7] ACPICA: Macros should not use a trailing semicolon Rafael J. Wysocki
@ 2021-08-03 18:10 ` Rafael J. Wysocki
  2021-08-03 18:10 ` [PATCH 5/7] ACPICA: iASL: Fix for WPBT table with no command-line arguments Rafael J. Wysocki
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2021-08-03 18:10 UTC (permalink / raw)
  To: Linux ACPI; +Cc: LKML, Bob Moore

From: Marcin Wojtas <mw@semihalf.com>

The Microsoft Debug Port Table 2 (DBG2) specification revision
September 21, 2020 comprises additional Serial Port Subtypes [1].
Reflect that in the actbl1.h header file.

[1] https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/acpi-debug-port-table

ACPICA commit d95c7d206b5836c7770e8e9cd613859887fded8f

Link: https://github.com/acpica/acpica/commit/d95c7d20
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 include/acpi/actbl1.h | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h
index a7ea179b2089..159070edd031 100644
--- a/include/acpi/actbl1.h
+++ b/include/acpi/actbl1.h
@@ -483,7 +483,7 @@ struct acpi_csrt_descriptor {
  * DBG2 - Debug Port Table 2
  *        Version 0 (Both main table and subtables)
  *
- * Conforms to "Microsoft Debug Port Table 2 (DBG2)", December 10, 2015
+ * Conforms to "Microsoft Debug Port Table 2 (DBG2)", September 21, 2020
  *
  ******************************************************************************/
 
@@ -533,11 +533,24 @@ struct acpi_dbg2_device {
 
 #define ACPI_DBG2_16550_COMPATIBLE  0x0000
 #define ACPI_DBG2_16550_SUBSET      0x0001
+#define ACPI_DBG2_MAX311XE_SPI      0x0002
 #define ACPI_DBG2_ARM_PL011         0x0003
+#define ACPI_DBG2_MSM8X60           0x0004
+#define ACPI_DBG2_16550_NVIDIA      0x0005
+#define ACPI_DBG2_TI_OMAP           0x0006
+#define ACPI_DBG2_APM88XXXX         0x0008
+#define ACPI_DBG2_MSM8974           0x0009
+#define ACPI_DBG2_SAM5250           0x000A
+#define ACPI_DBG2_INTEL_USIF        0x000B
+#define ACPI_DBG2_IMX6              0x000C
 #define ACPI_DBG2_ARM_SBSA_32BIT    0x000D
 #define ACPI_DBG2_ARM_SBSA_GENERIC  0x000E
 #define ACPI_DBG2_ARM_DCC           0x000F
 #define ACPI_DBG2_BCM2835           0x0010
+#define ACPI_DBG2_SDM845_1_8432MHZ  0x0011
+#define ACPI_DBG2_16550_WITH_GAS    0x0012
+#define ACPI_DBG2_SDM845_7_372MHZ   0x0013
+#define ACPI_DBG2_INTEL_LPSS        0x0014
 
 #define ACPI_DBG2_1394_STANDARD     0x0000
 
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 5/7] ACPICA: iASL: Fix for WPBT table with no command-line  arguments
  2021-08-03 18:06 [PATCH 0/7] ACPICA: ACPICA 20210730 Rafael J. Wysocki
                   ` (3 preceding siblings ...)
  2021-08-03 18:10 ` [PATCH 4/7] ACPICA: Headers: Add new DBG2 Serial Port Subtypes Rafael J. Wysocki
@ 2021-08-03 18:10 ` Rafael J. Wysocki
  2021-08-03 18:11 ` [PATCH 6/7] ACPICA: Add method name "_DIS" For use with aslmethod.c Rafael J. Wysocki
  2021-08-03 18:11 ` [PATCH 7/7] ACPICA: Update version to 20210730 Rafael J. Wysocki
  6 siblings, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2021-08-03 18:10 UTC (permalink / raw)
  To: Linux ACPI; +Cc: LKML, Bob Moore

From: Bob Moore <robert.moore@intel.com>

Handle the case where the Command-line Arguments table field
does not exist.

ACPICA commit d6487164497fda170a1b1453c5d58f2be7c873d6

Link: https://github.com/acpica/acpica/commit/d6487164
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 include/acpi/actbl3.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h
index 86903ac5bbc5..9125e2f16329 100644
--- a/include/acpi/actbl3.h
+++ b/include/acpi/actbl3.h
@@ -723,6 +723,10 @@ struct acpi_table_wpbt {
 	u16 arguments_length;
 };
 
+struct acpi_wpbt_unicode {
+	u16 *unicode_string;
+};
+
 /*******************************************************************************
  *
  * WSMT - Windows SMM Security Mitigations Table
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 6/7] ACPICA: Add method name "_DIS" For use with aslmethod.c
  2021-08-03 18:06 [PATCH 0/7] ACPICA: ACPICA 20210730 Rafael J. Wysocki
                   ` (4 preceding siblings ...)
  2021-08-03 18:10 ` [PATCH 5/7] ACPICA: iASL: Fix for WPBT table with no command-line arguments Rafael J. Wysocki
@ 2021-08-03 18:11 ` Rafael J. Wysocki
  2021-08-03 18:11 ` [PATCH 7/7] ACPICA: Update version to 20210730 Rafael J. Wysocki
  6 siblings, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2021-08-03 18:11 UTC (permalink / raw)
  To: Linux ACPI; +Cc: LKML, Bob Moore

From: Bob Moore <robert.moore@intel.com>

ACPICA commit 5acc6818c537888be147d9da6b280a0b8c241a1d

Link: https://github.com/acpica/acpica/commit/5acc6818
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 include/acpi/acnames.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/acpi/acnames.h b/include/acpi/acnames.h
index a2bc381c7ce7..30869ab77fba 100644
--- a/include/acpi/acnames.h
+++ b/include/acpi/acnames.h
@@ -20,6 +20,7 @@
 #define METHOD_NAME__CLS        "_CLS"
 #define METHOD_NAME__CRS        "_CRS"
 #define METHOD_NAME__DDN        "_DDN"
+#define METHOD_NAME__DIS        "_DIS"
 #define METHOD_NAME__DMA        "_DMA"
 #define METHOD_NAME__HID        "_HID"
 #define METHOD_NAME__INI        "_INI"
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 7/7] ACPICA: Update version to 20210730
  2021-08-03 18:06 [PATCH 0/7] ACPICA: ACPICA 20210730 Rafael J. Wysocki
                   ` (5 preceding siblings ...)
  2021-08-03 18:11 ` [PATCH 6/7] ACPICA: Add method name "_DIS" For use with aslmethod.c Rafael J. Wysocki
@ 2021-08-03 18:11 ` Rafael J. Wysocki
  6 siblings, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2021-08-03 18:11 UTC (permalink / raw)
  To: Linux ACPI; +Cc: LKML, Bob Moore

From: Bob Moore <robert.moore@intel.com>

Version 20210730.

ACPICA commit 2195f614e79442beb4d24d7a29a6347493e444e5

Link: https://github.com/acpica/acpica/commit/2195f614
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 include/acpi/acpixf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h
index a43335961e30..fa02e3ff0faf 100644
--- a/include/acpi/acpixf.h
+++ b/include/acpi/acpixf.h
@@ -12,7 +12,7 @@
 
 /* Current ACPICA subsystem version in YYYYMMDD format */
 
-#define ACPI_CA_VERSION                 0x20210604
+#define ACPI_CA_VERSION                 0x20210730
 
 #include <acpi/acconfig.h>
 #include <acpi/actypes.h>
-- 
2.26.2





^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-08-03 18:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03 18:06 [PATCH 0/7] ACPICA: ACPICA 20210730 Rafael J. Wysocki
2021-08-03 18:07 ` [PATCH 1/7] ACPICA: iASL: Add support for the AEST table (data compiler) Rafael J. Wysocki
2021-08-03 18:08 ` [PATCH 2/7] ACPICA: Fix an if statement (add parens) Rafael J. Wysocki
2021-08-03 18:09 ` [PATCH 3/7] ACPICA: Macros should not use a trailing semicolon Rafael J. Wysocki
2021-08-03 18:10 ` [PATCH 4/7] ACPICA: Headers: Add new DBG2 Serial Port Subtypes Rafael J. Wysocki
2021-08-03 18:10 ` [PATCH 5/7] ACPICA: iASL: Fix for WPBT table with no command-line arguments Rafael J. Wysocki
2021-08-03 18:11 ` [PATCH 6/7] ACPICA: Add method name "_DIS" For use with aslmethod.c Rafael J. Wysocki
2021-08-03 18:11 ` [PATCH 7/7] ACPICA: Update version to 20210730 Rafael J. Wysocki

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 NNTP newsgroup(s).