Page MenuHomeFreeBSD

atkbc: Better test for old chromebooks
ClosedPublic

Authored by imp on Jun 28 2023, 6:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 9:17 PM
Unknown Object (File)
Fri, Apr 26, 11:27 AM
Unknown Object (File)
Mon, Apr 22, 9:40 AM
Unknown Object (File)
Sun, Apr 21, 7:56 PM
Unknown Object (File)
Tue, Apr 16, 11:13 AM
Unknown Object (File)
Jan 23 2024, 7:54 AM
Unknown Object (File)
Jan 16 2024, 10:28 AM
Unknown Object (File)
Dec 28 2023, 9:05 AM
Subscribers

Details

Summary

Implement a test recommended by MrChromebox <mrchromebox@gmail.com>: If
the bios.version starts with Google_, or the maker is either Google or
GOOGLE, assume that it's a chromebook with the affected bios. While this
isn't strictly true, the number of updated systems without the bug is
very small and this will exclude all the modern coreboot uses. There's
no simple way to test the hardware.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jun 28 2023, 6:33 PM
imp created this revision.
This revision is now accepted and ready to land.Jun 28 2023, 6:44 PM

D40787 applied the quirks for {"coreboot", "Acer", "Peppy"}, but this change does not...?

Also, please properly quote the match strings in the description / commit message.

jrtc27 added inline comments.
sys/dev/atkbdc/atkbdc.c
139

This is a bit of a behaviour change; now it's prefix matching everything, whereas you really only want this for Google_

update comments
and go ahead and implement two different marcos, one
to match the first part, and one for equality. Likely
not going to make a difference in practice, but now the code matches
the comments.

This revision now requires review to proceed.Jun 28 2023, 8:05 PM
sys/dev/atkbdc/atkbdc.c
139

Yea, I debated what to do. Prefix matching won't change what we match today.
But it's likely better to separate the two concepts.

This revision was not accepted when it landed; it landed in state Needs Review.Jun 29 2023, 2:35 PM
This revision was automatically updated to reflect the committed changes.