Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ps2KbdCtrller: Make wait for SUCCESS after BAT non-fatal #2485

Conversation

Sean-StarLabs
Copy link
Contributor

@Sean-StarLabs Sean-StarLabs commented Feb 3, 2022

Recent model Chromebooks only return ACK, but not
BAT_SUCCESS, which causes hanging and failed ps2k init.
To mitigate this, make the absence of BAT_SUCCESS reply
non-fatal, and reduce the no-reply timeout from 4s to 1s.

Tested on google/dracia and purism/librem_14

Cc: Hao A Wu hao.a.wu@intel.com
Cc: Ray Ni ray.ni@intel.com
Signed-off-by: Matt DeVillier matt.devillier@gmail.com
Signed-off-by: Sean Rhodes sean@starlabs.systems

@Sean-StarLabs Sean-StarLabs force-pushed the coreboot/17/keyboard_protocol branch 4 times, most recently from 9bf3939 to 4e6779b Compare February 9, 2022 21:46
@Sean-StarLabs Sean-StarLabs force-pushed the coreboot/17/keyboard_protocol branch 2 times, most recently from db6676a to 793abb1 Compare February 11, 2022 08:05
@Sean-StarLabs Sean-StarLabs changed the title MdeModulePkg/Usb/Keyboard.c: don't request protocol before setting Ps2KbdCtrller: Make wait for SUCCESS after BAT non-fatal Feb 11, 2022
@Sean-StarLabs Sean-StarLabs force-pushed the coreboot/17/keyboard_protocol branch 2 times, most recently from 08ee533 to 5f264e2 Compare February 15, 2022 21:39
Recent model Chromebooks only return ACK, but not
BAT_SUCCESS, which causes hanging and failed ps2k init.
To mitigate this, make the absence of BAT_SUCCESS reply
non-fatal, and reduce the no-reply timeout from 4s to 1s.

Tested on google/dracia and purism/librem_14

Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
@Sean-StarLabs Sean-StarLabs deleted the coreboot/17/keyboard_protocol branch April 1, 2022 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants