Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp995639rdd; Wed, 10 Jan 2024 05:52:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0qiE23psKXQzCDOj4JN+Xw6qZZs1uOeoUg//7M9h2xWHahoi8pY70xBz5GCeMAGWeJ6XW X-Received: by 2002:a05:6a00:8c83:b0:6db:39c6:369a with SMTP id ii3-20020a056a008c8300b006db39c6369amr12452pfb.31.1704894742805; Wed, 10 Jan 2024 05:52:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704894742; cv=none; d=google.com; s=arc-20160816; b=Pw+eDNB6eKkkOtXEXcuozRgO41VyejsGwAVHbo87E0RXAwBFhQqQ6/tjd/yh6xwAeq EiQtkTB7I2y+S1ZlYA/U+MlMXfiC+0U3QHM/OpRxay9zmTKqaMNounoNzLu1+Rkm1OqA is31HHUJJ6MyvZ2xpZL1c7vIDM6DGsME5hmhy3NG1n9ypmBlNTe7WAwtCHEj/9rvfNIe Mp6hwG2wJJQsk33iFZl+F8eI+1BbCOTXXCn1bTXWBkEf5VyC9AwH5aB2gz5Fl3GcQ41W 6InJLhqKdk8BN7+LUoN/U37jMhcQEugwLHPGJSdDii3l1c+duotJWfrnpYM5p1P10iJm M1Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=45PF4SKouCDbeha7fnHOqQp65vlx3cmuT9w/Tvpf/YY=; fh=Ih0YdZJx+wz6y4Hmv105p1x6twk65jS08chEOjl+rVo=; b=h75IanCh0IR4TINSprrph45G9tukjJ7apchNVYby3jbxHSTJQHuThoVYpKjq2HyKG7 laCk/ihDWUntB98jI3/SzIHB3rKtDYcXY0KHzJaK/zCX0fxCABBJ4S56cCPqwConsNrN RWdxTwOFUhhqqlAsIixBk11KEQK6EHANubhqRZfA6rrbtXLIP7xahYuy9/ArfqXDkda5 Mo5Y9zBBN3KQQCRHdzk3HfUZbl4prYX3C9nh2RlMvpGkU9H4uChSHhQ2USZeWAb5M2M8 FfAnkyS4CVocPJqG7Dq4TezrD9iiZXwzGrOh+aD+UiI89Isy7BXvclBHN+AFWqqIoFIG +t/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=rgs21n+s; spf=pass (google.com: domain of linux-kernel+bounces-22281-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tuxedocomputers.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d19-20020a656213000000b005cddfe0c82bsi2008504pgv.211.2024.01.10.05.52.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 05:52:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22281-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxedocomputers.com header.s=default header.b=rgs21n+s; spf=pass (google.com: domain of linux-kernel+bounces-22281-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tuxedocomputers.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 769E2283FB4 for ; Wed, 10 Jan 2024 13:52:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61BCE495C9; Wed, 10 Jan 2024 13:51:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=tuxedocomputers.com header.i=@tuxedocomputers.com header.b="rgs21n+s" Received: from mail.tuxedocomputers.com (mail.tuxedocomputers.com [157.90.84.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C37AC48CEE; Wed, 10 Jan 2024 13:51:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tuxedocomputers.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxedocomputers.com Received: from [192.168.42.20] (p5de453e7.dip0.t-ipconnect.de [93.228.83.231]) (Authenticated sender: wse@tuxedocomputers.com) by mail.tuxedocomputers.com (Postfix) with ESMTPSA id 9B8652FC0057; Wed, 10 Jan 2024 14:51:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxedocomputers.com; s=default; t=1704894704; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=45PF4SKouCDbeha7fnHOqQp65vlx3cmuT9w/Tvpf/YY=; b=rgs21n+sRKB7C+ayhXpDXTrqzvo0Luly1w7G34zfcM9HUxfrG5fXNFLB0V7bELGpLMvHn8 SRfNuSzXKJ6QQ2xqJMmqzgEUyOZsfRxiz7RvB7jbAA2oxqymxScVTk13AzKeZTeAobWXas VYgRhZjeEs/EcO6t3Suw5bghQuiACe8= Authentication-Results: mail.tuxedocomputers.com; auth=pass smtp.auth=wse@tuxedocomputers.com smtp.mailfrom=wse@tuxedocomputers.com Message-ID: Date: Wed, 10 Jan 2024 14:51:44 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/2] i8042: Add forcenorestore quirk to leave controller untouched even on s3 Content-Language: en-US To: Dmitry Torokhov Cc: hdegoede@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240104183118.779778-1-wse@tuxedocomputers.com> <20240104183118.779778-2-wse@tuxedocomputers.com> From: Werner Sembach In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Am 09.01.24 um 22:48 schrieb Dmitry Torokhov: > Hi Werner, > > On Thu, Jan 04, 2024 at 07:31:17PM +0100, Werner Sembach wrote: >> On s3 resume the i8042 driver tries to restore the controller to a known >> state by reinitializing things, however this can confuse the controller >> with different effects. Mostly occasionally unresponsive keyboards after >> resume. >> >> These issues do not rise on s0ix resume as here the controller is assumed >> to preserved its state from before suspend. >> >> This patch adds a quirk for devices where the reinitialization on s3 resume >> is not needed and might be harmful as described above. It does this by >> using the s0ix resume code path at selected locations. >> >> This new quirk goes beyond what the preexisting reset=never quirk does, >> which only skips some reinitialization steps. > I think the original change mentioned not only issues on resume, but > also after boot, which this one does not address, at least directly, so > I am not sure if this patch is the proper replacement. The original change introduced issues after boot and fixed issues after resume. The new quirk fixes the issues after resume without introducing issues after boot. The issues after boot where only affecting the NHxxRZQ and the N1xxCU iirc. > > I would also like to understand better what exact step is troublesome, > as I would be surprised if any interaction with the keyboard > controller while suspending causes the issue to manifest. Is it enough, > by chance, to skip restoring MUX mode and reset? SERIO_QUIRK_NOMUX and SERIO_QUIRK_RESET_ALWAYS are required in the old fix for the resume issues to go away (I don't know if SERIO_QUIRK_NOLOOP and SERIO_QUIRK_NOPNP are required, I threw them in just in case because we were running them already on the device, so they where somewhat "field proven" to not break things). However while SERIO_QUIRK_NOMUX and SERIO_QUIRK_RESET_ALWAYS for themself did not individually introduce the boot problem, in combination they did. That was all I was able to find out back when I tested the old quirks. > > Also, shoudl this system use s2idle by chance? N1xxCU is s3 only (intel 10th gen clevo) > > Thanks. >