Message ID | 1500963057-4225-6-git-send-email-Sakar.Arora@arm.com |
---|---|
State | Accepted |
Headers | show |
On 2017-07-24 11:10 PM, Sakar Arora wrote: > From: Rajat Goyal <Rajat.Goyal@arm.com> > > Server Base Boot Requirements (SBBR) specification is intended for SBSA- > compliant 64-bit ARMv8 servers. > It defines the base firmware requirements for out-of-box support of any > ARM SBSA-compatible Operating System or hypervisor. > The requirements in this specification are expected to be minimal yet > complete for booting a multi-core ARMv8 server platform, while leaving > plenty of room for OEM or ODM innovations and design details. > For more information, download the SBBR specification here: > http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0044b/index.html > > This change introduces test cases as per SBBR specification to gtdt acpi > table. > > Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@arm.com> > Signed-off-by: Rajat Goyal <Rajat.Goyal@arm.com> > --- > src/acpi/gtdt/gtdt.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/src/acpi/gtdt/gtdt.c b/src/acpi/gtdt/gtdt.c > index da65d60..27d83c8 100644 > --- a/src/acpi/gtdt/gtdt.c > +++ b/src/acpi/gtdt/gtdt.c > @@ -37,8 +37,13 @@ static int gtdt_init(fwts_framework *fw) > return FWTS_ERROR; > } > if (table == NULL || (table && table->length == 0)) { > - fwts_log_error(fw, "ACPI GTDT table does not exist, skipping test"); > - return FWTS_SKIP; > + if (fw->flags & FWTS_FLAG_TEST_SBBR) { > + fwts_log_error(fw, "ACPI GTDT table does not exist"); > + return FWTS_ERROR; > + } else { > + fwts_log_error(fw, "ACPI GTDT table does not exist, skipping test"); > + return FWTS_SKIP; > + } > } > return FWTS_OK; > } > @@ -247,6 +252,6 @@ static fwts_framework_ops gtdt_ops = { > .minor_tests = gtdt_tests > }; > > -FWTS_REGISTER("gtdt", >dt_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH | FWTS_FLAG_TEST_ACPI) > +FWTS_REGISTER("gtdt", >dt_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH | FWTS_FLAG_TEST_ACPI | FWTS_FLAG_TEST_SBBR) > > #endif > Acked-by: Alex Hung <alex.hung@canonical.com>
On 25/07/17 07:10, Sakar Arora wrote: > From: Rajat Goyal <Rajat.Goyal@arm.com> > > Server Base Boot Requirements (SBBR) specification is intended for SBSA- > compliant 64-bit ARMv8 servers. > It defines the base firmware requirements for out-of-box support of any > ARM SBSA-compatible Operating System or hypervisor. > The requirements in this specification are expected to be minimal yet > complete for booting a multi-core ARMv8 server platform, while leaving > plenty of room for OEM or ODM innovations and design details. > For more information, download the SBBR specification here: > http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0044b/index.html > > This change introduces test cases as per SBBR specification to gtdt acpi > table. > > Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@arm.com> > Signed-off-by: Rajat Goyal <Rajat.Goyal@arm.com> > --- > src/acpi/gtdt/gtdt.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/src/acpi/gtdt/gtdt.c b/src/acpi/gtdt/gtdt.c > index da65d60..27d83c8 100644 > --- a/src/acpi/gtdt/gtdt.c > +++ b/src/acpi/gtdt/gtdt.c > @@ -37,8 +37,13 @@ static int gtdt_init(fwts_framework *fw) > return FWTS_ERROR; > } > if (table == NULL || (table && table->length == 0)) { > - fwts_log_error(fw, "ACPI GTDT table does not exist, skipping test"); > - return FWTS_SKIP; > + if (fw->flags & FWTS_FLAG_TEST_SBBR) { > + fwts_log_error(fw, "ACPI GTDT table does not exist"); > + return FWTS_ERROR; > + } else { > + fwts_log_error(fw, "ACPI GTDT table does not exist, skipping test"); > + return FWTS_SKIP; > + } > } > return FWTS_OK; > } > @@ -247,6 +252,6 @@ static fwts_framework_ops gtdt_ops = { > .minor_tests = gtdt_tests > }; > > -FWTS_REGISTER("gtdt", >dt_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH | FWTS_FLAG_TEST_ACPI) > +FWTS_REGISTER("gtdt", >dt_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH | FWTS_FLAG_TEST_ACPI | FWTS_FLAG_TEST_SBBR) > > #endif > Acked-by: Colin Ian King <colin.king@canonical.com>
diff --git a/src/acpi/gtdt/gtdt.c b/src/acpi/gtdt/gtdt.c index da65d60..27d83c8 100644 --- a/src/acpi/gtdt/gtdt.c +++ b/src/acpi/gtdt/gtdt.c @@ -37,8 +37,13 @@ static int gtdt_init(fwts_framework *fw) return FWTS_ERROR; } if (table == NULL || (table && table->length == 0)) { - fwts_log_error(fw, "ACPI GTDT table does not exist, skipping test"); - return FWTS_SKIP; + if (fw->flags & FWTS_FLAG_TEST_SBBR) { + fwts_log_error(fw, "ACPI GTDT table does not exist"); + return FWTS_ERROR; + } else { + fwts_log_error(fw, "ACPI GTDT table does not exist, skipping test"); + return FWTS_SKIP; + } } return FWTS_OK; } @@ -247,6 +252,6 @@ static fwts_framework_ops gtdt_ops = { .minor_tests = gtdt_tests }; -FWTS_REGISTER("gtdt", >dt_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH | FWTS_FLAG_TEST_ACPI) +FWTS_REGISTER("gtdt", >dt_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH | FWTS_FLAG_TEST_ACPI | FWTS_FLAG_TEST_SBBR) #endif