https://bugzilla.kernel.org/show_bug.cgi?id=106591
Bug ID: 106591
Summary: Toshiba L750D - system doesn't recognise the battery
Product: ACPI
Version: 2.5
Kernel Version: 3.16.7-24-desktop
Hardware: x86-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Power-Battery
Assignee: [email protected]
Reporter: [email protected]
Regression: No
System does not recognise the battery (OpenSuse 13.2, Ubuntu 14.04,
Thumbleweed).
Tried options:
1) cat /proc/acpi/battery/BAT*/* - No such file.
2) dmesg | grep batt:
[ 10.993784] ACPI Exception: AE_AML_PACKAGE_LIMIT, Evaluating _BIX
(20140424/battery-461)
[ 11.015058] ACPI Exception: AE_AML_PACKAGE_LIMIT, Evaluating _BIX
(20140424/battery-461)
[ 11.036028] ACPI Exception: AE_AML_PACKAGE_LIMIT, Evaluating _BIX
(20140424/battery-461)
[ 11.057127] ACPI Exception: AE_AML_PACKAGE_LIMIT, Evaluating _BIX
(20140424/battery-461)
[ 11.078128] ACPI Exception: AE_AML_PACKAGE_LIMIT, Evaluating _BIX
(20140424/battery-461)
3) rpm -qa | grep acpi shows:
acpi-1.7-2.1.2.x86_64
acpid-2.0.22-2.1.2.x86_64
acpica-20150717-1.1.x86_64
4) journalctl -a shows:
kernel: ACPI Error: Method parse/execution failed [\_SB_.BAT1.UBIX] (Node
ffff8801fe05afb8), AE_AML_PACKAGE_LIMIT (20140424/psparse-536)
kernel: ACPI Error: Method parse/execution failed [\_SB_.BAT1._BIX] (Node
ffff8801fe05a0b8), AE_AML_PACKAGE_LIMIT (20140424/psparse-536)
kernel: ACPI Exception: AE_AML_PACKAGE_LIMIT, Evaluating _BIX
(20140424/battery-461)
5) Added lines in GRUB in YAST commandline
a) acpi_osi="!Linux" - NO RESULTS
b) acpi_osi= - NO RESULTS
6) Unable to compile new kernel with changed DSDT (log below):
OpenSuse:/home/bartosz # cat /sys/firmware/acpi/tables/DSDT > DSDT.dat
OpenSuse:/home/bartosz # iasl -d DSDT.dat
Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20150717-64
Copyright (c) 2000 - 2015 Intel Corporation
Reading ACPI table from file DSDT.dat - Length 00070373 (0x0112E5)
ACPI: DSDT 0x0000000000000000 0112E5 (v01 TOSQCI TOSQCI00 F0000000 ACPI
00040000)
Acpi table [DSDT] successfully installed and loaded
Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)
Parsing completed
ACPI Error: External method arg count mismatch _SB_.ALIB: Current 5, attempted
2 (20150717/dmextern-819)
ACPI Error: External method arg count mismatch _SB_.ALIB: Current 5, attempted
6 (20150717/dmextern-819)
ACPI Error: External method arg count mismatch _SB_.ALIB: Current 5, attempted
3 (20150717/dmextern-819)
ACPI Error: External method arg count mismatch _SB_.ALIB: Current 5, attempted
2 (20150717/dmextern-819)
ACPI Error: External method arg count mismatch _SB_.ALIB: Current 5, attempted
2 (20150717/dmextern-819)
ACPI Error: External method arg count mismatch _SB_.ALIB: Current 5, attempted
2 (20150717/dmextern-819)
ACPI Error: External method arg count mismatch _SB_.ALIB: Current 5, attempted
2 (20150717/dmextern-819)
ACPI Error: External method arg count mismatch _SB_.ALIB: Current 5, attempted
2 (20150717/dmextern-819)
Found 2 external control methods, reparsing with new information
Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)
Parsing completed
Disassembly completed
ASL Output: DSDT.dsl - 680076 bytes
iASL Warning: There were 2 external control methods found during
disassembly, but additional ACPI tables to resolve these externals
were not specified. The resulting disassembler output file may not
compile because the disassembler did not know how many arguments
to assign to these methods. To specify the tables needed to resolve
external control method references, the -e option can be used to
specify the filenames. Note: SSDTs can be dynamically loaded at
runtime and may or may not be available via the host OS.
Example iASL invocations:
iasl -e ssdt1.aml ssdt2.aml ssdt3.aml -d dsdt.aml
iasl -e dsdt.aml ssdt2.aml -d ssdt1.aml
iasl -e ssdt*.aml -d dsdt.aml
In addition, the -fe option can be used to specify a file containing
control method external declarations with the associated method
argument counts. Each line of the file must be of the form:
External (<method pathname>, MethodObj, <argument count>)
Invocation:
iasl -fe refs.txt -d dsdt.aml
OpenSuse:/home/bartosz # nano DSDT.dsl
----------------------
Changed twice:
FIRST TIME:
OperationRegion (EMEM, SystemMemory, 0xFF808001, 0x013F)
to
OperationRegion (EMEM, EmbeddedControl, 0×00, 0x013F)
SECOND TIME:
OperationRegion (EMEM, SystemMemory, 0×FF808001, 0x013F) to OperationRegion
(EMEM, EmbeddedControl, 0×00, 0×FF)
-----------------------
OpenSuse:/home/bartosz # iasl -tc DSDT.dsl
Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20150717-64
Copyright (c) 2000 - 2015 Intel Corporation
Compiler aborting due to parser-detected syntax error(s)
DSDT.dsl 801: \_SB.ALIB (0x06, XX05, \_SB.ALIB (0x06,
XX06, \_SB.PCI0.PB5.XPPR (Zero), Sleep (0x14), Notify (\_SB.PCI0.PB5,
Error 6126 - syntax error, unexpected
PARSEOP_SLEEP, expecting ',' or ')' ^
DSDT.dsl 801: \_SB.ALIB (0x06, XX05, \_SB.ALIB (0x06,
XX06, \_SB.PCI0.PB5.XPPR (Zero), Sleep (0x14), Notify (\_SB.PCI0.PB5,
Error 6126 -
syntax error, unexpected ',' ^
DSDT.dsl 832: \_SB.ALIB (0x06, XX05, Else
Error 6126 - ^ syntax
error, unexpected PARSEOP_ELSE, expecting ',' or ')'
DSDT.dsl 835: }, P80H = 0x0F1A, Else
Error 6126 - syntax error, unexpected ',' ^
DSDT.dsl 835: }, P80H = 0x0F1A, Else
Error 6126 - syntax error, unexpected ',' ^
DSDT.dsl 841: \_SB.ALIB (0x06, XX05,
Else
Error 6126 - syntax error, unexpected PARSEOP_ELSE, expecting ',' or ')' ^
DSDT.dsl 844: }, P80H = 0x021A, Else
Error 6126 - syntax error, unexpected ',' ^
DSDT.dsl 844: }, P80H = 0x021A, Else
Error 6126 - syntax error, unexpected ',' ^
DSDT.dsl 874: \_SB.ALIB
(0x06, XX05, Else
Error 6126 - syntax error, unexpected PARSEOP_ELSE,
expecting ',' or ')' ^
DSDT.dsl 877: },
HPOK = One, P80H = 0x1F1A)
Error 6126 - syntax error, unexpected ',' ^
DSDT.dsl 877: },
HPOK = One, P80H = 0x1F1A)
Error 6126 - syntax error,
unexpected ',' ^
DSDT.dsl 877: },
HPOK = One, P80H = 0x1F1A)
Error 6126 - syntax
error, unexpected ')' ^
DSDT.dsl 887: \_SB.ALIB
(0x06, XX05, Else
Error 6126 - syntax error, unexpected PARSEOP_ELSE,
expecting ',' or ')' ^
DSDT.dsl 890: },
Local2 = Zero, While ((Local2 < 0x0F))
Error 6126 - syntax error, unexpected ',' ^
DSDT.dsl 890: },
Local2 = Zero, While ((Local2 < 0x0F))
Error 6126 - syntax error,
unexpected ',' ^
DSDT.dsl 939: })
Error 6126 - syntax error, unexpected ')' ^
DSDT.dsl 968:
\_SB.ALIB (0x06, XX05, Else
Error 6126 - syntax error, unexpected PARSEOP_ELSE,
expecting ',' or ')' ^
DSDT.dsl 971: },
If (HPOK)
Error 6126 - syntax error, unexpected ',' ^
DSDT.dsl 974: })
Error 6126 - syntax error, unexpected ')' ^
DSDT.dsl 978: })
Error 6126 - syntax error, unexpected ')' ^
ASL Input: DSDT.dsl - 980 lines, 680073 bytes, 505 keywords
Hex Dump: DSDT.hex - 172 bytes
Compilation complete. 20 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
OpenSuse:/home/bartosz # cd linux-4.2.4/
OpenSuse:/home/bartosz/linux-4.2.4 # cp -vi /boot/config-`uname -r` .config
„/boot/config-3.16.7-24-desktop” -> „.config”
OpenSuse:/home/bartosz/linux-4.2.4 # cd include/
OpenSuse:/home/bartosz/linux-4.2.4/include # cp -vi /home/bartosz/DSDT.hex
/home/bartosz/linux-4.2.4/include/
„/home/bartosz/DSDT.hex” -> „/home/bartosz/linux-4.2.4/include/DSDT.hex”
OpenSuse:/home/bartosz/linux-4.2.4 # nano .config
--------------------------
Changed options in .config:
CONFIG_STANDALONE=n
CONFIG_ACPI_CUSTOM_DSDT=y
CONFIG_ACPI_CUSTOM_DSDT_FILE="DSDT.hex"
---------------------------
bartosz@OpenSuse:~> make menuconfig
---------------------------
Checked the AMD ACPI Power...(NEW) and saved .config
---------------------------
bartosz@OpenSuse:~/linux-4.2.4> make
(...)In file included from drivers/acpi/osl.c:63:0:
include/DSDT.hex:1:1: error: unterminated comment
/*
^
drivers/acpi/osl.c: In function ‘acpi_os_table_override’:
drivers/acpi/osl.c:745:44: error: ‘AmlCode’ undeclared (first use in this
function)
*new_table = (struct acpi_table_header *)AmlCode;
^
drivers/acpi/osl.c:745:44: note: each undeclared identifier is reported only
once for each function it appears in
scripts/Makefile.build:258: polecenia dla obiektu 'drivers/acpi/osl.o' nie
powiodły się
make[2]: *** [drivers/acpi/osl.o] Błąd 1
scripts/Makefile.build:403: polecenia dla obiektu 'drivers/acpi' nie powiodły
się
make[1]: *** [drivers/acpi] Błąd 2
Makefile:949: polecenia dla obiektu 'drivers' nie powiodły się
make: *** [drivers] Błąd 2
Info: Błąd means ERROR in English;
nie powiodły się - failed.
--
You are receiving this mail because:
You are watching the assignee of the bug.
------------------------------------------------------------------------------
_______________________________________________
acpi-bugzilla mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla