Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ACPI 6.0: Add changes for IORT and DRTM tables.
Individual patch descriptions (8): Using a minus number with ACPI_ADD_PTR() will cause compiler warnings, such warnings cannot be eliminated by force casting an unsigned value to a signed value. This patch thus introduces ACPI_SUB_PTR() to be used with minus numbers. Lv Zheng. In CSRT/DBG2, there is ACPI_DMT_BUFFER defined for the variable length fields and the support around such variable length fields is broken: 1. CSRT cannot compile "ResourceInfo" buffer. 2. There is an extra empty line appended before such fields. 3. CSRT contains broken subtable length fields due to this variable length field. 4. Code in CSRT support doesn't manage "parent table", "sub-table" correctly. This patch fixes CSRT/DBG2 table decompilation/compilation issues using new ACPI_DMT_RAW_BUFFER. Since there is no user of the MultiLine parameter, this patch also removes it from AcpiDmDumpBuffer(). Also this patch enhances AcpiDmDumpBuffer() to allow small sized buffer to be dumped to the same line as its header to ensure no user experience regression. Lv Zheng. This patch adds support for IORT (IO Remapping Table) in iasl. Note that some field names are modified to shrink their length or the decompiled IORT ASL will contain fields with ugly ":" alignment. This patch doesn't add inline table support for the SMMU interrupt fields and memroy access properties fields. They will be added by seperate patches. Lv Zheng. The IORT contains field definitions around "Memory Access Properties". This patch adds support to encode/decode it using inline table. Lv Zheng. Some data tables reserve fields for future extension. So we need to compile the higher versioning table's fields using generic compiling betwee the known field names. This patch adds support to allow optional fields insertion. Lv Zheng. This patch implements OptionalPadding in a different way so that newer versioned IORT can be written with the generic data types to generate the "OptionalPadding" field. Lv Zheng. This patch implements Padding in a different way so that users can specify an offset in the "Offset to ID mappings" field to determine the length of the "Padding" field. Lv Zheng. This patch adds support for DRTM (Dynamic Root of Trust for Measurement table) in iasl. Lv Zheng.
- Loading branch information