From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.175 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796107459; b=vfLC6GqtvV3UpqtMccncZ4AJLrpoV7rovmXmftQWcz4LS3eh0Rh9563JdDgh67AYGePm NOtz6OkqPABl0liKDJlwDWM6MQNfS12dseyww/cyZu/TR3PDYiT/P17E9I4qSzsXrsqZk 0y6pRYMzUecsvkKqoDSv6S6JPe5WYWs3Y5DjdRVQAd9FAgXamBx38EWs7uB6U93sW5vVm 0uqeIYNQr62sBc2E3AJDIPv6iGWAZH365IqwG2cmY2GXz0n3szWVgqIPzJKNr3XD4zkCj vkMgJaDNeycjn+zQpqrfk1/M9pU9zdG9f13zuMIYzRoynN8owjo3cYQCo4urXJCZk/w== 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=1UJgiN7on2+EfFwDWXzYOjCFnJoPwBzkGTJAmrLiSU9d/FPLub8UQ+9N9P+Wj07dXzAE 3UPvbk7aACgxPICplkez9lWNNEUFj9/ai1YTCGrBPnXokim2qiEaK3LwTIoMNkkpS6pkD TmhV6W2pm9tKxdBMAxw+KYRzmO0Qf3sUGEGWBvdZThjYTDlDxPvFsrUZKHh/ZSygAvD1y L113Q4tbZhSQEolrdtuPQbetvbxbRSXWiByNyoZ6dmVl/QPi/F6HPvbgwe8IvPQD3bsjH /UfqwI8M2vGnWdpl2QiL+J7HekSIUDS1d9tCcWj5EL2ZTrJS1LjXjz2VExbUS8FRFAQ== 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.175 Received: from mail-dy1-f175.google.com (mail-dy1-f175.google.com [74.125.82.175]) (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 5FE30606A329 for ; Tue, 1 Dec 2026 06:44:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5FE30606A329 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-f175.google.com with SMTP id 5a478bee46e88-3866a784546so16031163eec.0 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=aL5x5ef66DIwZkX0R3T7CgIklF/Cq2XSMGTLTZtejouuBy+kUEyh93Q1yORP+qu+Dx lGV6o3oxbFIdkNiKU27umVsly0OVAwFxvIXaLT6NFgjSZ+UhPju8oAvX1nPsaxt1YHf3 LJC6mrpAO4PmenVPt0AKtVO03m74Jlp3rkz8sPrmICVZlUrijfVKSMiuO7QVcd4FzCyB LcykZUqyzRcvWqrpKvDmjvFLphBh2xOzY9uGDkxb3N6Vsi8kS27yiZSQh5/acy4VEbCu WhoqonHpjjHNdBXxmV596sPpVR6DkGoDqfG0R0AxOKTUjP6+kWCgu5rkxYhQps7lWJZJ lspg== X-Forwarded-Encrypted: i=1; AL+hErG6mT6jsMuUZfcD0sKSelUpqMYMkgMfdSJqMyASXN5CJbXwxAsJ5q7hKn07FEF79gtop0eR6PTU4iP5Aa0=@vger.kernel.org X-Gm-Message-State: APuU4Z9bi233JO+QByZ5uIBZYlijzz1fDgFa3mA5nAXU6bcHf51awQFo rrOuLyVGZUZlFIreXRhjHAO7UhnIftqsjs0AeX2eFZICa+ANEsAda1wl7ABA+A== X-Gm-Gg: AZFdTZe3opVQEk2RGJDdvdU/9634PqjxAVUP/I1Ksb4s7E/chPOW/Ibj86jLdjNhOVT Os2CcROxbWOTiIRibJjhlsVi4H6dHeBkM/tGd372stNVKayBTfUBcsQp8yXAgkZR1uHi9D1vRuo jpejwBGoKgUZ3F97VYSAdR0YhFu68S2ok26Xldw0CruGtTEtj/H3aHiENgcZ5KXmBKHlNoSxKb6 2OtAO2h8uqMPB3hV5Zc7+22FRkpzEjOp/0PWP7c1EIuFC3AdlNXYwy308MeAI4hXht8KxjsdTZ8 hCJsyeJWMUci7R/Tjd+hMRYgzQbY3qBQ23oiv4tJSYEqq7qGLWqAOi/bIe2yaXJfTMLiMlmaVLf qc2hF8k7BOCEU0jGUUlP3+Vxe+kIhicuv5aOCCOwXgunfuGAsBeqNZfsORB8wBWAPqlN887SvDI hwuH63y/QXQruMcPFvKTV7z/pZMdLdO1npqOtXBV90Zw3XQuVy0CiEX3xd7rFSAn3OFcPHL2100 /pL29rJnCSOUH1U3NFg9z+A2f11o246xfZcrigG1P/Pz6NeeBnD7gsDv6ZIYUBweBMQXPYd4YHx Rxy8qGYzKTHyQOOSsGGjdC1WL8WVjEuBZU3PigTQlZUiM9OJuws+zFuD0noWxpsDTTES 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: linux-kernel@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