From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Rostislav Maksimenko <Maildeltachat1@yandex.ru>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] Input: i8042 - add reset quirk for NEC VersaPro PC-VK22TGSCN
Date: Mon, 30 Nov 2026 22:44:16 -0800 [thread overview]
Message-ID: <cf414aed6b5dcd0e6f3edecde47f195c@gmail.com> (raw)
In-Reply-To: <20261128110810.3347-1-Maildeltachat1@yandex.ru>
Hi Rostislav,
On Sat, Nov 28, 2026 at 02:08:10PM +0300, Rostislav Maksimenko wrote:
> On the NEC VersaPro PC-VK22TGSCN the internal keyboard and the Elantech
> touchpad intermittently fail to work at boot. atkbd reports:
>
> atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
> atkbd serio0: Failed to enable keyboard on isa0060/serio0
>
> and the AUX port is never registered, so the touchpad does not appear at
> all. Both devices work in BIOS and in GRUB, and i8042 status reads are
> fine (no "Can't read CTR" / "Reset failed"), so the EC-emulated PS/2
> interface simply does not accept commands until it is reset.
>
> The failure is frequent: 22 of the last 47 boots in my journal show it,
> and in all 22 the AUX port is missing as well. Rebooting usually fixes
> it, which matches the EC not being ready when i8042 initializes.
>
> Booting with "i8042.reset" fixes both devices: the last 13 boots with
> that parameter show no failure and a working AUX port, with no side
> effects observed. Add a DMI quirk for the model I can test. Other
> VersaPro models from the same era likely need the same quirk, but I have
> no unit to confirm that.
Before applying this quirk, could you help check whether the EC actually
needs the controller selftest reset command (0xaa), or whether
"i8042.reset" just delays initialization enough to avoid a boot race
(for example with the EC finishing initialization or concurrent async
ACPI EC traffic such as the battery driver)?
Note that "i8042.probe_defer" would not distinguish the two here because
it only defers when reading CTR fails. Instead, if you have an external
keyboard or SSH access on a failed boot (without "i8042.reset"), could
you test whether simply rebinding i8042 later recovers both devices:
echo i8042 > /sys/bus/platform/drivers/i8042/unbind
echo i8042 > /sys/bus/platform/drivers/i8042/bind
Under the default reset mode, unbinding does not issue the controller
selftest, so if rebinding works that points to a timing issue rather
than a permanently wedged controller.
Could you also share dmesg with "i8042.debug=1" from both a failing boot
and a working "i8042.reset" boot (including the "PNP: PS/2 Controller"
line)? That will show where i8042_check_aux() fails and whether
i8042_controller_selftest() succeeds right away or has to retry.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2026-12-01 6:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 11:08 Rostislav Maksimenko
2026-12-01 6:44 ` Dmitry Torokhov [this message]
2026-12-01 11:32 ` Rostislav Maksimenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cf414aed6b5dcd0e6f3edecde47f195c@gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=Maildeltachat1@yandex.ru \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®