r/coreboot • • 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 failed

When 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...

7 Upvotes

27 comments sorted by

View all comments

Show parent comments

1

u/whizz_inf May 16 '20

You helped me out and i saw a lot of users trying to make it work without success which is why i tried to push the patch upstream. I have also updated other threads to let users to test and improve the patch if needed.

1

u/MrChromebox May 16 '20 edited May 16 '20

patch is great, just needs a little cleanup in order to be merged

edit: that's me commenting on your patchset to be clear. You can edit it directly in gerrit too, but changes to code and commit msg are done separately

1

u/whizz_inf May 16 '20 edited May 16 '20

Stupid me :), i thought one of the maintainers was asking about the origin of the patch. I don't know yet how to add comments easily but I'll figure it out as I would like to help improve a few things. I have an x220 and x230 running seabios and once i'm done with the t440p I'll go back and work on those which came pre-flashed from an ebay seller. I'll need to ask around if i can rebuild the roms without the original bios and get them to run tianocore.