diff options
| author | Bob Moore <robert.moore@intel.com> | 2008-06-10 03:54:40 -0400 |
|---|---|---|
| committer | Andi Kleen <andi@basil.nowhere.org> | 2008-07-16 17:27:04 -0400 |
| commit | 19d0cfe9ddfdf7afa8d1765ab0bd2a7dd30e47c9 (patch) | |
| tree | ba7a89daf3d0bc342be138d4b5c2dff3d0a2aa2f | |
| parent | d0e184abc5983281ef189db2c759d65d56eb1b80 (diff) | |
ACPICA: Update DMAR and SRAT table definitions
Synchronized tables with current specifications.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
| -rw-r--r-- | arch/x86/mm/srat_32.c | 3 | ||||
| -rw-r--r-- | drivers/acpi/numa.c | 4 | ||||
| -rw-r--r-- | include/acpi/actbl1.h | 19 |
3 files changed, 20 insertions, 6 deletions
diff --git a/arch/x86/mm/srat_32.c b/arch/x86/mm/srat_32.c index f41d67f8f831..1eb2973a301c 100644 --- a/arch/x86/mm/srat_32.c +++ b/arch/x86/mm/srat_32.c | |||
| @@ -156,10 +156,9 @@ acpi_numa_memory_affinity_init(struct acpi_srat_mem_affinity *memory_affinity) | |||
| 156 | 156 | ||
| 157 | num_memory_chunks++; | 157 | num_memory_chunks++; |
| 158 | 158 | ||
| 159 | printk(KERN_DEBUG "Memory range %08lx to %08lx (type %x)" | 159 | printk(KERN_DEBUG "Memory range %08lx to %08lx" |
| 160 | " in proximity domain %02x %s\n", | 160 | " in proximity domain %02x %s\n", |
| 161 | start_pfn, end_pfn, | 161 | start_pfn, end_pfn, |
| 162 | memory_affinity->memory_type, | ||
| 163 | pxm, | 162 | pxm, |
| 164 | ((memory_affinity->flags & ACPI_SRAT_MEM_HOT_PLUGGABLE) ? | 163 | ((memory_affinity->flags & ACPI_SRAT_MEM_HOT_PLUGGABLE) ? |
| 165 | "enabled and removable" : "enabled" ) ); | 164 | "enabled and removable" : "enabled" ) ); |
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index 658e5f3abae0..cb9864e39bae 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c | |||
| @@ -120,10 +120,10 @@ acpi_table_print_srat_entry(struct acpi_subtable_header *header) | |||
| 120 | struct acpi_srat_mem_affinity *p = | 120 | struct acpi_srat_mem_affinity *p = |
| 121 | (struct acpi_srat_mem_affinity *)header; | 121 | (struct acpi_srat_mem_affinity *)header; |
| 122 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | 122 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, |
| 123 | "SRAT Memory (0x%lx length 0x%lx type 0x%x) in proximity domain %d %s%s\n", | 123 | "SRAT Memory (0x%lx length 0x%lx) in proximity domain %d %s%s\n", |
| 124 | (unsigned long)p->base_address, | 124 | (unsigned long)p->base_address, |
| 125 | (unsigned long)p->length, | 125 | (unsigned long)p->length, |
| 126 | p->memory_type, p->proximity_domain, | 126 | p->proximity_domain, |
| 127 | (p->flags & ACPI_SRAT_MEM_ENABLED)? | 127 | (p->flags & ACPI_SRAT_MEM_ENABLED)? |
| 128 | "enabled" : "disabled", | 128 | "enabled" : "disabled", |
| 129 | (p->flags & ACPI_SRAT_MEM_HOT_PLUGGABLE)? | 129 | (p->flags & ACPI_SRAT_MEM_HOT_PLUGGABLE)? |
diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index 9af239bd1153..dfb0fb577d97 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/actbl1.h | |||
| @@ -300,6 +300,7 @@ struct acpi_table_dbgp { | |||
| 300 | /******************************************************************************* | 300 | /******************************************************************************* |
| 301 | * | 301 | * |
| 302 | * DMAR - DMA Remapping table | 302 | * DMAR - DMA Remapping table |
| 303 | * From "Intel Virtualization Technology for Directed I/O", Sept. 2007 | ||
| 303 | * | 304 | * |
| 304 | ******************************************************************************/ | 305 | ******************************************************************************/ |
| 305 | 306 | ||
| @@ -382,6 +383,20 @@ struct acpi_dmar_reserved_memory { | |||
| 382 | 383 | ||
| 383 | #define ACPI_DMAR_ALLOW_ALL (1) | 384 | #define ACPI_DMAR_ALLOW_ALL (1) |
| 384 | 385 | ||
| 386 | |||
| 387 | /* 2: Root Port ATS Capability Reporting Structure */ | ||
| 388 | |||
| 389 | struct acpi_dmar_atsr { | ||
| 390 | struct acpi_dmar_header header; | ||
| 391 | u8 flags; | ||
| 392 | u8 reserved; | ||
| 393 | u16 segment; | ||
| 394 | }; | ||
| 395 | |||
| 396 | /* Flags */ | ||
| 397 | |||
| 398 | #define ACPI_DMAR_ALL_PORTS (1) | ||
| 399 | |||
| 385 | /******************************************************************************* | 400 | /******************************************************************************* |
| 386 | * | 401 | * |
| 387 | * ECDT - Embedded Controller Boot Resources Table | 402 | * ECDT - Embedded Controller Boot Resources Table |
| @@ -1156,9 +1171,9 @@ struct acpi_srat_mem_affinity { | |||
| 1156 | u16 reserved; /* Reserved, must be zero */ | 1171 | u16 reserved; /* Reserved, must be zero */ |
| 1157 | u64 base_address; | 1172 | u64 base_address; |
| 1158 | u64 length; | 1173 | u64 length; |
| 1159 | u32 memory_type; /* See acpi_address_range_id */ | 1174 | u32 reserved1; |
| 1160 | u32 flags; | 1175 | u32 flags; |
| 1161 | u64 reserved1; /* Reserved, must be zero */ | 1176 | u64 reserved2; /* Reserved, must be zero */ |
| 1162 | }; | 1177 | }; |
| 1163 | 1178 | ||
| 1164 | /* Flags */ | 1179 | /* Flags */ |
