r/coreboot • u/[deleted] • Jan 24 '20
t440p - ACPI errors
Hi, I am trying to figure out why some of the (previously working) functions do not work on my corebooted t440p (battery threshold, keyboard backlight etc) and it all seem to boil down to ACPI errors. This seems to be somewhat confirmed if you check a stock bios, as an example for kbd backlit:
Stock has tpacpi::kbd_backlight -> ../../devices/platform/thinkpad_acpi/leds/tpacpi::kbd_backlight in /sys/class/leds while on coreboot this 'device' is not created by kernel hence no chance to control the backlit.
for tpacpi, stock in dmesg looks like this: thinkpad_acpi: ThinkPad ACPI Extras v0.26 thinkpad_acpi: http://ibm-acpi.sf.net/
thinkpad_acpi: ThinkPad BIOS GLETA0WW (2.54 ), EC GLHT30WW for my coreboot: ThinkPad BIOS CBET4000 0da4d8c80f-dirty, EC GLHT30WW-3.2 - I can't figure out why it outputs the BIOS version as 'XXX-dirty' other's do not seem to have this issue, seems like there's some issue on my end, but I can't figure out what exactly..
As for the ACPI errors, here's what I see in my kernel log:
[ 65.432174] thinkpad_acpi: acpi_evalf(BCTG, dd, ...) failed: AE_NOT_FOUND
[ 65.432178] ACPI: _SB_.PCI0.LPCB.EC__.HKEY: BCTG: evaluate failed
[ 66.180453] thinkpad_acpi: acpi_evalf(BCTG, dd, ...) failed: AE_NOT_FOUND
[ 66.180461] ACPI: _SB_.PCI0.LPCB.EC__.HKEY: BCTG: evaluate failed
[ 66.200322] thinkpad_acpi: acpi_evalf(BCTG, dd, ...) failed: AE_NOT_FOUND
[ 66.200331] ACPI: _SB_.PCI0.LPCB.EC__.HKEY: BCTG: evaluate failed
[ 115.575684] acpi_call: Cannot get handle: Error: AE_NOT_FOUND
[ 264.776139] acpi_call: Cannot get handle: Error: AE_NOT_FOUND
[ 1148.744628] thinkpad_acpi: acpi_evalf(BCTG, dd, ...) failed: AE_NOT_FOUND
[ 1148.744634] ACPI: _SB_.PCI0.LPCB.EC__.HKEY: BCTG: evaluate failed
[ 1149.515367] thinkpad_acpi: acpi_evalf(BCTG, dd, ...) failed: AE_NOT_FOUND
[ 1149.515374] ACPI: _SB_.PCI0.LPCB.EC__.HKEY: BCTG: evaluate failed
[ 1149.536480] thinkpad_acpi: acpi_evalf(BCTG, dd, ...) failed: AE_NOT_FOUND
[ 1149.536488] ACPI: _SB_.PCI0.LPCB.EC__.HKEY: BCTG: evaluate failed
[ 2033.645267] thinkpad_acpi: acpi_evalf(BCTG, dd, ...) failed: AE_NOT_FOUND
[ 2033.645272] ACPI: _SB_.PCI0.LPCB.EC__.HKEY: BCTG: evaluate failedWhen trying to set battery charging thresholds via tpacpi-bat I get this error: Error: AE_NOT_FOUND for ASL base: _SB.PCI0.LPCB.EC.HKEY
I also get some ACPI related errors when shutting down, but can't for the life of me find them in the logs..
Also when building the new firmware today I noticed: You can now run IASL ACPI compiler from /home/user/coreboot/util/crossgcc/xgcc but I can't find any documentantion for this on the coreboot site.. So right now I am not sure if I am chasing a red herring here or this is indeed related?
Would someone smarter/more experienced with coreboot than me chime in, and maybe point me in the right direction? :) thanks a lot!
Edit: i hate reddit text editor...
2
u/MrChromebox Jan 24 '20
IIRC, there's something with the t440 currently that prevents the coreboot driver that injects the required info (into SMBIOS) for the ThinkPad ACPI driver to attach. But I could be mistaken.
pastebin the output of 'sudo dmidecode'?