Bug 191070 - [boot] Boot hangs on Levono Thinkpad Edge E545 at atkdbc
Summary: [boot] Boot hangs on Levono Thinkpad Edge E545 at atkdbc
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-15 20:01 UTC by jens.link
Modified: 2017-06-23 22:40 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jens.link 2014-06-15 20:01:12 UTC
Booting FreeBSD current on my new Lenova Thinkpad Edge E545 hangs with

atkbdc0 <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0067
atkbd: keyboard ID 0x41ab (2)
kbdc: RESET_KBD return code:00fa
kbdc: RESET_KBD status:00aa

Setting hint.atkdb.0.flags="0x10" or save boot have the same result.
Same error with 10 stable r267232. 

The above port seems right for Linux, which boot without problems.

I don't know, but maybe this notebook need other magic numbers than mention in

http://lists.freebsd.org/pipermail/svn-src-head/2011-June/028224.html

Environment:
snapshot r266655
Comment 1 jens.link 2014-06-30 13:03:12 UTC
With help I identify the bug. The boot hangs in the function

 get_typematic(keyboard_t *kbd) at sys/dev/atkbdc/atkbd.c line 1091.

I was able to boot to force an „return (ENODEV);“ in this function by remove the defined(__amd64__) statement.

By adding printf lines to code I identify that:

if (x86bios_get_intr(0x15) != 0xf000f859 ||
           x86bios_get_intr(0x16) != 0xf000e82e)
           return (ENODEV);

isn't true but:

x86bios_intr(&regs, 0x15);

four lines later at 1118 doesn't compelte, booting stop. May also line 1130 

x86bios_intr(&regs, 0x16);

doesn't work/hang.
Comment 2 biotin 2014-09-12 19:54:29 UTC
On my Lenovo Edge e545 I have this trouble too. 
FreeBSD Relesease 10.0 can not boot:
Hangin on "atkbd0: <AT Keyboard> irq 1 on atkbdc0"
Can anybody help?
Comment 3 Josh Paetzel freebsd_committer freebsd_triage 2017-06-23 22:40:07 UTC
I'm going to close this out as it didn't seem to get any traction.  Sorry for that and thanks for raising the issue in the first place.