1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
use crateSDTHeader;
/// ## Device Handle - ACPI
/// ## Device Handle - PCI
/// ## Device Handle
pub union DeviceHandle
/// ## System Resource Affinity Table (SRAT)
///
/// This optional table provides information that allows OSPM to associate the following types of devices with system locality / proximity domains and clock domains:
///
/// - Processors
/// - Memory ranges (including those provided by hot-added memory devices)
/// - Generic initiators (e.g. heterogeneous processors and accelerators, GPUs, and I/O devices with integrated compute or DMA engines)
/// - Generic ports (e.g. host bridges that can dynamically discover new initiators and instantiate new memory range targets)
///
/// On NUMA platforms, SRAT information enables OSPM to optimally configure the operating system
/// during a point in OS initialization when evaluation of objects in the ACPI Namespace is not yet possible.
///
/// OSPM evaluates the SRAT only during OS initialization.
/// The Local APIC ID / Local SAPIC ID / Local x2APIC ID or the GICC ACPI Processor UID of all processors started at boot time must be present in the SRAT.
/// If the Local APIC ID / Local SAPIC ID / Local x2APIC ID or the GICC ACPI Processor UID of a dynamically added processor is not present in the SRAT,
/// a _PXM object must exist for the processor’s device or one of its ancestors in the ACPI Namespace.
///
/// Note: SRAT is the place where proximity domains are defined, and _PXM provides a mechanism to associate a device object (and its children) to an SRAT-defined proximity domain.