Download raw body.
return of the chromebook keyboard diff
On Thu, Jan 30, 2025 at 08:35:43PM +0000, Miod Vallat wrote:
> Updated diff:
> - adds LEN0071 to the "might need pckbc@acpi" list
> - fixes and adds a few comments
> - reworks match logic to run faster
I gave it a try to this patch and the one on
https://marc.info/?l=openbsd-tech&m=173800270930311&w=2
but unfortunately my chromebook keyboard is still attaching
as "pckbc at isa0" and I still see the super laggy behavior
when I type.
I also booted the kernel with -c and followed the instructions
for "find pckbc" driver and changed the flag to 0x1
for "pckbc at acpi0" with no luck, it still attached as
"pckbc at isa0".
I think my old chromebook uses GPIO interrupts [1].
I'm pasting the dmesg with the most recent patch applied in case is
useful.
1. https://marc.info/?l=openbsd-tech&m=172858565415270&w=2
OpenBSD 7.6-current (MIGUEL.MP) #2: Thu Jan 30 21:29:27 UTC 2025
miguel@jehnny:/sys/arch/amd64/compile/MIGUEL.MP
real mem = 4215709696 (4020MB)
avail mem = 4064374784 (3876MB)
User Kernel Config
UKC> find pckbc
273 pckbc0 at isa0 port -1 size 0 iomem -1 iosiz 0 irq -1 drq -1 drq2 -1 flags 0x0
478 pckbc* at acpi0 addr -1 flags 0x0
UKC> change 478
478 pckbc* at acpi0 addr -1 flags 0x0
change (y/n) ?
addr [-1] ?
flags [0] ? 1
478 pckbc* changed
478 pckbc* at acpi0 addr -1 flags 0x1
UKC> quit
Continuing...
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x1fef3000 (19 entries)
bios0: vendor coreboot version "MrChromebox-4.20.0" date 05/15/2023
bios0: GOOGLE Kefka
efi0 at bios0: UEFI 2.7
efi0: EDK II rev 0x10000
acpi0 at bios0: ACPI 6.0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SSDT MCFG TCPA APIC HPET TCPA BGRT
acpi0: wakeup devices XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU N3060 @ 1.60GHz, 2480.54 MHz, 06-4c-04, patch 00000411
cpu0: cpuid 1 edx=bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> ecx=43d8e3bf<SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND>
cpu0: cpuid 6 eax=7<SENSOR,ARAT> ecx=9<EFFFREQ>
cpu0: cpuid 7.0 ebx=2282<TSC_ADJUST,SMEP,ERMS> edx=c000400<MD_CLEAR,IBRS,IBPB,STIBP>
cpu0: cpuid a vers=3, gp=2, gpwidth=40, ff=3, ffwidth=40
cpu0: cpuid 80000001 edx=28100800<NXE,RDTSCP,LONG> ecx=101<LAHF,3DNOWP>
cpu0: cpuid 80000007 edx=100<ITSC>
cpu0: MELTDOWN
cpu0: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 79MHz
cpu0: mwait min=64, max=64, C-substates=0.2, IBE
cpu1 at mainbus0: apid 4 (application processor)
cpu1: Intel(R) Celeron(R) CPU N3060 @ 1.60GHz, 2480.70 MHz, 06-4c-04, patch 00000411
cpu1: smt 0, core 2, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 115 pins
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiec0 at acpi0
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
acpibtn0 at acpi0: LID0
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "DELL FY" serial 01DA type LION oem "BYD"
"GOOG0004" at acpi0 not configured
acpicmos0 at acpi0
"GOOG000A" at acpi0 not configured
"INTL9C60" at acpi0 not configured
"INTL9C60" at acpi0 not configured
dwiic0 at acpi0 I2C1 addr 0x91320000/0x1000 irq 32
iic0 at dwiic0
"ELAN0001" at iic0 addr 0x10 not configured
dwiic1 at acpi0 I2C5 addr 0x91324000/0x1000 irq 36
iic1 at dwiic1
"10EC5650" at iic1 addr 0x1a not configured
dwiic2 at acpi0 I2C6 addr 0x91326000/0x1000 irq 37
iic2 at dwiic2
ietp0 at iic2 addr 0x15 , can't establish interrupt
"808622A8" at acpi0 not configured
tpm0 at acpi0 TPM_ 1.2 (TIS) addr 0xfed40000/0x5000, Infineon SLB9635 1.2 rev 0x10
chvgpio0 at acpi0 GPSW uid 1 addr 0xfed80000/0x8000 irq 49, 56 pins
chvgpio1 at acpi0 GPNC uid 2 addr 0xfed88000/0x8000 irq 48, 59 pins
chvgpio2 at acpi0 GPEC uid 3 addr 0xfed90000/0x8000 irq 50, 24 pins
chvgpio3 at acpi0 GPSE uid 4 addr 0xfed98000/0x8000 irq 91, 55 pins
"INT3400" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3403" at acpi0 not configured
acpicpu0 at acpi0: C2 bad (state 6 has no substates): C3 bad (state 6 has no substates): C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2 bad (state 6 has no substates): C3 bad (state 6 has no substates): C1(1000@1 mwait.1), PSS
"BOOT0000" at acpi0 not configured
acpipwrres0 at acpi0: PLPE
acpivideo0 at acpi0: GFX0
cpu0: using VERW MDS workaround
cpu0: Enhanced SpeedStep 2480 MHz: speeds: 1601, 1600, 1520, 1440, 1360, 1280, 1200, 1120, 1040, 960, 880, 800, 720, 640, 560, 480 MHz
pci0 at mainbus0 bus 0
iosf0 at pci0 dev 0 function 0 "Intel Braswell Host" rev 0x35: mbi
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x35
drm0 at inteldrm0
inteldrm0: msi, CHERRYVIEW, gen 8
"Intel Braswell Power" rev 0x35 at pci0 dev 11 function 0 not configured
sdhc0 at pci0 dev 16 function 0 vendor "Intel", unknown product 0x2294 rev 0x35: apic 1 int 19
sdhc0: SDHC 3.00, 200 MHz base clock
sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, ddr52, dma
sdhc1 at pci0 dev 18 function 0 vendor "Intel", unknown product 0x2296 rev 0x35: apic 1 int 18
sdhc1: SDHC 3.00, 200 MHz base clock
sdmmc1 at sdhc1: 4-bit, sd high-speed, mmc high-speed, ddr52, dma
xhci0 at pci0 dev 20 function 0 "Intel Braswell xHCI" rev 0x35: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel Braswell HD Audio" rev 0x35: msi
azalia0: no supported codecs
ppb0 at pci0 dev 28 function 0 "Intel Braswell PCIE" rev 0x35: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 "Intel Braswell PCIE" rev 0x35: msi
pci2 at ppb1 bus 2
iwm0 at pci2 dev 0 function 0 "Intel AC 7265" rev 0x61, msi
pcib0 at pci0 dev 31 function 0 "Intel Braswell PCU LPC" rev 0x35
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation)
efifb at mainbus0 not configured
scsibus1 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <Hynix, hB8aP>, 0000> removable
sd0: 29820MB, 512 bytes/sector, 61071360 sectors
uhidev0 at uhub0 port 3 configuration 1 interface 0 "Microchip Technology Inc. Composite HID + CDC, APP-ESS14-1" rev 2.00/0.01 addr 2
uhidev0: iclass 3/0
uhid0 at uhidev0: input=64, output=64, feature=0
umodem0 at uhub0 port 3 configuration 1 interface 1 "Microchip Technology Inc. Composite HID + CDC, APP-ESS14-1" rev 2.00/0.01 addr 2
umodem0: data interface 2, has no CM over data, has no break
umodem0: status change notification available
ucom0 at umodem0: usb0.0.00003.2
uvideo0 at uhub0 port 4 configuration 1 interface 0 "CNFFH36O13542012B742 Integrated Webcam" rev 2.00/65.10 addr 3
video0 at uvideo0
ugen0 at uhub0 port 5 "Intel Bluetooth" rev 2.00/0.03 addr 4
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (7ee9d14a3a66206f.a) swap on sd0b dump on sd0b
inteldrm0: 1366x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
iwm0: hw rev 0x210, fw ver 17.3216344376.0, address 38:de:xx:xx:xx:xx
return of the chromebook keyboard diff