From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.179 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796107459; b=LuqpfOHyUJgUETQtEVQyQUMEnqi8+8Bue+lVQLesu0qTNbpg3JfscDPflgPJ8Ve4N+Gg mk6SRkWMth0BYs+Rr5mIKEFGL7BtXTdXQf6HHJ3ME27Pf1OjZaRjEzYZFlVjOB2aPWcyz svQQRYzWIqRBTb85HdLgleasMsKRqtEf9QzBdL1EeQkWOZxb765j1GZ0IqZvzeLU+etIq zM+5HiO5iAM0YyjpjFmCRmJ0rfEs1pz9phQ5rOVT9R6eNKPXJ/kFOBOR0QvmH6W+kv2Rw kOZ7Gd9gBSmyXlHmsPf9dG+X6Dlp2m1RgpMYxr2NBVxq1+3p/U9hW7QurJA3OaBtJoQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796107459; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding: Content-Disposition; bh=zusqfYKWiMCgId4wrJHpUo1dC3hCpXiMgh9FArzUsyo=; b=L8s+tWU0jrUIc5qcwUfqs29coqC8HXWtLvkE95BJJ9jvZyw2GBY6X4NdcITF/RnGLdBI XE0nNOYYzyzxhjbQ5PcLwGykrD5rRSbLEjMSElBwzG070YmpRyfi9C/jId4BsAcF4idWf WUWY2YzKdpCPaZu2SxALgTsK/dVJc975+5Fyb8J3/dhkfgCE/G7S1LOYRotV5yX+w7LdA SV/eT9pdfaEMqNHCeLp005U+Do+K9BFNO8Oq14C++fPeXI03pFCylLjYOLpAEVUhsMW+P Gy0C2lP6wVAXZGcMpaFGJoOqcEQXCQpR2wHQW08F9vrILEJntOTK8Mwk6Y+xmw5MzdQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=bobjdQzD; arc=none smtp.remote-ip=74.125.82.179 Received: from mail-dy1-f179.google.com (mail-dy1-f179.google.com [74.125.82.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F02B606A327 for ; Tue, 1 Dec 2026 06:44:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5F02B606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=bobjdQzD Received: by mail-dy1-f179.google.com with SMTP id 5a478bee46e88-386ab9ab619so17084849eec.1 for ; Mon, 30 Nov 2026 22:44:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796107458; x=1796712258; darn=vger.kernel.org; h=content-disposition:content-transfer-encoding:content-type :mime-version:references:in-reply-to:subject:cc:to:from:message-id :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=zusqfYKWiMCgId4wrJHpUo1dC3hCpXiMgh9FArzUsyo=; b=bobjdQzDGQ6wo7ZhiqZt2NiJT+PVTHEXb6ubxrsHRbeuIbrzgD++Jh0hcsQhdbyTsa lKvjwryqQuNNJJklEP9ULlx0/vsbDyr7sIXpeGqMucczvE6ezRMMZv8TczBVwNFV+TI9 CCBx2QdyS+/p+f159caXctbkuHoiZV4ZetL3LfQWqLKHb+dpbk9gjN8qfaNjDoDOdIZK K6zPcKszZ1mQCa2fp1Djs3OhbF3hzzSGM22KQHkCbrQkdJGb0/NLvUU/lczwZxUZGn9L woqENmO6qPOG/gV2ZszlH7ZQKWd2UzWermV4lu2NYGwxhFRkQQOGcMT6Wb3hiiM2eixv IRDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796107458; x=1796712258; h=content-disposition:content-transfer-encoding:content-type :mime-version:references:in-reply-to:subject:cc:to:from:message-id :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=zusqfYKWiMCgId4wrJHpUo1dC3hCpXiMgh9FArzUsyo=; b=pRzZldywwNHMeymOBVzKSDWYGer0mjjMGxPOANqXFHwep/FvNgWEGrLYZzNCCoOddU GQ+rS4eobu5skAvBnSSjdVQ9Ynld/fvYMy9bKPCRVEorTBN9eP9zaAXOueIt6UqTFAlc RpVW1CTvo5SV54TWV/sjnt5EGTpkvsRoAGhksCA5BsrnTvqQP8MoCNkHmtL23qP9SHss VteQZCRZWTRagThark4qci6ow3tJf57b8P8/6T1CkCEkpoZGB/V6HSVCEiNuL9H7DEJF E13y2XuyfR8ET1jdQ0atFPgVVqQb4HKfEQuAEVSd1R60KxiwFuD4QnyJkDWrBWZuriJi yDaA== X-Forwarded-Encrypted: i=1; AL+hErElO2RcL7eAAlS2gHbgUZ1SVTDIS1tKGvDGh/fNWX3pdBncAP0+9JQKxcqXJ8JFcsnKsOwAZck=@vger.kernel.org X-Gm-Message-State: APuU4Z/rqg7pBV6szK1uRq3AwZQvu242kDHdDkjuMnpYWH74+9qa7BM6 7Xjut/4Tft46VHfbNdowu3VBj1p1nqFo7GY7Lm3e1AzkRDX0QWEDvQIq X-Gm-Gg: AZFdTZc3rzNgho6e1avleBu4CRSpurnt/ufJhnoAM0tXqSQzLiDmHOzMd0PMb4hQGEs Y1WS5uHeKf43UlIbxCqJXOdG4E6rCBw+n9exIRHdkIDBYdT8xEUB+sXv9yjTdb6oUK0bbF5i4Wr PSjUEHhQ2YiBK8NuUDfEgFt7A0gCDNqPoz3RGJ5/CPsN5MIGdZ7g1XNuRghBJmmwU2QNeRH0hg1 vHXSUau/XVS2Q4Qfg2pvAYK1FNPhgWLstSwKKWBjGkV6xBtyH3beED6O21AQekHfHndVKTQtMH9 IjsG00qSgGermkF8Q3/Cb+kmb1v0nCRe+8Y68WhVbHXnoiwGlFSVS7UZSZ1wbDkSKftIK7GRiF6 TBZyElfeqMk75CzmFfHBap9nkX1UJeu5w5pOvEH67mRUVTDQtelLt0X0Lry873oIvtnMW0YiOGF U2oH2F/ImfKQEIpy7kgsA71gs0lTu+rIsxvRejYbBQ8uS8gFqCOL6q7EJU0ciE5sL5SNb10ftcB Qz2PX7PfPYuvINYKOBEkIWuX53VIZSCrMDlw7JN5xxVTrFLGdlNTsukZDt2Nj326lmfX1DmqlIS N9RZeYaF0sVCPXAsqqcSPQcwrDkKWcsL1bTiQ2YTmerhM/L4iP2rmU1AWL2tJmdgwTQs X-Received: by 2002:a05:7301:4d11:b0:386:c666:ec45 with SMTP id 5a478bee46e88-386c666eeb2mr19029396eec.12.1796107458309; Mon, 30 Nov 2026 22:44:18 -0800 (PST) Received: from localhost ([2a00:79e0:2ebe:8:9f42:1ffe:38c8:d6a]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-386c7c62a91sm66631441eec.17.2026.11.30.22.44.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 22:44:17 -0800 (PST) Date: Mon, 30 Nov 2026 22:44:16 -0800 Message-ID: From: Dmitry Torokhov To: Rostislav Maksimenko 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 In-Reply-To: <20261128110810.3347-1-Maildeltachat1@yandex.ru> References: <20261128110810.3347-1-Maildeltachat1@yandex.ru> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline 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