* sony-laptop: ACPI Exception when a Fn-Key is pressed
@ 2009-04-06 0:27 Rodrigo Luiz
2009-04-06 11:01 ` Mattia Dongili
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Rodrigo Luiz @ 2009-04-06 0:27 UTC (permalink / raw)
To: malattia; +Cc: linux-acpi
[-- Attachment #1: Type: text/plain, Size: 2594 bytes --]
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 kB
Handle 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:
diff --git a/drivers/platform/x86/sony-laptop.c
b/drivers/platform/x86/sony-laptop.c
index 537959d..167f8ef 100644
--- a/drivers/platform/x86/sony-laptop.c
+++ b/drivers/platform/x86/sony-laptop.c
@@ -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.
--
[]'s
Rodrigo Luiz
[-- Attachment #2: dsdt.dsl.gz --]
[-- Type: application/x-gzip, Size: 24030 bytes --]
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: sony-laptop: ACPI Exception when a Fn-Key is pressed
2009-04-06 0:27 sony-laptop: ACPI Exception when a Fn-Key is pressed Rodrigo Luiz
@ 2009-04-06 11:01 ` Mattia Dongili
2009-04-06 13:13 ` Rodrigo Luiz
` (2 more replies)
2009-04-07 21:27 ` Len Brown
2009-04-07 21:56 ` [PATCH] ACPICA: delete check for AML access to port 0x81-83 Len Brown
2 siblings, 3 replies; 14+ messages in thread
From: Mattia Dongili @ 2009-04-06 11:01 UTC (permalink / raw)
To: Rodrigo Luiz; +Cc: linux-acpi, Len Brown
On Sun, Apr 05, 2009 at 09:27:06PM -0300, Rodrigo Luiz wrote:
> 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
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.
--
mattia
:wq!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: sony-laptop: ACPI Exception when a Fn-Key is pressed
2009-04-06 11:01 ` Mattia Dongili
@ 2009-04-06 13:13 ` Rodrigo Luiz
2009-04-07 2:13 ` yakui_zhao
2009-04-07 5:00 ` Len Brown
2009-04-07 5:12 ` Len Brown
2 siblings, 1 reply; 14+ messages in thread
From: Rodrigo Luiz @ 2009-04-06 13:13 UTC (permalink / raw)
To: Mattia Dongili; +Cc: linux-acpi, Len Brown
On Mon, Apr 6, 2009 at 8:01 AM, Mattia Dongili <malattia@linux.it> wrote:
>
> 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.
--
[]'s
Rodrigo Luiz
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: sony-laptop: ACPI Exception when a Fn-Key is pressed
2009-04-06 13:13 ` Rodrigo Luiz
@ 2009-04-07 2:13 ` yakui_zhao
2009-04-07 4:54 ` Len Brown
0 siblings, 1 reply; 14+ messages in thread
From: yakui_zhao @ 2009-04-07 2:13 UTC (permalink / raw)
To: Rodrigo Luiz; +Cc: Mattia Dongili, linux-acpi@vger.kernel.org, Len Brown
On Mon, 2009-04-06 at 21:13 +0800, Rodrigo Luiz wrote:
> On Mon, Apr 6, 2009 at 8:01 AM, Mattia Dongili <malattia@linux.it> wrote:
> >
> > 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?
>commit 7b46ecd5fcebf381a7bde966db352d8fb1b8e944
>Author: Len Brown <len.brown@intel.com>
>Date: Wed Feb 25 18:00:18 2009 -0500
>Revert "ACPI: make some IO ports off-limits to AML"
thanks.
> 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.
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: sony-laptop: ACPI Exception when a Fn-Key is pressed
2009-04-07 2:13 ` yakui_zhao
@ 2009-04-07 4:54 ` Len Brown
0 siblings, 0 replies; 14+ messages in thread
From: Len Brown @ 2009-04-07 4:54 UTC (permalink / raw)
To: yakui_zhao; +Cc: Rodrigo Luiz, Mattia Dongili, linux-acpi@vger.kernel.org
On Tue, 7 Apr 2009, yakui_zhao wrote:
> On Mon, 2009-04-06 at 21:13 +0800, Rodrigo Luiz wrote:
> > On Mon, Apr 6, 2009 at 8:01 AM, Mattia Dongili <malattia@linux.it> wrote:
> > >
> > > 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?
> >commit 7b46ecd5fcebf381a7bde966db352d8fb1b8e944
> >Author: Len Brown <len.brown@intel.com>
> >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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: sony-laptop: ACPI Exception when a Fn-Key is pressed
2009-04-06 11:01 ` Mattia Dongili
2009-04-06 13:13 ` Rodrigo Luiz
@ 2009-04-07 5:00 ` Len Brown
2009-04-07 5:12 ` Len Brown
2 siblings, 0 replies; 14+ messages in thread
From: Len Brown @ 2009-04-07 5:00 UTC (permalink / raw)
To: Mattia Dongili; +Cc: Rodrigo Luiz, linux-acpi, bob.moore
> 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: sony-laptop: ACPI Exception when a Fn-Key is pressed
2009-04-06 11:01 ` Mattia Dongili
2009-04-06 13:13 ` Rodrigo Luiz
2009-04-07 5:00 ` Len Brown
@ 2009-04-07 5:12 ` Len Brown
2009-04-07 19:46 ` Rodrigo Luiz
2 siblings, 1 reply; 14+ messages in thread
From: Len Brown @ 2009-04-07 5:12 UTC (permalink / raw)
To: Mattia Dongili; +Cc: Rodrigo Luiz, linux-acpi, robert.moore
On Mon, 6 Apr 2009, Mattia Dongili wrote:
> On Sun, Apr 05, 2009 at 09:27:06PM -0300, Rodrigo Luiz wrote:
> > 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?
> > 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
>
> 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.
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: sony-laptop: ACPI Exception when a Fn-Key is pressed
2009-04-07 5:12 ` Len Brown
@ 2009-04-07 19:46 ` Rodrigo Luiz
0 siblings, 0 replies; 14+ messages in thread
From: Rodrigo Luiz @ 2009-04-07 19:46 UTC (permalink / raw)
To: Len Brown; +Cc: Mattia Dongili, linux-acpi, robert.moore
On Sun, Apr 5, 2009 at 21:27, Rodrigo Luiz <rodrigo@gus-mg.org> wrote:
>
> 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
>
>
Using git bisect, I found the first bad commit:
7f0719039085cc40114abce84cf29fe57da226f4 is first bad commit
commit 7f0719039085cc40114abce84cf29fe57da226f4
Author: Bob Moore <robert.moore@intel.com>
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
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
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.
--
[]'s
Rodrigo Luiz
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: sony-laptop: ACPI Exception when a Fn-Key is pressed
2009-04-06 0:27 sony-laptop: ACPI Exception when a Fn-Key is pressed Rodrigo Luiz
2009-04-06 11:01 ` Mattia Dongili
@ 2009-04-07 21:27 ` Len Brown
2009-04-07 21:56 ` [PATCH] ACPICA: delete check for AML access to port 0x81-83 Len Brown
2 siblings, 0 replies; 14+ messages in thread
From: Len Brown @ 2009-04-07 21:27 UTC (permalink / raw)
To: Rodrigo Luiz; +Cc: malattia, linux-acpi
Rodrigo 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
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH] ACPICA: delete check for AML access to port 0x81-83
2009-04-06 0:27 sony-laptop: ACPI Exception when a Fn-Key is pressed Rodrigo Luiz
2009-04-06 11:01 ` Mattia Dongili
2009-04-07 21:27 ` Len Brown
@ 2009-04-07 21:56 ` Len Brown
2009-04-08 1:20 ` Rodrigo Luiz
` (2 more replies)
2 siblings, 3 replies; 14+ messages in thread
From: Len Brown @ 2009-04-07 21:56 UTC (permalink / raw)
To: Rodrigo Luiz; +Cc: malattia, linux-acpi
From: Len Brown <len.brown@intel.com>
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 <len.brown@intel.com>
---
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(-)
diff --git a/drivers/acpi/acpica/hwvalid.c b/drivers/acpi/acpica/hwvalid.c
index bd3c937..7737afb 100644
--- a/drivers/acpi/acpica/hwvalid.c
+++ b/drivers/acpi/acpica/hwvalid.c
@@ -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},
--
1.6.2.2.446.gfbdc
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH] ACPICA: delete check for AML access to port 0x81-83
2009-04-07 21:56 ` [PATCH] ACPICA: delete check for AML access to port 0x81-83 Len Brown
@ 2009-04-08 1:20 ` Rodrigo Luiz
2009-04-08 1:46 ` Mattia Dongili
2009-04-09 6:23 ` Matthew Garrett
2 siblings, 0 replies; 14+ messages in thread
From: Rodrigo Luiz @ 2009-04-08 1:20 UTC (permalink / raw)
To: Len Brown; +Cc: malattia, linux-acpi
On Tue, Apr 7, 2009 at 18:56, Len Brown <lenb@kernel.org> wrote:
> From: Len Brown <len.brown@intel.com>
>
> 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 <len.brown@intel.com>
> ---
>
> Rodrigo,
> Please verify that this makes the warnings go away.
>
Ok! There is no more warnings!
--
[]'s
Rodrigo Luiz
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] ACPICA: delete check for AML access to port 0x81-83
2009-04-07 21:56 ` [PATCH] ACPICA: delete check for AML access to port 0x81-83 Len Brown
2009-04-08 1:20 ` Rodrigo Luiz
@ 2009-04-08 1:46 ` Mattia Dongili
2009-04-09 6:23 ` Matthew Garrett
2 siblings, 0 replies; 14+ messages in thread
From: Mattia Dongili @ 2009-04-08 1:46 UTC (permalink / raw)
To: Len Brown; +Cc: Rodrigo Luiz, linux-acpi
On Tue, Apr 07, 2009 at 05:56:09PM -0400, Len Brown wrote:
> From: Len Brown <len.brown@intel.com>
>
> 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 <len.brown@intel.com>
Acked-by: Mattia Dongili <malattia@linux.it>
> ---
>
> 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(-)
>
> diff --git a/drivers/acpi/acpica/hwvalid.c b/drivers/acpi/acpica/hwvalid.c
> index bd3c937..7737afb 100644
> --- a/drivers/acpi/acpica/hwvalid.c
> +++ b/drivers/acpi/acpica/hwvalid.c
> @@ -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},
> --
> 1.6.2.2.446.gfbdc
>
--
mattia
:wq!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] ACPICA: delete check for AML access to port 0x81-83
2009-04-07 21:56 ` [PATCH] ACPICA: delete check for AML access to port 0x81-83 Len Brown
2009-04-08 1:20 ` Rodrigo Luiz
2009-04-08 1:46 ` Mattia Dongili
@ 2009-04-09 6:23 ` Matthew Garrett
2009-04-09 14:56 ` Moore, Robert
2 siblings, 1 reply; 14+ messages in thread
From: Matthew Garrett @ 2009-04-09 6:23 UTC (permalink / raw)
To: Len Brown; +Cc: Rodrigo Luiz, malattia, linux-acpi
On Tue, Apr 07, 2009 at 05:56:09PM -0400, Len Brown wrote:
> From: Len Brown <len.brown@intel.com>
>
> 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 | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH] ACPICA: delete check for AML access to port 0x81-83
2009-04-09 6:23 ` Matthew Garrett
@ 2009-04-09 14:56 ` Moore, Robert
0 siblings, 0 replies; 14+ messages in thread
From: Moore, Robert @ 2009-04-09 14:56 UTC (permalink / raw)
To: Matthew Garrett, Len Brown
Cc: Rodrigo Luiz, malattia@linux.it, linux-acpi@vger.kernel.org
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.)
>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
>-----Original Message-----
>From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi-
>owner@vger.kernel.org] On Behalf Of Matthew Garrett
>Sent: Wednesday, April 08, 2009 11:24 PM
>To: Len Brown
>Cc: Rodrigo Luiz; malattia@linux.it; linux-acpi@vger.kernel.org
>Subject: Re: [PATCH] ACPICA: delete check for AML access to port 0x81-83
>
>On Tue, Apr 07, 2009 at 05:56:09PM -0400, Len Brown wrote:
>> From: Len Brown <len.brown@intel.com>
>>
>> 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 | mjg59@srcf.ucam.org
>--
>To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2009-04-09 14:56 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 0:27 sony-laptop: ACPI Exception when a Fn-Key is pressed Rodrigo Luiz
2009-04-06 11:01 ` Mattia Dongili
2009-04-06 13:13 ` Rodrigo Luiz
2009-04-07 2:13 ` yakui_zhao
2009-04-07 4:54 ` Len Brown
2009-04-07 5:00 ` Len Brown
2009-04-07 5:12 ` Len Brown
2009-04-07 19:46 ` Rodrigo Luiz
2009-04-07 21:27 ` Len Brown
2009-04-07 21:56 ` [PATCH] ACPICA: delete check for AML access to port 0x81-83 Len Brown
2009-04-08 1:20 ` Rodrigo Luiz
2009-04-08 1:46 ` Mattia Dongili
2009-04-09 6:23 ` Matthew Garrett
2009-04-09 14:56 ` Moore, Robert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox