Hi,
Observing ACPI on my new ryzen machine it seems its UEFI can generate the state of PS/2 mouse and keyboard accordingly to which one of them is connected or disconnected. I was trying to add something like that to my Core 2 Duo testing setup, but it seems there is no easy way how to export information of used PS/2 port. It seems the status (_STA) is defined at the compilation time. This means the linux autodetection can have a problem if one PS/2 device is not plugged when defined.
If the export is possible it should be probably done inside src/drivers/pc80/pc/keyboard.c am I correct?
Also slightly related bugs:
Having CONFIG_DRIVERS_PS2_KEYBOARD enabled and while holding a key (for example escape) during a reset. The keyboard gets stuck in seabios, payloads (nvramcui) and bootloader until linux kernel resets it. Disabling CONFIG_DRIVERS_PS2_KEYBOARD fixes it. I can add the warning in the kconfig help description if this is just limited to a specific board configuration and it is not bug.
Having CONFIG_DRIVERS_PS2_KEYBOARD disabled, but having PS/2 keyboard and generic USB mouse connected will cause nvramcui to not respond until the USB mouse is disconnected. This is probably problem with SeaBIOS, but it would be useful to have some confirmation.
P.S. I'm not an expert in ACPI, I learned most of it just from .asl source files from coreboot.
regards,
Petr