sony-laptop: ACPI Exception when a Fn-Key is pressed
Subsystems (4)
Hi.
I have a Vaio VGN-FW235J and I tried today the latest kernel version in git to test the latest changes in sony-laptop.
When I press any Fn-keys, i.e. brightness control, I received these messages in syslog:
ACPI Error (hwvalid-0186): Denied AML access to port 0x00000080/4 (DMA1 0x0081-0x0083) [20090320]
ACPI Exception (evregion-0422): AE_AML_ILLEGAL_ADDRESS, Returned by Handler for [SystemIO] [20090320]
ACPI Error (psparse-0537): Method parse/execution failed [\P8XH] (Node f7418c30), AE_AML_ILLEGAL_ADDRESS
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPCB.EC__._Q58] (Node f741bc00), AE_AML_ILLEGAL_ADDRESS ACPI Error (hwvalid-0186): Denied AML access to port 0x00000080/4 (DMA1 0x0081-0x0083) [20090320]
ACPI Exception (evregion-0422): AE_AML_ILLEGAL_ADDRESS, Returned by Handler for [SystemIO] [20090320]
ACPI Error (psparse-0537): Method parse/execution failed [\P8XH] (Node f7418c30), AE_AML_ILLEGAL_ADDRESS
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPCB.EC__._Q59] (Node f741bc18), AE_AML_ILLEGAL_ADDRESS
Some information from dmidecode:
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: American Megatrends Inc.
Version: R1090Y0
Release Date: 07/25/2008
Address: 0xF0000
Runtime Size: 64 kB
ROM Size: 2048 kBHandle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: Sony Corporation
Product Name: VGN-FW235J
Version: C600TPE0
My dsdt is attached too.
I tried the kernel 2.6.29.1 and no errors occurs in syslog. But I need to apply this patch to get the Fn-Keys events:
(quoted diff) +0 -0
b/drivers/platform/x86/sony-laptop.c
index 537959d..167f8ef 100644
drivers/platform/x86/sony-laptop.c +9 -0
@@ -863,6 +863,15 @@ static const struct dmi_system_id sony_nc_ids[] = { }, }, { + .ident = "Sony Vaio FW Series", + .callback = sony_nc_C_enable, + .driver_data = sony_C_events, + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Sony Corporation" ), + DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FW"), + }, + }, + { .ident ="Sony Vaio FZ Series" , .callback = sony_nc_C_enable, .driver_data = sony_C_events,
Best regards.
Signature · 2 lines
[]'s Rodrigo Luiz
Mattia Dongili
maintainerQuoted 8 lines · Rodrigo Luiz
Hi.
I have a Vaio VGN-FW235J and I tried today the latest kernel version in git to test the latest changes in sony-laptop.
When I press any Fn-keys, i.e. brightness control, I received these messages in syslog:
Quoted 16 lines
ACPI Error (hwvalid-0186): Denied AML access to port 0x00000080/4 (DMA1 0x0081-0x0083) [20090320]
ACPI Exception (evregion-0422):AE_AML_ILLEGAL_ADDRESS, Returned by Handler for [SystemIO] [20090320]
ACPI Error (psparse-0537): Method parse/execution failed [\P8XH] (Nodef7418c30),AE_AML_ILLEGAL_ADDRESS
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPCB.EC__._Q58] (Nodef741bc00),AE_AML_ILLEGAL_ADDRESSACPI Error (hwvalid-0186): Denied AML access to port 0x00000080/4 (DMA1 0x0081-0x0083) [20090320]
ACPI Exception (evregion-0422):AE_AML_ILLEGAL_ADDRESS, Returned by Handler for [SystemIO] [20090320]
ACPI Error (psparse-0537): Method parse/execution failed [\P8XH] (Nodef7418c30),AE_AML_ILLEGAL_ADDRESS
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPCB.EC__._Q59] (Nodef741bc18),AE_AML_ILLEGAL_ADDRESS
Interesting. This is due to a change in current git it was not present in 2.6.29.
Does booting with acpi_osi=Linux makes things any worse? (it should fix the above error but might make some other functionality behave differently).
Or eventually also see if there is a bios upgrade available for your laptop.
Len,
it looks like most of the vaios define this in global scope:
OperationRegion (PRT0, SystemIO, 0x80, 0x04)
Field (PRT0, DWordAcc, Lock, Preserve)
{
P80H, 32
}which falls in the DMA1 reserved area in >WinXP.
No idea how windows copes with it if the same restrictions area really in place.
Signature · 2 lines
mattia :wq!
Quoted 7 lines · Mattia Dongili
Does booting with acpi_osi=Linux makes things any worse? (it should fix the above error but might make some other functionality behave differently).
Or eventually also see if there is a bios upgrade available for your laptop.
Booting with acpi_osi=Linux does not make any changes. Kernel show the same messages.
And there is no bios upgrade for my notebook :(
I forgot to say two things:
When I loaded the module, a new message appeared (booting with and without acpi_osi=Linux):
sony-laptop: Sony Notebook Control Driver v0.6.
input: Sony Vaio Keys as /class/input/input9
input: Sony Vaio Jogdial as /class/input/input10
--> [Firmware Bug]: ACPI: ACPI brightness control misses _BQC function
sony-laptop: brightness ignored, must be controlled by ACPI video driver
And these errors show in any ACPI events (lid open/close, press power button ...), not just in Fn-Keys.
Signature · 2 lines
[]'s Rodrigo Luiz
Quoted 9 lines · Rodrigo Luiz
Quoted 7 lines · Mattia Dongili
Does booting with acpi_osi=Linux makes things any worse? (it should fix the above error but might make some other functionality behave differently).
Or eventually also see if there is a bios upgrade available for your laptop.
Does the warning message exist when booting the previous kernel? For
example: 2.6.28 kernel.
Will you please try the following commit patch and see whether this issue still exists?
Quoted 3 lines
commit
7b46ecd5fcebf381a7bde966db352d8fb1b8e944Author: Len Brown <[email protected]> Date: Wed Feb 25 18:00:18 2009 -0500
>Revert "ACPI: make some IO ports off-limits to AML"
thanks.
Quoted 20 lines
Booting with acpi_osi=Linux does not make any changes. Kernel show the same messages.
And there is no bios upgrade for my notebook :(
I forgot to say two things:
When I loaded the module, a new message appeared (booting with and without acpi_osi=Linux):
sony-laptop: Sony Notebook Control Driver v0.6.
input: Sony Vaio Keys as /class/input/input9
input: Sony Vaio Jogdial as /class/input/input10
--> [Firmware Bug]: ACPI: ACPI brightness control misses_BQCfunction
sony-laptop: brightness ignored, must be controlled by ACPI video driverAnd these errors show in any ACPI events (lid open/close, press power button ...), not just in Fn-Keys.
Len Brown
reviewerQuoted 10 lines · yakui_zhao
Quoted 9 lines · Rodrigo Luiz
Quoted 7 lines · Mattia Dongili
Does booting with acpi_osi=Linux makes things any worse? (it should fix the above error but might make some other functionality behave differently).
Or eventually also see if there is a bios upgrade available for your laptop.
Quoted 8 lines
Does the warning message exist when booting the previous kernel? For
example: 2.6.28 kernel.Will you please try the following commit patch and see whether this issue still exists?
Quoted 3 lines
commit
7b46ecd5fcebf381a7bde966db352d8fb1b8e944Author: Len Brown <[email protected]> Date: Wed Feb 25 18:00:18 2009 -0500>Revert "ACPI: make some IO ports off-limits to AML"
That commit shipped in 2.6.29, so Rodrigo should already have it.
ie. 2.6.29 should behave just like 2.6.28.
by "latest git", i assume Rodrigo means 2.6.29-git*, ie 2.6.30 merge window.
thanks,
Len Brown, Intel Open Source Technology Center
Len Brown
reviewerQuoted 3 lines
Does booting with acpi_osi=Linux makes things any worse?
acpi_osi=Linux will make Linux answer YES if/when a BIOS asks OSI(Linux).
However, it does not change if/when the BIOS asks if we are XP, nor would it change our (YES) answer if asked.
Unlike all previous uses of OSI where what matters is what Linux ANSWERs, this port blocking feature depends on what the BIOS ASKS.
Len Brown, Intel Open Source Technology Center
Len Brown
reviewerQuoted 11 lines · Mattia Dongili
Quoted 10 lines · Rodrigo Luiz
Hi.
I have a Vaio VGN-FW235J and I tried today the latest kernel version in git to test the latest changes in sony-laptop.
When I press any Fn-keys, i.e. brightness control, I received these messages in syslog:
ACPI Error (hwvalid-0186): Denied AML access to port 0x00000080/4 (DMA1 0x0081-0x0083) [20090320]
this looks like a write to port 80 -- the debug port -- which is valid.
however, it looks like the size is 4, which overlaps with protected ports?
Quoted 33 lines
Quoted 6 lines
ACPI Exception (evregion-0422):
AE_AML_ILLEGAL_ADDRESS, Returned by Handler for [SystemIO] [20090320]
ACPI Error (psparse-0537): Method parse/execution failed [\P8XH] (Nodef7418c30),AE_AML_ILLEGAL_ADDRESS
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPCB.EC__._Q58] (Nodef741bc00),AE_AML_ILLEGAL_ADDRESSQuoted 8 lines
ACPI Error (hwvalid-0186): Denied AML access to port 0x00000080/4 (DMA1 0x0081-0x0083) [20090320]
ACPI Exception (evregion-0422):AE_AML_ILLEGAL_ADDRESS, Returned by Handler for [SystemIO] [20090320]
ACPI Error (psparse-0537): Method parse/execution failed [\P8XH] (Nodef7418c30),AE_AML_ILLEGAL_ADDRESS
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPCB.EC__._Q59] (Nodef741bc18),AE_AML_ILLEGAL_ADDRESSInteresting. This is due to a change in current git it was not present in 2.6.29.
Does booting with acpi_osi=Linux makes things any worse? (it should fix the above error but might make some other functionality behave differently).
Or eventually also see if there is a bios upgrade available for your laptop.Len,
it looks like most of the vaios define this in global scope:OperationRegion (PRT0, SystemIO, 0x80, 0x04) Field (PRT0, DWordAcc, Lock, Preserve) { P80H, 32 }
Quoted 3 lines
which falls in the DMA1 reserved area in >WinXP.
No idea how windows copes with it if the same restrictions area really in place.
just defining the opregion is okay.
in 2.6.29 we checked at opregion definition time -- but had some false hits on regions that were defined and never used.
so in 2.6.30 we have run-time checks only.
-Len Brown, Intel Open Source Technology Center
Quoted 19 lines · Rodrigo Luiz
ACPI Error (hwvalid-0186): Denied AML access to port 0x00000080/4 (DMA1 0x0081-0x0083) [20090320]
ACPI Exception (evregion-0422):AE_AML_ILLEGAL_ADDRESS, Returned by Handler for [SystemIO] [20090320]
ACPI Error (psparse-0537): Method parse/execution failed [\P8XH] (Nodef7418c30),AE_AML_ILLEGAL_ADDRESS
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPCB.EC__._Q58] (Nodef741bc00),AE_AML_ILLEGAL_ADDRESSACPI Error (hwvalid-0186): Denied AML access to port 0x00000080/4 (DMA1 0x0081-0x0083) [20090320]
ACPI Exception (evregion-0422):AE_AML_ILLEGAL_ADDRESS, Returned by Handler for [SystemIO] [20090320]
ACPI Error (psparse-0537): Method parse/execution failed [\P8XH] (Nodef7418c30),AE_AML_ILLEGAL_ADDRESS
ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.LPCB.EC__._Q59] (Nodef741bc18),AE_AML_ILLEGAL_ADDRESS
Using git bisect, I found the first bad commit:
7f0719039085cc40114abce84cf29fe57da226f4 is first bad commit commit 7f0719039085cc40114abce84cf29fe57da226f4
Author: Bob Moore <[email protected]> Date: Thu Mar 19 09:37:47 2009 +0800
ACPICA: New: I/O port protection
Protect certain I/O ports from reads/writes. Provides MS compatibility. New module, hwvalid.c
My mistake. The issue is with acpi, not with sony-laptop.
I did more tests, now with not loading sony-laptop. When I close/open lid or when I press the power button, I see these same exceptions.
I tried to revert the patch, without success.
Signature · 2 lines
[]'s Rodrigo Luiz
Len Brown
reviewerRodrigo Luiz,
Please attach the full acpidump output here:
http://bugzilla.kernel.org/show_bug.cgi?id=13036
thanks,
Len Brown, Intel Open Source Technology Center
Len Brown
reviewerPATCH 1/1 ACPICA: delete check for AML access to port 0x81-83
In reply to Rodrigo LuizFrom: Len Brown <[email protected]>
Sony laptops apparently write 4-bytes (rather than 1 byte) to debug port 0x80, which spews error messages:
Denied AML access to port 0x00000080/4 (DMA1 0x0081-0x0083) [20090320]
http://bugzilla.kernel.org/show_bug.cgi?id=13036
---
Rodrigo,
Please verify that this makes the warnings go away.
thanks,
-Len
drivers/acpi/acpica/hwvalid.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/acpi/acpica/hwvalid.c +0 -1
@@ -90,7 +90,6 @@ static const struct acpi_port_info acpi_protected_ports[] = { {"PIT2", 0x0048, 0x004B, ACPI_OSI_WIN_XP}, {"RTC", 0x0070, 0x0071, ACPI_OSI_WIN_XP}, {"CMOS", 0x0074, 0x0076, ACPI_OSI_WIN_XP}, - {"DMA1", 0x0081, 0x0083, ACPI_OSI_WIN_XP}, {"DMA1L", 0x0087, 0x0087, ACPI_OSI_WIN_XP}, {"DMA2", 0x0089, 0x008B, ACPI_OSI_WIN_XP}, {"DMA2L", 0x008F, 0x008F, ACPI_OSI_WIN_XP},
Signature · 1 line
1.6.2.2.446.gfbdc
Re: [PATCH] ACPICA: delete check for AML access to port 0x81-83
Quoted 7 lines · Len Brown
From: Len Brown <[email protected]>
Sony laptops apparently write 4-bytes (rather than 1 byte) to debug port
0x80, which spews error messages:Denied AML access to port 0x00000080/4 (DMA1 0x0081-0x0083) [20090320]
Quoted 8 lines
http://bugzilla.kernel.org/show_bug.cgi?id=13036
Signed-off-by Len Brown <[email protected]>---
Rodrigo,
Please verify that this makes the warnings go away.
Ok! There is no more warnings!
Signature · 2 lines
[]'s Rodrigo Luiz
Re: [PATCH] ACPICA: delete check for AML access to port 0x81-83
In reply to Len BrownQuoted 10 lines · Len Brown
From: Len Brown <[email protected]>
Sony laptops apparently write 4-bytes (rather than 1 byte) to debug port
0x80, which spews error messages:Denied AML access to port 0x00000080/4 (DMA1 0x0081-0x0083) [20090320]
http://bugzilla.kernel.org/show_bug.cgi?id=13036
Signed-off-by Len Brown <[email protected]>
Quoted 26 lines
---
Rodrigo,
Please verify that this makes the warnings go away.thanks,
(quoted diff) +0
-1-Len drivers/acpi/acpica/hwvalid.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)drivers/acpi/acpica/hwvalid.c +0
-1@@ -90,7 +90,6 @@ static const struct acpi_port_info acpi_protected_ports[] = { {"PIT2", 0x0048, 0x004B, ACPI_OSI_WIN_XP}, {"RTC", 0x0070, 0x0071, ACPI_OSI_WIN_XP}, {"CMOS", 0x0074, 0x0076, ACPI_OSI_WIN_XP}, - {"DMA1", 0x0081, 0x0083, ACPI_OSI_WIN_XP}, {"DMA1L", 0x0087, 0x0087, ACPI_OSI_WIN_XP}, {"DMA2", 0x0089, 0x008B, ACPI_OSI_WIN_XP}, {"DMA2L", 0x008F, 0x008F, ACPI_OSI_WIN_XP},Signature · 1 line
1.6.2.2.446.gfbdc
Signature · 2 lines
mattia :wq!
Re: [PATCH] ACPICA: delete check for AML access to port 0x81-83
In reply to Len BrownQuoted 4 lines · Len Brown
From: Len Brown <[email protected]>
Sony laptops apparently write 4-bytes (rather than 1 byte) to debug port
0x80, which spews error messages:
So admittedly I should just check the spec here instead, but: what does a 4 byte write to an io port mean? It seems a bit odd that Sonys could be scribbling over DMA1 without causing any problems. Is Windows turning this into a single byte write to the defined io port instead?
Signature · 1 line
Matthew Garrett | [email protected]
RE: [PATCH] ACPICA: delete check for AML access to port 0x81-83
A 4-byte write to an I/O port means four one-byte writes to four consecutive I/O ports (although, this can be done in one machine instruction.)
Quoted 1 line
From our testing, Windows indeed is only allowing the single-byte write to the (legal) port
0x80. The rest of the request is simply ignored. In general, any part of an I/O request that overlaps the protected ports is ignored. No error is returned.
We are updating ACPICA to match this behavior.
Bob
Quoted 25 lines
-----Original Message-----
From: [email protected] [mailto:linux-acpi- [email protected]] On Behalf Of Matthew Garrett
Sent: Wednesday, April 08, 2009 11:24 PM
To: Len Brown
Cc: Rodrigo Luiz; [email protected]; [email protected]
Subject: Re: [PATCH] ACPICA: delete check for AML access to port 0x81-83Quoted 4 lines · Len Brown
From: Len Brown <[email protected]>
Sony laptops apparently write 4-bytes (rather than 1 byte) to debug port
0x80, which spews error messages:So admittedly I should just check the spec here instead, but: what does a 4 byte write to an io port mean? It seems a bit odd that Sonys could be scribbling over DMA1 without causing any problems. Is Windows turning this into a single byte write to the defined io port instead?
--
Matthew Garrett | [email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html