diff options
author | Linn Crosetto <linn@hp.com> | 2013-04-11 20:25:17 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-12 07:29:47 -0400 |
commit | 6d1490e248190646773083df60b25ffe14f74a4b (patch) | |
tree | 33b5a3c1892f62ce11cbc1db66518b88e2c64ec5 /drivers/acpi/acpica/tbfadt.c | |
parent | b07a383f46bafaf8a0607096aa75590ec962541f (diff) |
ACPICA: FADT: Remove extraneous warning for very large GPE registers
This change removes a size mismatch warning if the legacy
length field for a GPE register set is larger than the 64-bit
GAS structure can accomodate. GPE register sets can be larger
than the 255 bit limitation of the GAS structure. Linn Crosetto
(linn@hp.com).
Signed-off-by: Linn Crosetto <linn@hp.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/tbfadt.c')
-rw-r--r-- | drivers/acpi/acpica/tbfadt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/tbfadt.c b/drivers/acpi/acpica/tbfadt.c index 74181bf181ec..33b00d22300a 100644 --- a/drivers/acpi/acpica/tbfadt.c +++ b/drivers/acpi/acpica/tbfadt.c | |||
@@ -559,8 +559,12 @@ static void acpi_tb_validate_fadt(void) | |||
559 | /* | 559 | /* |
560 | * For each extended field, check for length mismatch between the | 560 | * For each extended field, check for length mismatch between the |
561 | * legacy length field and the corresponding 64-bit X length field. | 561 | * legacy length field and the corresponding 64-bit X length field. |
562 | * Note: If the legacy length field is > 0xFF bits, ignore this | ||
563 | * check. (GPE registers can be larger than the 64-bit GAS structure | ||
564 | * can accomodate, 0xFF bits). | ||
562 | */ | 565 | */ |
563 | if (address64->address && | 566 | if (address64->address && |
567 | (ACPI_MUL_8(length) <= ACPI_UINT8_MAX) && | ||
564 | (address64->bit_width != ACPI_MUL_8(length))) { | 568 | (address64->bit_width != ACPI_MUL_8(length))) { |
565 | ACPI_BIOS_WARNING((AE_INFO, | 569 | ACPI_BIOS_WARNING((AE_INFO, |
566 | "32/64X length mismatch in FADT/%s: %u/%u", | 570 | "32/64X length mismatch in FADT/%s: %u/%u", |