ACK: [PATCH] acpi: sync up _BIX test in method to acpi_battery tests
ivanhu
ivan.hu at canonical.com
Wed Oct 11 09:58:59 UTC 2017
On 10/06/2017 12:04 PM, Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung at canonical.com>
> ---
> src/acpi/method/method.c | 17 +++++++++++------
> 1 file changed, 11 insertions(+), 6 deletions(-)
>
> diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c
> index 6b023ac..b5484d7 100644
> --- a/src/acpi/method/method.c
> +++ b/src/acpi/method/method.c
> @@ -4165,14 +4165,19 @@ static void method_test_BIX_return(
> obj->Package.Elements[7].Integer.Value);
> failed = true;
> }
> - /* Cycle Count */
> - if (obj->Package.Elements[8].Integer.Value > 0x7fffffff) {
> - fwts_failed(fw, LOG_LEVEL_LOW, "Method_BIXCyleCount",
> - "%s: %s (Element 8) is unknown: "
> - "0x%8.8" PRIx64 ".", Elements[8].name,
> - name, obj->Package.Elements[8].Integer.Value);
> + /* Cycle Count: value = 0 ~ 0xFFFFFFFE or 0xFFFFFFFF (unknown) */
> +
> + /* Measurement Accuracy */
> + if (obj->Package.Elements[9].Integer.Value > 100000) {
> + fwts_failed(fw, LOG_LEVEL_CRITICAL,
> + "Method_BIXMeasurementAccuracy",
> + "%s: %s (Element 9) "
> + "is unknown: 0x%8.8" PRIx64 ".",
> + name, elements[9].name,
> + obj->Package.Elements[9].Integer.Value);
> failed = true;
> }
> +
> #endif
> if (failed)
> fwts_advice(fw,
>
Acked-by: Ivan Hu <ivan.hu at canonical.com>
More information about the fwts-devel
mailing list