Re: [ACPICA] EmbeddedControl region handling bug in PNP0C14

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Carlos Corbacho wrote:
Alexey,

Is the code in EC0 interfering then with the EC access code in AMW0? (See lines 962 onwards for the AMW0 EmbeddedControl region bits)?

Because AFAICT, the EC0 code is fine (my 5020 has the same AML for EC0 and doesn't have any problem, and the user didn't report any other EC problems - we only see this problem when we try to use the EmbeddedControl region in AMW0).

-Carlos

Please check if making AMW0' RAM an alias to EC0 one helps... See attachment.
--- 5040.dsl	2007-12-12 21:03:04.000000000 +0300
+++ 5040a.dsl	2007-12-12 21:02:54.000000000 +0300
@@ -721,7 +721,7 @@
 
         Device (AMW0)
         {
-            Name (_HID, "*pnp0c14")
+            Name (_HID, "PNP0C14")
             Name (_UID, 0x00)
             Name (WLMP, 0x00)
             Name (B0ED, Buffer (0x04)
@@ -959,7 +959,8 @@
             CreateDWordField (CBE0, 0x00, BER4)
             CreateWordField (CBE0, 0x00, BUF0)
             CreateWordField (CBE0, 0x02, BER2)
-            OperationRegion (RAM, EmbeddedControl, 0x00, 0xFF)
+//            OperationRegion (RAM, EmbeddedControl, 0x00, 0xFF)
+            Alias(\_SB.PCI0.LPC0.EC0.RAM, RAM)
             Field (RAM, ByteAcc, Lock, Preserve)
             {
                 CMD0,   8, 
@@ -3614,7 +3615,7 @@
                     }
 
                     OperationRegion (RAM, EmbeddedControl, 0x00, 0xFF)
-                    Field (RAM, AnyAcc, Lock, Preserve)
+                    Field (RAM, ByteAcc, Lock, Preserve)
                     {
                                 Offset (0x0A), 
                             ,   1, 
@@ -3637,7 +3638,7 @@
                         BL2W,   1
                     }
 
-                    Field (RAM, AnyAcc, Lock, Preserve)
+                    Field (RAM, ByteAcc, Lock, Preserve)
                     {
                                 Offset (0x01), 
                         TIID,   8, 
@@ -3664,19 +3665,19 @@
                         THS7,   8
                     }
 
-                    Field (RAM, AnyAcc, Lock, Preserve)
+                    Field (RAM, ByteAcc, Lock, Preserve)
                     {
                                 Offset (0x92), 
                         KTAF,   8
                     }
 
-                    Field (RAM, AnyAcc, Lock, Preserve)
+                    Field (RAM, ByteAcc, Lock, Preserve)
                     {
                                 Offset (0x92), 
                         THSL,   4
                     }
 
-                    Field (RAM, AnyAcc, Lock, Preserve)
+                    Field (RAM, ByteAcc, Lock, Preserve)
                     {
                                 Offset (0xD0), 
                         TSP0,   8, 
@@ -3985,7 +3986,7 @@
                         Notify (\_TZ.TZS1, 0x80)
                     }
 
-                    Field (RAM, AnyAcc, Lock, Preserve)
+                    Field (RAM, ByteAcc, Lock, Preserve)
                     {
                                 Offset (0x02), 
                         NBID,   8, 
@@ -3997,14 +3998,14 @@
                         NB1A,   1
                     }
 
-                    Field (RAM, AnyAcc, Lock, Preserve)
+                    Field (RAM, ByteAcc, Lock, Preserve)
                     {
                                 Offset (0x88), 
                         NB0S,   8, 
                         NB1S,   8
                     }
 
-                    Field (RAM, AnyAcc, Lock, Preserve)
+                    Field (RAM, ByteAcc, Lock, Preserve)
                     {
                                 Offset (0xE0), 
                         BSRC,   16, 
@@ -4018,7 +4019,7 @@
                         BSBS,   8
                     }
 
-                    Field (RAM, AnyAcc, Lock, Preserve)
+                    Field (RAM, ByteAcc, Lock, Preserve)
                     {
                                 Offset (0xE0), 
                         BSDC,   16, 

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux