Bug 56291 - acpi error on boot - AE_AML_PACKAGE_LIMIT
Summary: acpi error on boot - AE_AML_PACKAGE_LIMIT
Status: CLOSED CODE_FIX
Alias: None
Product: ACPI
Classification: Unclassified
Component: ACPICA-Core (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Lan Tianyu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 20:23 UTC by Marc Collin
Modified: 2013-04-09 03:58 UTC (History)
3 users (show)

See Also:
Kernel Version: 3.8.5-1
Subsystem:
Regression: No
Bisected commit-id:


Attachments
acpi dump (305.06 KB, text/plain)
2013-04-05 20:23 UTC, Marc Collin
Details
acpidump after change (305.06 KB, application/octet-stream)
2013-04-06 12:44 UTC, Marc Collin
Details
dmesg after change (104.45 KB, text/plain)
2013-04-06 12:45 UTC, Marc Collin
Details

Description Marc Collin 2013-04-05 20:23:15 UTC
Created attachment 97501 [details]
acpi dump

i have a laptop

lenovo s430
Intel Core i5-3210M
intel hd4000 + nvidia GT620M (no proprietary driver installed)

when i boot, i get a lot of message acpi error

i get theses message when i click to increse or decrease brightness
AE_AML_PACKAGE_LIMIT, Index (0x00000000000000FF) is beyond end of object (20121018/exoparg2-418)
Method parse/execution failed [\_SB_.PCI0.LPCB.EC0_.BRNS] (Node ffff880467c99c40), AE_AML_PACKAGE_LIMIT (20121018/psparse-537)
ACPI: Failed to switch the brightness
..
..

brightness key don't work but when i run:  xbacklight -inc 10 or xbacklight -dec 10 that work fine.
also, i can't go in console mode with: ctrl alt - fx

xev return me:
KeyPress event, serial 40, synthetic NO, window 0x4c00001,
    root 0x11c, subw 0x0, time 3409972, (71,118), root:(1197,141),
    state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 40, synthetic NO, window 0x4c00001,
    root 0x11c, subw 0x0, time 3410525, (71,118), root:(1197,141),
    state 0x4, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4c00001,
    root 0x11c, subw 0x0, time 3412309, (71,118), root:(1197,141),
    state 0xc, keycode 76 (keysym 0x1008fe0a, XF86Switch_VT_10), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
Comment 1 Lan Tianyu 2013-04-06 03:38:34 UTC
Please provide the output of acpidump and dmesg after changing brightness, Thanks.
Comment 2 Marc Collin 2013-04-06 12:44:30 UTC
Created attachment 97571 [details]
acpidump after change
Comment 3 Marc Collin 2013-04-06 12:45:00 UTC
Created attachment 97581 [details]
dmesg after change
Comment 4 Marc Collin 2013-04-06 12:46:20 UTC
acpidump > acpidump.out

return me

Wrong checksum for FADT!

also, f7 (drop brightness) do nothing, but if i press f8 it's suppose to increase brightness but it drop it directly to 10%
Comment 5 Marc Collin 2013-04-06 13:00:58 UTC
i have theses both entry

/sys/class/backlight/acpi_video0/
/sys/class/backlight/intel_backlight/

lsmod show me thinkpad_acpi
Comment 6 Lan Tianyu 2013-04-06 13:30:02 UTC
Hi Marc:
      Thanks for your info. Does intel_backlight work for you? You can modify the brightness file under "/sys/class/backlight/intel_backlight/" to change brightness. The acpica error log maybe caused by Bios/Hardware issue. CC Bob.

Hi Bob:
       Another issue of buffer overruning.
ACPI Exception: AE_AML_PACKAGE_LIMIT, Index (0x00000000000000FF) is beyond end of object (20121018/exoparg2-418)
[  274.444548] ACPI Error: Method parse/execution failed [\_SB_.PCI0.LPCB.EC0_.BRNS] (Node ffff880467c99c40), AE_AML_PACKAGE_LIMIT (20121018/psparse-537)
[  274.444562] ACPI Error: Method parse/execution failed [\_SB_.PCI0.VID_.LCD0._BCM] (Node ffff880467c9c790), AE_AML_PACKAGE_LIMIT (20121018/psparse-537)

 Method (BRNS, 0, NotSerialized) 
{
    ....
    Store (BRTN, Local3)
    ...
    Store (DerefOf (Index (DerefOf (Index (BRTB, Local3)), 0x14)),
                                        Local1)
    ...
}

Currently, I think the BRTN return 0xff and Index (BRTB, Local3) was broken.
Does this make sense?
Comment 7 Marc Collin 2013-04-06 13:41:24 UTC
cat /sys/class/backlight/intel_backlight/max_brightness
return 4882

so i tried with success
echo "2488" >  /sys/class/backlight/intel_backlight/brightness

i tried too
cat /sys/class/backlight/acpi_video0/max_brightness
return 100

i tried with succes
echo "80" > /sys/class/backlight/acpi_video0/brightness



with xev i checked if key was correctly detected.

KeyRelease event, serial 64, synthetic NO, window 0x4e00001,
    root 0x11c, subw 0x0, time 1915844, (-455,505), root:(965,528),
    state 0x0, keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeymapNotify event, serial 66, synthetic NO, window 0x0,
    keys:  1   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   2   0   0   

KeyRelease event, serial 66, synthetic NO, window 0x4e00001,
    root 0x11c, subw 0x0, time 1925417, (-455,505), root:(965,528),
    state 0x0, keycode 233 (keysym 0x1008ff02, XF86MonBrightnessUp), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
Comment 8 Lan Tianyu 2013-04-06 13:52:19 UTC
Could you check which value of acpi_video0/brightness will produce the following error log?
   Another issue of buffer overruning.
ACPI Exception: AE_AML_PACKAGE_LIMIT, Index (0x00000000000000FF) is beyond end
of object (20121018/exoparg2-418)
[  274.444548] ACPI Error: Method parse/execution failed
[\_SB_.PCI0.LPCB.EC0_.BRNS] (Node ffff880467c99c40), AE_AML_PACKAGE_LIMIT
(20121018/psparse-537)
[  274.444562] ACPI Error: Method parse/execution failed
[\_SB_.PCI0.VID_.LCD0._BCM] (Node ffff880467c9c790), AE_AML_PACKAGE_LIMIT
(20121018/psparse-537)
Comment 9 Marc Collin 2013-04-06 14:06:27 UTC
when i press brightness down (f7)
ACPI Exception: AE_AML_PACKAGE_LIMIT, Index (0x00000000000000FF) is beyond end of object (20121018/exoparg2-418)
ACPI Error: Method parse/execution failed [\_SB_.PCI0.LPCB.EC0_.BRNS] (Node ffff880467c99c40), AE_AML_PACKAGE_LIMIT (20121018/psparse-537)
ACPI Error: Method parse/execution failed [\_SB_.PCI0.VID_.LCD0._BCM] (Node ffff880467c9c790), AE_AML_PACKAGE_LIMIT (20121018/psparse-537)
ACPI Error: Evaluating _BCM failed (20121018/video-364)
...

when i press brightness up (f8)
ACPI Exception: AE_AML_PACKAGE_LIMIT, Index (0x00000000000000FF) is beyond end of object (20121018/exoparg2-418)
ACPI Error: Method parse/execution failed [\_SB_.PCI0.LPCB.EC0_.BRNS] (Node ffff880467c99c40), AE_AML_PACKAGE_LIMIT (20121018/psparse-537)
ACPI Error: Evaluating _BCM failed (20121018/video-364)
ACPI: Failed to switch the brightness

manually i was not able to set any value to get this value
Comment 10 Aaron Lu 2013-04-08 02:52:27 UTC
Just had a discussion with Tianyu, it looks like to us, there is no way for Linux to emulate support of all windows versions for this table. The _BCM and _BQC control method is written for pre-win8 systems, and acpi notifications will only be sent for vista. perhaps setting the osi to only vista can solve this problem.

The following two command line params is to set only vista's OSI string for Linux, please give it a try:
acpi_osi= acpi_osi="Windows 2006"
Comment 11 Lan Tianyu 2013-04-08 03:19:29 UTC
Please also test with kernel param acpi_osi= acpi_osi="Windows 2012". WIN8 mode maybe also work on the linux.
Comment 12 Marc Collin 2013-04-08 18:17:17 UTC
ok, 

acpi_osi=\"Windows 2006\"
don't work 

work fine
acpi_osi=\"!Windows 2012\"

thanks a lot

Note You need to log in before you can comment on or make changes to this bug.