Skip to content

Commit f350c68

Browse files
AlisonSchofieldrafaeljw
authored andcommitted
ACPICA: Add CXL 3.0 structures (CXIMS & RDPAS) to the CEDT table
ACPICA commit 2d8dc0383d3c908389053afbdc329bbd52f009ce The CXL 3.0 Specification [1] adds two new structures to the CXL Early Discovery Table (CEDT). The CEDT may include zero or more entries of these types: CXIMS: CXL XOR Interleave Math Structure Enables the host to find a targets position in an Interleave Target List when XOR Math is used. RDPAS: RCEC Downstream Post Association Structure Enables the host to locate the Downstream Port(s) that report errors to a given Root Complex Event Collector (RCEC). Link: https://www.computeexpresslink.org/spec-landing # [1] Link: acpica/acpica@2d8dc038 Signed-off-by: Alison Schofield <[email protected]> Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 183f0a0 commit f350c68

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

include/acpi/actbl1.h

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ struct acpi_cedt_header {
329329
enum acpi_cedt_type {
330330
ACPI_CEDT_TYPE_CHBS = 0,
331331
ACPI_CEDT_TYPE_CFMWS = 1,
332-
ACPI_CEDT_TYPE_RESERVED = 2,
332+
ACPI_CEDT_TYPE_CXIMS = 2,
333+
ACPI_CEDT_TYPE_RDPAS = 3,
334+
ACPI_CEDT_TYPE_RESERVED = 4,
333335
};
334336

335337
/* Values for version field above */
@@ -380,6 +382,7 @@ struct acpi_cedt_cfmws_target_element {
380382
/* Values for Interleave Arithmetic field above */
381383

382384
#define ACPI_CEDT_CFMWS_ARITHMETIC_MODULO (0)
385+
#define ACPI_CEDT_CFMWS_ARITHMETIC_XOR (1)
383386

384387
/* Values for Restrictions field above */
385388

@@ -389,6 +392,36 @@ struct acpi_cedt_cfmws_target_element {
389392
#define ACPI_CEDT_CFMWS_RESTRICT_PMEM (1<<3)
390393
#define ACPI_CEDT_CFMWS_RESTRICT_FIXED (1<<4)
391394

395+
/* 2: CXL XOR Interleave Math Structure */
396+
397+
struct acpi_cedt_cxims {
398+
struct acpi_cedt_header header;
399+
u16 reserved1;
400+
u8 hbig;
401+
u8 nr_xormaps;
402+
u64 xormap_list[];
403+
};
404+
405+
/* 3: CXL RCEC Downstream Port Association Structure */
406+
407+
struct acpi_cedt_rdpas {
408+
struct acpi_cedt_header header;
409+
u8 reserved1;
410+
u16 length;
411+
u16 segment;
412+
u16 bdf;
413+
u8 protocol;
414+
u64 address;
415+
};
416+
417+
/* Masks for bdf field above */
418+
#define ACPI_CEDT_RDPAS_BUS_MASK 0xff00
419+
#define ACPI_CEDT_RDPAS_DEVICE_MASK 0x00f8
420+
#define ACPI_CEDT_RDPAS_FUNCTION_MASK 0x0007
421+
422+
#define ACPI_CEDT_RDPAS_PROTOCOL_IO (0)
423+
#define ACPI_CEDT_RDPAS_PROTOCOL_CACHEMEM (1)
424+
392425
/*******************************************************************************
393426
*
394427
* CPEP - Corrected Platform Error Polling table (ACPI 4.0)

0 commit comments

Comments
 (0)