blob: d51b69dc624df1306075aa35924eb6616cb15634 [file] [log] [blame]
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -03001===========
Al Stone735f00b2015-03-24 14:02:55 +00002ACPI Tables
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -03003===========
4
Al Stone735f00b2015-03-24 14:02:55 +00005The expectations of individual ACPI tables are discussed in the list that
6follows.
7
8If a section number is used, it refers to a section number in the ACPI
9specification where the object is defined. If "Signature Reserved" is used,
10the table signature (the first four bytes of the table) is the only portion
11of the table recognized by the specification, and the actual table is defined
12outside of the UEFI Forum (see Section 5.2.6 of the specification).
13
14For ACPI on arm64, tables also fall into the following categories:
15
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030016 - Required: DSDT, FADT, GTDT, MADT, MCFG, RSDP, SPCR, XSDT
Al Stone735f00b2015-03-24 14:02:55 +000017
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030018 - Recommended: BERT, EINJ, ERST, HEST, PCCT, SSDT
Al Stone735f00b2015-03-24 14:02:55 +000019
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030020 - Optional: BGRT, CPEP, CSRT, DBG2, DRTM, ECDT, FACS, FPDT, IORT,
Al Stone83ce0ef2016-06-13 15:41:55 -060021 MCHI, MPST, MSCT, NFIT, PMTT, RASF, SBST, SLIT, SPMI, SRAT, STAO,
22 TCPA, TPM2, UEFI, XENV
Al Stone735f00b2015-03-24 14:02:55 +000023
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030024 - Not supported: BOOT, DBGP, DMAR, ETDT, HPET, IBFT, IVRS, LPIT,
Al Stone83ce0ef2016-06-13 15:41:55 -060025 MSDM, OEMx, PSDT, RSDT, SLIC, WAET, WDAT, WDRT, WPBT
Al Stone735f00b2015-03-24 14:02:55 +000026
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030027====== ========================================================================
Al Stone735f00b2015-03-24 14:02:55 +000028Table Usage for ARMv8 Linux
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030029====== ========================================================================
Al Stone735f00b2015-03-24 14:02:55 +000030BERT Section 18.3 (signature == "BERT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030031
32 **Boot Error Record Table**
33
Al Stone735f00b2015-03-24 14:02:55 +000034 Must be supplied if RAS support is provided by the platform. It
35 is recommended this table be supplied.
36
37BOOT Signature Reserved (signature == "BOOT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030038
39 **simple BOOT flag table**
40
Al Stone735f00b2015-03-24 14:02:55 +000041 Microsoft only table, will not be supported.
42
43BGRT Section 5.2.22 (signature == "BGRT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030044
45 **Boot Graphics Resource Table**
46
Al Stone735f00b2015-03-24 14:02:55 +000047 Optional, not currently supported, with no real use-case for an
48 ARM server.
49
50CPEP Section 5.2.18 (signature == "CPEP")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030051
52 **Corrected Platform Error Polling table**
53
Al Stone735f00b2015-03-24 14:02:55 +000054 Optional, not currently supported, and not recommended until such
55 time as ARM-compatible hardware is available, and the specification
56 suitably modified.
57
58CSRT Signature Reserved (signature == "CSRT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030059
60 **Core System Resources Table**
61
Al Stone735f00b2015-03-24 14:02:55 +000062 Optional, not currently supported.
63
64DBG2 Signature Reserved (signature == "DBG2")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030065
66 **DeBuG port table 2**
67
Al Stone83ce0ef2016-06-13 15:41:55 -060068 License has changed and should be usable. Optional if used instead
69 of earlycon=<device> on the command line.
Al Stone735f00b2015-03-24 14:02:55 +000070
71DBGP Signature Reserved (signature == "DBGP")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030072
73 **DeBuG Port table**
74
Al Stone735f00b2015-03-24 14:02:55 +000075 Microsoft only table, will not be supported.
76
77DSDT Section 5.2.11.1 (signature == "DSDT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030078
79 **Differentiated System Description Table**
80
Al Stone735f00b2015-03-24 14:02:55 +000081 A DSDT is required; see also SSDT.
82
83 ACPI tables contain only one DSDT but can contain one or more SSDTs,
84 which are optional. Each SSDT can only add to the ACPI namespace,
85 but cannot modify or replace anything in the DSDT.
86
87DMAR Signature Reserved (signature == "DMAR")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030088
89 **DMA Remapping table**
90
Al Stone735f00b2015-03-24 14:02:55 +000091 x86 only table, will not be supported.
92
93DRTM Signature Reserved (signature == "DRTM")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -030094
95 **Dynamic Root of Trust for Measurement table**
96
Al Stone735f00b2015-03-24 14:02:55 +000097 Optional, not currently supported.
98
99ECDT Section 5.2.16 (signature == "ECDT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300100
101 **Embedded Controller Description Table**
102
Al Stone735f00b2015-03-24 14:02:55 +0000103 Optional, not currently supported, but could be used on ARM if and
104 only if one uses the GPE_BIT field to represent an IRQ number, since
105 there are no GPE blocks defined in hardware reduced mode. This would
106 need to be modified in the ACPI specification.
107
108EINJ Section 18.6 (signature == "EINJ")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300109
110 **Error Injection table**
111
Al Stone735f00b2015-03-24 14:02:55 +0000112 This table is very useful for testing platform response to error
113 conditions; it allows one to inject an error into the system as
114 if it had actually occurred. However, this table should not be
115 shipped with a production system; it should be dynamically loaded
116 and executed with the ACPICA tools only during testing.
117
118ERST Section 18.5 (signature == "ERST")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300119
120 **Error Record Serialization Table**
121
Al Stone735f00b2015-03-24 14:02:55 +0000122 On a platform supports RAS, this table must be supplied if it is not
123 UEFI-based; if it is UEFI-based, this table may be supplied. When this
124 table is not present, UEFI run time service will be utilized to save
125 and retrieve hardware error information to and from a persistent store.
126
127ETDT Signature Reserved (signature == "ETDT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300128
129 **Event Timer Description Table**
130
Al Stone735f00b2015-03-24 14:02:55 +0000131 Obsolete table, will not be supported.
132
133FACS Section 5.2.10 (signature == "FACS")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300134
135 **Firmware ACPI Control Structure**
136
Al Stone735f00b2015-03-24 14:02:55 +0000137 It is unlikely that this table will be terribly useful. If it is
138 provided, the Global Lock will NOT be used since it is not part of
139 the hardware reduced profile, and only 64-bit address fields will
140 be considered valid.
141
142FADT Section 5.2.9 (signature == "FACP")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300143
144 **Fixed ACPI Description Table**
Al Stone735f00b2015-03-24 14:02:55 +0000145 Required for arm64.
146
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300147
Al Stone735f00b2015-03-24 14:02:55 +0000148 The HW_REDUCED_ACPI flag must be set. All of the fields that are
149 to be ignored when HW_REDUCED_ACPI is set are expected to be set to
150 zero.
151
152 If an FACS table is provided, the X_FIRMWARE_CTRL field is to be
153 used, not FIRMWARE_CTRL.
154
155 If PSCI is used (as is recommended), make sure that ARM_BOOT_ARCH is
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300156 filled in properly - that the PSCI_COMPLIANT flag is set and that
Al Stone735f00b2015-03-24 14:02:55 +0000157 PSCI_USE_HVC is set or unset as needed (see table 5-37).
158
159 For the DSDT that is also required, the X_DSDT field is to be used,
160 not the DSDT field.
161
162FPDT Section 5.2.23 (signature == "FPDT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300163
164 **Firmware Performance Data Table**
165
Al Stone735f00b2015-03-24 14:02:55 +0000166 Optional, not currently supported.
167
168GTDT Section 5.2.24 (signature == "GTDT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300169
170 **Generic Timer Description Table**
171
Al Stone735f00b2015-03-24 14:02:55 +0000172 Required for arm64.
173
174HEST Section 18.3.2 (signature == "HEST")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300175
176 **Hardware Error Source Table**
177
Al Stone83ce0ef2016-06-13 15:41:55 -0600178 ARM-specific error sources have been defined; please use those or the
179 PCI types such as type 6 (AER Root Port), 7 (AER Endpoint), or 8 (AER
180 Bridge), or use type 9 (Generic Hardware Error Source). Firmware first
181 error handling is possible if and only if Trusted Firmware is being
182 used on arm64.
Al Stone735f00b2015-03-24 14:02:55 +0000183
184 Must be supplied if RAS support is provided by the platform. It
185 is recommended this table be supplied.
186
187HPET Signature Reserved (signature == "HPET")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300188
189 **High Precision Event timer Table**
190
Al Stone735f00b2015-03-24 14:02:55 +0000191 x86 only table, will not be supported.
192
193IBFT Signature Reserved (signature == "IBFT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300194
195 **iSCSI Boot Firmware Table**
196
Al Stone735f00b2015-03-24 14:02:55 +0000197 Microsoft defined table, support TBD.
198
Al Stone83ce0ef2016-06-13 15:41:55 -0600199IORT Signature Reserved (signature == "IORT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300200
201 **Input Output Remapping Table**
202
Al Stone83ce0ef2016-06-13 15:41:55 -0600203 arm64 only table, required in order to describe IO topology, SMMUs,
204 and GIC ITSs, and how those various components are connected together,
205 such as identifying which components are behind which SMMUs/ITSs.
206 This table will only be required on certain SBSA platforms (e.g.,
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300207 when using GICv3-ITS and an SMMU); on SBSA Level 0 platforms, it
Al Stone83ce0ef2016-06-13 15:41:55 -0600208 remains optional.
209
Al Stone735f00b2015-03-24 14:02:55 +0000210IVRS Signature Reserved (signature == "IVRS")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300211
212 **I/O Virtualization Reporting Structure**
213
Al Stone735f00b2015-03-24 14:02:55 +0000214 x86_64 (AMD) only table, will not be supported.
215
216LPIT Signature Reserved (signature == "LPIT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300217
218 **Low Power Idle Table**
219
Al Stone83ce0ef2016-06-13 15:41:55 -0600220 x86 only table as of ACPI 5.1; starting with ACPI 6.0, processor
221 descriptions and power states on ARM platforms should use the DSDT
222 and define processor container devices (_HID ACPI0010, Section 8.4,
223 and more specifically 8.4.3 and and 8.4.4).
Al Stone735f00b2015-03-24 14:02:55 +0000224
225MADT Section 5.2.12 (signature == "APIC")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300226
227 **Multiple APIC Description Table**
228
Al Stone735f00b2015-03-24 14:02:55 +0000229 Required for arm64. Only the GIC interrupt controller structures
Al Stone83ce0ef2016-06-13 15:41:55 -0600230 should be used (types 0xA - 0xF).
Al Stone735f00b2015-03-24 14:02:55 +0000231
232MCFG Signature Reserved (signature == "MCFG")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300233
234 **Memory-mapped ConFiGuration space**
235
Al Stone735f00b2015-03-24 14:02:55 +0000236 If the platform supports PCI/PCIe, an MCFG table is required.
237
238MCHI Signature Reserved (signature == "MCHI")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300239
240 **Management Controller Host Interface table**
241
Al Stone735f00b2015-03-24 14:02:55 +0000242 Optional, not currently supported.
243
244MPST Section 5.2.21 (signature == "MPST")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300245
246 **Memory Power State Table**
247
Al Stone735f00b2015-03-24 14:02:55 +0000248 Optional, not currently supported.
249
Al Stone83ce0ef2016-06-13 15:41:55 -0600250MSCT Section 5.2.19 (signature == "MSCT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300251
252 **Maximum System Characteristic Table**
253
Al Stone83ce0ef2016-06-13 15:41:55 -0600254 Optional, not currently supported.
255
Al Stone735f00b2015-03-24 14:02:55 +0000256MSDM Signature Reserved (signature == "MSDM")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300257
258 **Microsoft Data Management table**
259
Al Stone735f00b2015-03-24 14:02:55 +0000260 Microsoft only table, will not be supported.
261
Al Stone83ce0ef2016-06-13 15:41:55 -0600262NFIT Section 5.2.25 (signature == "NFIT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300263
264 **NVDIMM Firmware Interface Table**
265
Al Stone735f00b2015-03-24 14:02:55 +0000266 Optional, not currently supported.
267
Al Stone83ce0ef2016-06-13 15:41:55 -0600268OEMx Signature of "OEMx" only
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300269
270 **OEM Specific Tables**
271
Al Stone83ce0ef2016-06-13 15:41:55 -0600272 All tables starting with a signature of "OEM" are reserved for OEM
273 use. Since these are not meant to be of general use but are limited
274 to very specific end users, they are not recommended for use and are
275 not supported by the kernel for arm64.
276
277PCCT Section 14.1 (signature == "PCCT)
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300278
279 **Platform Communications Channel Table**
280
Al Stone83ce0ef2016-06-13 15:41:55 -0600281 Recommend for use on arm64; use of PCC is recommended when using CPPC
282 to control performance and power for platform processors.
283
284PMTT Section 5.2.21.12 (signature == "PMTT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300285
286 **Platform Memory Topology Table**
287
Al Stone83ce0ef2016-06-13 15:41:55 -0600288 Optional, not currently supported.
289
290PSDT Section 5.2.11.3 (signature == "PSDT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300291
292 **Persistent System Description Table**
293
Al Stone83ce0ef2016-06-13 15:41:55 -0600294 Obsolete table, will not be supported.
295
Al Stone735f00b2015-03-24 14:02:55 +0000296RASF Section 5.2.20 (signature == "RASF")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300297
298 **RAS Feature table**
299
Al Stone735f00b2015-03-24 14:02:55 +0000300 Optional, not currently supported.
301
302RSDP Section 5.2.5 (signature == "RSD PTR")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300303
304 **Root System Description PoinTeR**
305
Al Stone735f00b2015-03-24 14:02:55 +0000306 Required for arm64.
307
308RSDT Section 5.2.7 (signature == "RSDT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300309
310 **Root System Description Table**
311
Al Stone735f00b2015-03-24 14:02:55 +0000312 Since this table can only provide 32-bit addresses, it is deprecated
Al Stone83ce0ef2016-06-13 15:41:55 -0600313 on arm64, and will not be used. If provided, it will be ignored.
Al Stone735f00b2015-03-24 14:02:55 +0000314
315SBST Section 5.2.14 (signature == "SBST")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300316
317 **Smart Battery Subsystem Table**
318
Al Stone735f00b2015-03-24 14:02:55 +0000319 Optional, not currently supported.
320
321SLIC Signature Reserved (signature == "SLIC")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300322
323 **Software LIcensing table**
324
Al Stone735f00b2015-03-24 14:02:55 +0000325 Microsoft only table, will not be supported.
326
327SLIT Section 5.2.17 (signature == "SLIT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300328
329 **System Locality distance Information Table**
330
Al Stone735f00b2015-03-24 14:02:55 +0000331 Optional in general, but required for NUMA systems.
332
333SPCR Signature Reserved (signature == "SPCR")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300334
335 **Serial Port Console Redirection table**
336
Al Stone735f00b2015-03-24 14:02:55 +0000337 Required for arm64.
338
339SPMI Signature Reserved (signature == "SPMI")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300340
341 **Server Platform Management Interface table**
342
Al Stone735f00b2015-03-24 14:02:55 +0000343 Optional, not currently supported.
344
345SRAT Section 5.2.16 (signature == "SRAT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300346
347 **System Resource Affinity Table**
348
Al Stone735f00b2015-03-24 14:02:55 +0000349 Optional, but if used, only the GICC Affinity structures are read.
Al Stone83ce0ef2016-06-13 15:41:55 -0600350 To support arm64 NUMA, this table is required.
Al Stone735f00b2015-03-24 14:02:55 +0000351
352SSDT Section 5.2.11.2 (signature == "SSDT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300353
354 **Secondary System Description Table**
355
Al Stone735f00b2015-03-24 14:02:55 +0000356 These tables are a continuation of the DSDT; these are recommended
357 for use with devices that can be added to a running system, but can
358 also serve the purpose of dividing up device descriptions into more
359 manageable pieces.
360
361 An SSDT can only ADD to the ACPI namespace. It cannot modify or
362 replace existing device descriptions already in the namespace.
363
364 These tables are optional, however. ACPI tables should contain only
365 one DSDT but can contain many SSDTs.
366
Al Stone83ce0ef2016-06-13 15:41:55 -0600367STAO Signature Reserved (signature == "STAO")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300368
369 **_STA Override table**
370
Al Stone83ce0ef2016-06-13 15:41:55 -0600371 Optional, but only necessary in virtualized environments in order to
372 hide devices from guest OSs.
373
Al Stone735f00b2015-03-24 14:02:55 +0000374TCPA Signature Reserved (signature == "TCPA")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300375
376 **Trusted Computing Platform Alliance table**
377
Al Stone735f00b2015-03-24 14:02:55 +0000378 Optional, not currently supported, and may need changes to fully
379 interoperate with arm64.
380
381TPM2 Signature Reserved (signature == "TPM2")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300382
383 **Trusted Platform Module 2 table**
384
Al Stone735f00b2015-03-24 14:02:55 +0000385 Optional, not currently supported, and may need changes to fully
386 interoperate with arm64.
387
388UEFI Signature Reserved (signature == "UEFI")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300389
390 **UEFI ACPI data table**
391
Al Stone735f00b2015-03-24 14:02:55 +0000392 Optional, not currently supported. No known use case for arm64,
393 at present.
394
395WAET Signature Reserved (signature == "WAET")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300396
397 **Windows ACPI Emulated devices Table**
398
Al Stone735f00b2015-03-24 14:02:55 +0000399 Microsoft only table, will not be supported.
400
401WDAT Signature Reserved (signature == "WDAT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300402
403 **Watch Dog Action Table**
404
Al Stone735f00b2015-03-24 14:02:55 +0000405 Microsoft only table, will not be supported.
406
407WDRT Signature Reserved (signature == "WDRT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300408
409 **Watch Dog Resource Table**
410
Al Stone735f00b2015-03-24 14:02:55 +0000411 Microsoft only table, will not be supported.
412
413WPBT Signature Reserved (signature == "WPBT")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300414
415 **Windows Platform Binary Table**
416
Al Stone735f00b2015-03-24 14:02:55 +0000417 Microsoft only table, will not be supported.
418
Al Stone83ce0ef2016-06-13 15:41:55 -0600419XENV Signature Reserved (signature == "XENV")
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300420
421 **Xen project table**
422
Al Stone83ce0ef2016-06-13 15:41:55 -0600423 Optional, used only by Xen at present.
424
Al Stone735f00b2015-03-24 14:02:55 +0000425XSDT Section 5.2.8 (signature == "XSDT")
Al Stone735f00b2015-03-24 14:02:55 +0000426
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300427 **eXtended System Description Table**
428
429 Required for arm64.
430====== ========================================================================
Al Stone735f00b2015-03-24 14:02:55 +0000431
432ACPI Objects
433------------
Al Stone83ce0ef2016-06-13 15:41:55 -0600434The expectations on individual ACPI objects that are likely to be used are
435shown in the list that follows; any object not explicitly mentioned below
436should be used as needed for a particular platform or particular subsystem,
437such as power management or PCI.
Al Stone735f00b2015-03-24 14:02:55 +0000438
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300439===== ================ ========================================================
Al Stone735f00b2015-03-24 14:02:55 +0000440Name Section Usage for ARMv8 Linux
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300441===== ================ ========================================================
Al Stone83ce0ef2016-06-13 15:41:55 -0600442_CCA 6.2.17 This method must be defined for all bus masters
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300443 on arm64 - there are no assumptions made about
Al Stone83ce0ef2016-06-13 15:41:55 -0600444 whether such devices are cache coherent or not.
445 The _CCA value is inherited by all descendants of
446 these devices so it does not need to be repeated.
447 Without _CCA on arm64, the kernel does not know what
448 to do about setting up DMA for the device.
Al Stone735f00b2015-03-24 14:02:55 +0000449
Al Stone83ce0ef2016-06-13 15:41:55 -0600450 NB: this method provides default cache coherency
451 attributes; the presence of an SMMU can be used to
452 modify that, however. For example, a master could
453 default to non-coherent, but be made coherent with
454 the appropriate SMMU configuration (see Table 17 of
455 the IORT specification, ARM Document DEN 0049B).
Al Stone735f00b2015-03-24 14:02:55 +0000456
Al Stone83ce0ef2016-06-13 15:41:55 -0600457_CID 6.1.2 Use as needed, see also _HID.
Al Stone735f00b2015-03-24 14:02:55 +0000458
Al Stone83ce0ef2016-06-13 15:41:55 -0600459_CLS 6.1.3 Use as needed, see also _HID.
Al Stone735f00b2015-03-24 14:02:55 +0000460
Al Stone83ce0ef2016-06-13 15:41:55 -0600461_CPC 8.4.7.1 Use as needed, power management specific. CPPC is
462 recommended on arm64.
Al Stone735f00b2015-03-24 14:02:55 +0000463
464_CRS 6.2.2 Required on arm64.
465
Al Stone83ce0ef2016-06-13 15:41:55 -0600466_CSD 8.4.2.2 Use as needed, used only in conjunction with _CST.
467
468_CST 8.4.2.1 Low power idle states (8.4.4) are recommended instead
469 of C-states.
Al Stone735f00b2015-03-24 14:02:55 +0000470
471_DDN 6.1.4 This field can be used for a device name. However,
472 it is meant for DOS device names (e.g., COM1), so be
473 careful of its use across OSes.
474
Al Stone735f00b2015-03-24 14:02:55 +0000475_DSD 6.2.5 To be used with caution. If this object is used, try
476 to use it within the constraints already defined by the
477 Device Properties UUID. Only in rare circumstances
478 should it be necessary to create a new _DSD UUID.
479
480 In either case, submit the _DSD definition along with
481 any driver patches for discussion, especially when
482 device properties are used. A driver will not be
483 considered complete without a corresponding _DSD
484 description. Once approved by kernel maintainers,
485 the UUID or device properties must then be registered
486 with the UEFI Forum; this may cause some iteration as
487 more than one OS will be registering entries.
488
Al Stone83ce0ef2016-06-13 15:41:55 -0600489_DSM 9.1.1 Do not use this method. It is not standardized, the
Al Stone735f00b2015-03-24 14:02:55 +0000490 return values are not well documented, and it is
491 currently a frequent source of error.
492
Al Stone735f00b2015-03-24 14:02:55 +0000493\_GL 5.7.1 This object is not to be used in hardware reduced
494 mode, and therefore should not be used on arm64.
495
496_GLK 6.5.7 This object requires a global lock be defined; there
497 is no global lock on arm64 since it runs in hardware
498 reduced mode. Hence, do not use this object on arm64.
499
500\_GPE 5.3.1 This namespace is for x86 use only. Do not use it
501 on arm64.
502
Al Stone83ce0ef2016-06-13 15:41:55 -0600503_HID 6.1.5 This is the primary object to use in device probing,
504 though _CID and _CLS may also be used.
Al Stone735f00b2015-03-24 14:02:55 +0000505
506_INI 6.5.1 Not required, but can be useful in setting up devices
507 when UEFI leaves them in a state that may not be what
508 the driver expects before it starts probing.
509
Al Stone83ce0ef2016-06-13 15:41:55 -0600510_LPI 8.4.4.3 Recommended for use with processor definitions (_HID
511 ACPI0010) on arm64. See also _RDI.
Al Stone735f00b2015-03-24 14:02:55 +0000512
Al Stone83ce0ef2016-06-13 15:41:55 -0600513_MLS 6.1.7 Highly recommended for use in internationalization.
Al Stone735f00b2015-03-24 14:02:55 +0000514
Al Stone83ce0ef2016-06-13 15:41:55 -0600515_OFF 7.2.2 It is recommended to define this method for any device
Al Stone735f00b2015-03-24 14:02:55 +0000516 that can be turned on or off.
517
Al Stone83ce0ef2016-06-13 15:41:55 -0600518_ON 7.2.3 It is recommended to define this method for any device
Al Stone735f00b2015-03-24 14:02:55 +0000519 that can be turned on or off.
520
521\_OS 5.7.3 This method will return "Linux" by default (this is
522 the value of the macro ACPI_OS_NAME on Linux). The
523 command line parameter acpi_os=<string> can be used
524 to set it to some other value.
525
526_OSC 6.2.11 This method can be a global method in ACPI (i.e.,
527 \_SB._OSC), or it may be associated with a specific
528 device (e.g., \_SB.DEV0._OSC), or both. When used
529 as a global method, only capabilities published in
530 the ACPI specification are allowed. When used as
531 a device-specific method, the process described for
532 using _DSD MUST be used to create an _OSC definition;
533 out-of-process use of _OSC is not allowed. That is,
534 submit the device-specific _OSC usage description as
535 part of the kernel driver submission, get it approved
536 by the kernel community, then register it with the
537 UEFI Forum.
538
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300539\_OSI 5.7.2 Deprecated on ARM64. As far as ACPI firmware is
540 concerned, _OSI is not to be used to determine what
Al Stone83ce0ef2016-06-13 15:41:55 -0600541 sort of system is being used or what functionality
542 is provided. The _OSC method is to be used instead.
Al Stone735f00b2015-03-24 14:02:55 +0000543
544_PDC 8.4.1 Deprecated, do not use on arm64.
545
546\_PIC 5.8.1 The method should not be used. On arm64, the only
547 interrupt model available is GIC.
548
Al Stone735f00b2015-03-24 14:02:55 +0000549\_PR 5.3.1 This namespace is for x86 use only on legacy systems.
550 Do not use it on arm64.
551
Al Stone735f00b2015-03-24 14:02:55 +0000552_PRT 6.2.13 Required as part of the definition of all PCI root
553 devices.
554
Al Stone83ce0ef2016-06-13 15:41:55 -0600555_PRx 7.3.8-11 Use as needed; power management specific. If _PR0 is
Al Stone735f00b2015-03-24 14:02:55 +0000556 defined, _PR3 must also be defined.
557
Al Stone83ce0ef2016-06-13 15:41:55 -0600558_PSx 7.3.2-5 Use as needed; power management specific. If _PS0 is
Al Stone735f00b2015-03-24 14:02:55 +0000559 defined, _PS3 must also be defined. If clocks or
560 regulators need adjusting to be consistent with power
561 usage, change them in these methods.
562
Al Stone83ce0ef2016-06-13 15:41:55 -0600563_RDI 8.4.4.4 Recommended for use with processor definitions (_HID
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300564 ACPI0010) on arm64. This should only be used in
Al Stone83ce0ef2016-06-13 15:41:55 -0600565 conjunction with _LPI.
Al Stone735f00b2015-03-24 14:02:55 +0000566
567\_REV 5.7.4 Always returns the latest version of ACPI supported.
568
Al Stone735f00b2015-03-24 14:02:55 +0000569\_SB 5.3.1 Required on arm64; all devices must be defined in this
570 namespace.
571
Al Stone83ce0ef2016-06-13 15:41:55 -0600572_SLI 6.2.15 Use is recommended when SLIT table is in use.
Al Stone735f00b2015-03-24 14:02:55 +0000573
574_STA 6.3.7, It is recommended to define this method for any device
Al Stone83ce0ef2016-06-13 15:41:55 -0600575 7.2.4 that can be turned on or off. See also the STAO table
576 that provides overrides to hide devices in virtualized
577 environments.
Al Stone735f00b2015-03-24 14:02:55 +0000578
Al Stone83ce0ef2016-06-13 15:41:55 -0600579_SRS 6.2.16 Use as needed; see also _PRS.
Al Stone735f00b2015-03-24 14:02:55 +0000580
581_STR 6.1.10 Recommended for conveying device names to end users;
582 this is preferred over using _DDN.
583
584_SUB 6.1.9 Use as needed; _HID or _CID are preferred.
585
Al Stone83ce0ef2016-06-13 15:41:55 -0600586_SUN 6.1.11 Use as needed, but recommended.
Al Stone735f00b2015-03-24 14:02:55 +0000587
Al Stone83ce0ef2016-06-13 15:41:55 -0600588_SWS 7.4.3 Use as needed; power management specific; this may
Al Stone735f00b2015-03-24 14:02:55 +0000589 require specification changes for use on arm64.
590
Al Stone735f00b2015-03-24 14:02:55 +0000591_UID 6.1.12 Recommended for distinguishing devices of the same
592 class; define it if at all possible.
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300593===== ================ ========================================================
Al Stone735f00b2015-03-24 14:02:55 +0000594
Al Stone83ce0ef2016-06-13 15:41:55 -0600595
Al Stone735f00b2015-03-24 14:02:55 +0000596
597
598ACPI Event Model
599----------------
600Do not use GPE block devices; these are not supported in the hardware reduced
601profile used by arm64. Since there are no GPE blocks defined for use on ARM
Al Stone83ce0ef2016-06-13 15:41:55 -0600602platforms, ACPI events must be signaled differently.
603
604There are two options: GPIO-signaled interrupts (Section 5.6.5), and
605interrupt-signaled events (Section 5.6.9). Interrupt-signaled events are a
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300606new feature in the ACPI 6.1 specification. Either - or both - can be used
Al Stone83ce0ef2016-06-13 15:41:55 -0600607on a given platform, and which to use may be dependent of limitations in any
608given SoC. If possible, interrupt-signaled events are recommended.
Al Stone735f00b2015-03-24 14:02:55 +0000609
610
611ACPI Processor Control
612----------------------
Al Stone83ce0ef2016-06-13 15:41:55 -0600613Section 8 of the ACPI specification changed significantly in version 6.0.
614Processors should now be defined as Device objects with _HID ACPI0007; do
615not use the deprecated Processor statement in ASL. All multiprocessor systems
616should also define a hierarchy of processors, done with Processor Container
617Devices (see Section 8.4.3.1, _HID ACPI0010); do not use processor aggregator
618devices (Section 8.5) to describe processor topology. Section 8.4 of the
619specification describes the semantics of these object definitions and how
620they interrelate.
Al Stone735f00b2015-03-24 14:02:55 +0000621
Al Stone83ce0ef2016-06-13 15:41:55 -0600622Most importantly, the processor hierarchy defined also defines the low power
623idle states that are available to the platform, along with the rules for
624determining which processors can be turned on or off and the circumstances
625that control that. Without this information, the processors will run in
626whatever power state they were left in by UEFI.
627
628Note too, that the processor Device objects defined and the entries in the
629MADT for GICs are expected to be in synchronization. The _UID of the Device
630object must correspond to processor IDs used in the MADT.
631
632It is recommended that CPPC (8.4.5) be used as the primary model for processor
633performance control on arm64. C-states and P-states may become available at
634some point in the future, but most current design work appears to favor CPPC.
Al Stone735f00b2015-03-24 14:02:55 +0000635
636Further, it is essential that the ARMv8 SoC provide a fully functional
637implementation of PSCI; this will be the only mechanism supported by ACPI
Al Stone83ce0ef2016-06-13 15:41:55 -0600638to control CPU power state. Booting of secondary CPUs using the ACPI
639parking protocol is possible, but discouraged, since only PSCI is supported
640for ARM servers.
Al Stone735f00b2015-03-24 14:02:55 +0000641
642
643ACPI System Address Map Interfaces
644----------------------------------
645In Section 15 of the ACPI specification, several methods are mentioned as
646possible mechanisms for conveying memory resource information to the kernel.
647For arm64, we will only support UEFI for booting with ACPI, hence the UEFI
648GetMemoryMap() boot service is the only mechanism that will be used.
649
650
651ACPI Platform Error Interfaces (APEI)
652-------------------------------------
653The APEI tables supported are described above.
654
655APEI requires the equivalent of an SCI and an NMI on ARMv8. The SCI is used
656to notify the OSPM of errors that have occurred but can be corrected and the
657system can continue correct operation, even if possibly degraded. The NMI is
658used to indicate fatal errors that cannot be corrected, and require immediate
659attention.
660
661Since there is no direct equivalent of the x86 SCI or NMI, arm64 handles
Al Stone83ce0ef2016-06-13 15:41:55 -0600662these slightly differently. The SCI is handled as a high priority interrupt;
663given that these are corrected (or correctable) errors being reported, this
664is sufficient. The NMI is emulated as the highest priority interrupt
665possible. This implies some caution must be used since there could be
666interrupts at higher privilege levels or even interrupts at the same priority
667as the emulated NMI. In Linux, this should not be the case but one should
668be aware it could happen.
Al Stone735f00b2015-03-24 14:02:55 +0000669
670
671ACPI Objects Not Supported on ARM64
672-----------------------------------
673While this may change in the future, there are several classes of objects
674that can be defined, but are not currently of general interest to ARM servers.
Al Stone83ce0ef2016-06-13 15:41:55 -0600675Some of these objects have x86 equivalents, and may actually make sense in ARM
676servers. However, there is either no hardware available at present, or there
677may not even be a non-ARM implementation yet. Hence, they are not currently
678supported.
Al Stone735f00b2015-03-24 14:02:55 +0000679
Al Stone83ce0ef2016-06-13 15:41:55 -0600680The following classes of objects are not supported:
Al Stone735f00b2015-03-24 14:02:55 +0000681
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300682 - Section 9.2: ambient light sensor devices
Al Stone735f00b2015-03-24 14:02:55 +0000683
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300684 - Section 9.3: battery devices
Al Stone735f00b2015-03-24 14:02:55 +0000685
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300686 - Section 9.4: lids (e.g., laptop lids)
Al Stone735f00b2015-03-24 14:02:55 +0000687
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300688 - Section 9.8.2: IDE controllers
Al Stone735f00b2015-03-24 14:02:55 +0000689
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300690 - Section 9.9: floppy controllers
Al Stone735f00b2015-03-24 14:02:55 +0000691
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300692 - Section 9.10: GPE block devices
Al Stone735f00b2015-03-24 14:02:55 +0000693
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300694 - Section 9.15: PC/AT RTC/CMOS devices
Al Stone735f00b2015-03-24 14:02:55 +0000695
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300696 - Section 9.16: user presence detection devices
Al Stone735f00b2015-03-24 14:02:55 +0000697
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300698 - Section 9.17: I/O APIC devices; all GICs must be enumerable via MADT
Al Stone735f00b2015-03-24 14:02:55 +0000699
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300700 - Section 9.18: time and alarm devices (see 9.15)
Al Stone735f00b2015-03-24 14:02:55 +0000701
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300702 - Section 10: power source and power meter devices
Al Stone735f00b2015-03-24 14:02:55 +0000703
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300704 - Section 11: thermal management
Al Stone735f00b2015-03-24 14:02:55 +0000705
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300706 - Section 12: embedded controllers interface
Al Stone735f00b2015-03-24 14:02:55 +0000707
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300708 - Section 13: SMBus interfaces
Al Stone735f00b2015-03-24 14:02:55 +0000709
Al Stone83ce0ef2016-06-13 15:41:55 -0600710
711This also means that there is no support for the following objects:
712
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300713==== =========================== ==== ==========
Al Stone83ce0ef2016-06-13 15:41:55 -0600714Name Section Name Section
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300715==== =========================== ==== ==========
Al Stone83ce0ef2016-06-13 15:41:55 -0600716_ALC 9.3.4 _FDM 9.10.3
717_ALI 9.3.2 _FIX 6.2.7
718_ALP 9.3.6 _GAI 10.4.5
719_ALR 9.3.5 _GHL 10.4.7
720_ALT 9.3.3 _GTM 9.9.2.1.1
721_BCT 10.2.2.10 _LID 9.5.1
722_BDN 6.5.3 _PAI 10.4.4
723_BIF 10.2.2.1 _PCL 10.3.2
724_BIX 10.2.2.1 _PIF 10.3.3
725_BLT 9.2.3 _PMC 10.4.1
726_BMA 10.2.2.4 _PMD 10.4.8
727_BMC 10.2.2.12 _PMM 10.4.3
728_BMD 10.2.2.11 _PRL 10.3.4
729_BMS 10.2.2.5 _PSR 10.3.1
730_BST 10.2.2.6 _PTP 10.4.2
731_BTH 10.2.2.7 _SBS 10.1.3
732_BTM 10.2.2.9 _SHL 10.4.6
733_BTP 10.2.2.8 _STM 9.9.2.1.1
734_DCK 6.5.2 _UPD 9.16.1
735_EC 12.12 _UPP 9.16.2
736_FDE 9.10.1 _WPC 10.5.2
737_FDI 9.10.2 _WPP 10.5.3
Mauro Carvalho Chehabb693d0b2019-06-12 14:52:38 -0300738==== =========================== ==== ==========