ACPI OSC: Increase buffer length of 3rd argument to 12 bytes
PATCH 1/1 ACPI OSC: Increase buffer length of 3rd argument to 12 bytes
This works around a widespread BIOS issue (seen on quite some Intel systems).
There the BIOS tries to reference the capabilities buffer beyond the buffer's size.
According to the ACPI spec the capabilities buffer (3rd argument)
must at least be 4 bytes in size and is used to return error codes
Compare with ACPI spec: 6.2.10 _OSC (Operating System Capabilities)
But BIOSes reference up to 12 bytes without checking the size of
the 3rd argument. This results in breaking out of interpreting/processing
the _OSC method and in this error message:
ACPI Error: Field [CPB3] at 96 exceeds Buffer [NULL] size 64 (bits) (20110112/dsopcode-597)
ACPI Error: Method parse/execution failed [\_SB_._OSC] (Node ffff88081f4cdb78), AE_AML_BUFFER_LIMIT (20110112/psparse-536)
This patch fixes the issue.
--- drivers/acpi/bus.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/acpi/bus.c +1 -1
@@ -526,7 +526,7 @@ static void acpi_bus_osc_support(void)struct acpi_osc_context context = { .uuid_str = sb_uuid_str, .rev =1 , - .cap.length =8 , + .cap.length =12 , .cap.pointer = capbuf, };acpi_handle handle;
Signature · 1 line
1.7.3.4