Message ID | 20210126203040.6101-4-alex.hung@canonical.com |
---|---|
State | Accepted |
Headers | show |
Series | [01/16] acpi: update ACPI version to 6.4 | expand |
On 26/01/2021 20:30, Alex Hung wrote: > The followings are changes in ACPI 6.4: > > 1. PMTT table is updated to revision 2. > 2. PHAT table is added with revision 1 > > Signed-off-by: Alex Hung <alex.hung@canonical.com> > --- > src/acpi/acpitables/acpitables.c | 33 ++++++++++++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > > diff --git a/src/acpi/acpitables/acpitables.c b/src/acpi/acpitables/acpitables.c > index b9120ecc..7d74a1f7 100644 > --- a/src/acpi/acpitables/acpitables.c > +++ b/src/acpi/acpitables/acpitables.c > @@ -210,6 +210,36 @@ static const fwts_acpi_table_rev acpi_63_rev[] = { > {NULL, 0xff} // end of table > }; > > +static const fwts_acpi_table_rev acpi_64_rev[] = { > + {"APIC", 5}, > + {"BERT", 1}, > + {"BGRT", 1}, > + {"CPEP", 1}, > + {"DSDT", 2}, > + {"ECDT", 1}, > + {"EINJ", 1}, > + {"ERST", 1}, > + {"FACP", 6}, > + {"FPDT", 1}, > + {"GTDT", 3}, > + {"HEST", 1}, > + {"MSCT", 1}, > + {"MPST", 1}, > + {"NFIT", 1}, > + {"PCCT", 2}, > + {"PHAT", 1}, > + {"PMTT", 2}, > + {"RASF", 1}, > + {"RSDT", 1}, > + {"SBST", 1}, > + {"SDEV", 1}, > + {"SLIT", 1}, > + {"SRAT", 3}, > + {"SSDT", 2}, > + {"XSDT", 1}, > + {NULL, 0xff} // end of table > +}; > + > static int acpi_table_check_test2(fwts_framework *fw) > { > const fwts_acpi_table_rev *tables_rev; > @@ -230,6 +260,9 @@ static int acpi_table_check_test2(fwts_framework *fw) > case FWTS_ACPI_VERSION_63: > tables_rev = acpi_63_rev; > break; > + case FWTS_ACPI_VERSION_64: > + tables_rev = acpi_64_rev; > + break; > default: > fwts_log_info_verbatim(fw, "This test does not support ACPI %4.4" PRIx32 ".", version); > return FWTS_SKIP; > Acked-by: Colin Ian King <colin.king@canonical.com>
On 1/27/21 4:30 AM, Alex Hung wrote: > The followings are changes in ACPI 6.4: > > 1. PMTT table is updated to revision 2. > 2. PHAT table is added with revision 1 > > Signed-off-by: Alex Hung <alex.hung@canonical.com> > --- > src/acpi/acpitables/acpitables.c | 33 ++++++++++++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > > diff --git a/src/acpi/acpitables/acpitables.c b/src/acpi/acpitables/acpitables.c > index b9120ecc..7d74a1f7 100644 > --- a/src/acpi/acpitables/acpitables.c > +++ b/src/acpi/acpitables/acpitables.c > @@ -210,6 +210,36 @@ static const fwts_acpi_table_rev acpi_63_rev[] = { > {NULL, 0xff} // end of table > }; > > +static const fwts_acpi_table_rev acpi_64_rev[] = { > + {"APIC", 5}, > + {"BERT", 1}, > + {"BGRT", 1}, > + {"CPEP", 1}, > + {"DSDT", 2}, > + {"ECDT", 1}, > + {"EINJ", 1}, > + {"ERST", 1}, > + {"FACP", 6}, > + {"FPDT", 1}, > + {"GTDT", 3}, > + {"HEST", 1}, > + {"MSCT", 1}, > + {"MPST", 1}, > + {"NFIT", 1}, > + {"PCCT", 2}, > + {"PHAT", 1}, > + {"PMTT", 2}, > + {"RASF", 1}, > + {"RSDT", 1}, > + {"SBST", 1}, > + {"SDEV", 1}, > + {"SLIT", 1}, > + {"SRAT", 3}, > + {"SSDT", 2}, > + {"XSDT", 1}, > + {NULL, 0xff} // end of table > +}; > + > static int acpi_table_check_test2(fwts_framework *fw) > { > const fwts_acpi_table_rev *tables_rev; > @@ -230,6 +260,9 @@ static int acpi_table_check_test2(fwts_framework *fw) > case FWTS_ACPI_VERSION_63: > tables_rev = acpi_63_rev; > break; > + case FWTS_ACPI_VERSION_64: > + tables_rev = acpi_64_rev; > + break; > default: > fwts_log_info_verbatim(fw, "This test does not support ACPI %4.4" PRIx32 ".", version); > return FWTS_SKIP; > Acked-by: Ivan Hu <ivan.hu@canonical.com>
diff --git a/src/acpi/acpitables/acpitables.c b/src/acpi/acpitables/acpitables.c index b9120ecc..7d74a1f7 100644 --- a/src/acpi/acpitables/acpitables.c +++ b/src/acpi/acpitables/acpitables.c @@ -210,6 +210,36 @@ static const fwts_acpi_table_rev acpi_63_rev[] = { {NULL, 0xff} // end of table }; +static const fwts_acpi_table_rev acpi_64_rev[] = { + {"APIC", 5}, + {"BERT", 1}, + {"BGRT", 1}, + {"CPEP", 1}, + {"DSDT", 2}, + {"ECDT", 1}, + {"EINJ", 1}, + {"ERST", 1}, + {"FACP", 6}, + {"FPDT", 1}, + {"GTDT", 3}, + {"HEST", 1}, + {"MSCT", 1}, + {"MPST", 1}, + {"NFIT", 1}, + {"PCCT", 2}, + {"PHAT", 1}, + {"PMTT", 2}, + {"RASF", 1}, + {"RSDT", 1}, + {"SBST", 1}, + {"SDEV", 1}, + {"SLIT", 1}, + {"SRAT", 3}, + {"SSDT", 2}, + {"XSDT", 1}, + {NULL, 0xff} // end of table +}; + static int acpi_table_check_test2(fwts_framework *fw) { const fwts_acpi_table_rev *tables_rev; @@ -230,6 +260,9 @@ static int acpi_table_check_test2(fwts_framework *fw) case FWTS_ACPI_VERSION_63: tables_rev = acpi_63_rev; break; + case FWTS_ACPI_VERSION_64: + tables_rev = acpi_64_rev; + break; default: fwts_log_info_verbatim(fw, "This test does not support ACPI %4.4" PRIx32 ".", version); return FWTS_SKIP;
The followings are changes in ACPI 6.4: 1. PMTT table is updated to revision 2. 2. PHAT table is added with revision 1 Signed-off-by: Alex Hung <alex.hung@canonical.com> --- src/acpi/acpitables/acpitables.c | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+)