Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp604684rdb; Fri, 26 Jan 2024 05:33:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGZzwsJa/orrxZlgNwdsAqK1RYlcQQ57RKfaAirzoGtF/dcWbGjGiZsZo9KqijfCeFwKAo X-Received: by 2002:a05:6102:3226:b0:46b:2484:bce with SMTP id x6-20020a056102322600b0046b24840bcemr698195vsf.9.1706275999527; Fri, 26 Jan 2024 05:33:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706275999; cv=pass; d=google.com; s=arc-20160816; b=jwgCn/lIuIC6nD0hKefKbjDXJPM+hXcd8x9xVdothgfl7TuE7uxvDh31kYGnqLD8dc MSuydofH1ZAVEatOq2tzgHqZSVP1F4x4TqLpGOutKRDjjphScj4dn0/5guRY8Ygm1Aqc xt/fvGK8rjhOLt8HOEv7eyDNf8MCucsCsfNnT3rK9+YkQrj100bIklsOtvgl/KkyG2CX +XJwYhzzA0tjrtALae3j+56z3ybYc5de/3VcasOQzVviFLUL9d4iWYhPf6+LbV4LstqS 8EigtwIuoPv3OJZS6CIx72CeSHJNthVkYVWY3eiLkOfEzpcwtw3wlJFPj77Jgtx+0D4K Ss7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=U3CYoF7To3W2OvR7Q0XItMhTSU3L3ntABi2tsSEqr9s=; fh=WHF6lvhHM4GvIUbPQtwyPwZSkRtB4J3vwR1ENoCEzwI=; b=NP1pAneSnBknWFdI8oFhv7RbYe6H7s8LLTDvgjp+ggV+CnVpI4y8rm0D7pT8YKNNDQ zsav0sKvaWs2mdprtDh9m+RUxCK60FNyyMvBuJ6tfrjq2GRpiHT8t6/thgf+A7oPWyr9 qzFD/eKv823JBqZ5NKqKRVJsTYmeFaqtB1atcaMWeMqu9V5cZEqG0CXW3oKDgXomwALr tgooxB4bvkFJQkqISOW2EZE9ehRZs/SYBynWnc+p9ARo4emaxvxuqgDpdTO0fQ1MCv8h b3aVJmR+C9H50YhPhbFsUAtK2He0RO2DAp3pnlZrlr9mpPkri0oiSWiFRkVPsmeAl0TL oFUg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eOYTEzaG; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-40133-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jf17-20020a05610217d100b0046b1fddef0bsi122458vsb.781.2024.01.26.05.33.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 05:33:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40133-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eOYTEzaG; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-40133-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CC2D21C21E76 for ; Fri, 26 Jan 2024 13:33:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09EB61B968; Fri, 26 Jan 2024 13:33:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="eOYTEzaG" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3E301B943 for ; Fri, 26 Jan 2024 13:33:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706275988; cv=none; b=p5F5yl0OnuTJ/FKfSH3bFg8vwiFSN1HGvsaqXD/vpYUzDOqL6J5RFP18uo0ho6pi9/VLJ/QsBeWaC2ffgCAfONQW7iNJDhADwIKECZofDurbvkhSFDcwSMQeiLUwDQZSQHwFQEiiQ4kxmh7DU+n2+65pFLe0/xAuIm19SvfEvHw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706275988; c=relaxed/simple; bh=t75+ApVE4O2pChN2R4h66dZ7fB5ab5Ao7eh8CU5ennw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=opdOF/ElDr8IoMnzJ4PsS2azG49XsgAUTXAMBK1sG0p2bKSFqG42OKOWEQh2bHmpbYn3ZuHaaXxSoP//Vf8PeX8ppEXH16xn0MnyC32589XqFPS69SAkOey2WVed2hD6Z0RCF+WFTIp6yh2YV06y7vNjPrSZTzkPobxQUIqkDr4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=eOYTEzaG; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706275983; 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=U3CYoF7To3W2OvR7Q0XItMhTSU3L3ntABi2tsSEqr9s=; b=eOYTEzaGeqDyJTQ0LBWUYDAPoRYW8Ph+FqihlfnJdWpXwZIduNMfWEnFEJRyM+rYeWPq5X 4INJp2RtrBgjIICjqQ3DP9vz/IBCOnyg7IcYq9GIDev0nZnQxiWOGSJopaDdDrMY7dF5XZ 8sGi1/O6ksStmKMIS1OF0n7/ddU12ag= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-493-vGJDucMVM6-Whru6fw2yTg-1; Fri, 26 Jan 2024 08:33:02 -0500 X-MC-Unique: vGJDucMVM6-Whru6fw2yTg-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-a2c4e9cb449so11407866b.1 for ; Fri, 26 Jan 2024 05:33:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706275981; x=1706880781; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U3CYoF7To3W2OvR7Q0XItMhTSU3L3ntABi2tsSEqr9s=; b=huDIFlaqRTMDIGloK+iXJHXeLHo9BEThN4+S7uQ9Vdah6QNhEMW8j1wo/Z/JyuERQ0 QSf6M88mk8VHCC654svtKo46O5F9x+SkUJ2CbQDnOLrPlRA/64MvavtCZVbHEXLhPq8g DXJD9NB3/RAmwG+FS1C47qvWCVXLh1maDgNCaG/UKlXlCmKsHlzTecQK55NwqcQebp+l +VKuZt5zQI39+nZT1yZtJuNg0cXDR3RvVn3q+pwzi3Pb3ELeGl5cw+x1gE4cxfS/Pe4/ eKAW/sL6jGhy3ccrxj1Mwu01q0RL+DCFZjj53VjLWUdgcI4C8zd5HYdbXS8FhLay1k7x O2pQ== X-Gm-Message-State: AOJu0Yzkf1RXiPSqPvJdLyWpsXx20iYkkPI7Ywb8gUCt8R5TVDf8/xMM UYc7bkS1/AUBWtiXTlmp90R2gfMTEzGRb07pB/WhoFwE6YAZxn00Fnfo457PmjLLZt6DLAd9V1v oRKz1TAz+DMZYMmZMjc4Nc5veMZIT/8BK84pEPfTkxLIEXjbr3CCGm7Lw2P0PJg== X-Received: by 2002:a17:906:1949:b0:a33:604d:2a42 with SMTP id b9-20020a170906194900b00a33604d2a42mr527115eje.25.1706275981154; Fri, 26 Jan 2024 05:33:01 -0800 (PST) X-Received: by 2002:a17:906:1949:b0:a33:604d:2a42 with SMTP id b9-20020a170906194900b00a33604d2a42mr527109eje.25.1706275980797; Fri, 26 Jan 2024 05:33:00 -0800 (PST) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id un3-20020a170907cb8300b00a3516240ab3sm118189ejc.215.2024.01.26.05.33.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Jan 2024 05:33:00 -0800 (PST) Message-ID: <5f70a174-7f18-43c0-b3a3-b72544a2631b@redhat.com> Date: Fri, 26 Jan 2024 14:32:59 +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: PS/2 keyboard of laptop Dell XPS 13 9360 goes missing after S3 To: Paul Menzel Cc: linux-input@vger.kernel.org, linux-pm@vger.kernel.org, Dell.Client.Kernel@dell.com, regressions@lists.linux.dev, linux-kernel@vger.kernel.org References: <0aa4a61f-c939-46fe-a572-08022e8931c7@molgen.mpg.de> <0b30c88a-6f0c-447f-a08e-29a2a0256c1b@molgen.mpg.de> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Paul, On 1/26/24 08:03, Paul Menzel wrote: > Dear Hans, > > > Thank you for your reply, and sorry for the delay on my side. I needed to set up an environment to easily build the Linux kernel. No problem thank you for testing this. > Am 22.01.24 um 14:43 schrieb Hans de Goede: > >> On 1/21/24 15:26, Paul Menzel wrote: > > […] > >>> Am 20.01.24 um 21:26 schrieb Hans de Goede: >>> >>>> On 1/18/24 13:57, Paul Menzel wrote: >>>>> #regzbot introduced v6.6.11..v6.7 >>> >>>>> There seems to be a regression in Linux 6.7 on the Dell XPS 13 9360 (Intel i7-7500U). >>>>> >>>>>       [    0.000000] DMI: Dell Inc. XPS 13 9360/0596KF, BIOS 2.21.0 06/02/2022 >>>>> >>>>> The PS/2 keyboard goes missing after S3 resume¹. The problem does not happen with Linux 6.6.11. >>>> >>>> Thank you for reporting this. >>>> >>>> Can you try adding "i8042.dumbkbd=1" to your kernel commandline? >>>> >>>> This should at least lead to the device not disappearing from >>>> >>>> "sudo libinput list-devices" >>>> >>>> The next question is if the keyboard will still actually >>>> work after suspend/resume with "i8042.dumbkbd=1". If it >>>> stays in the list, but no longer works then there is >>>> a problem with the i8042 controller; or interrupt >>>> delivery to the i8042 controller. >>>> >>>> If "i8042.dumbkbd=1" somehow fully fixes things, then I guess >>>> my atkbd driver fix for other laptop keyboards is somehow >>>> causing issues for yours. >>> >>> Just a quick feedback, that booting with `i8042.dumbkbd=1` seems to fix the issue. >>> >>>> If "i8042.dumbkbd=1" fully fixes things, can you try building >>>> your own 6.7.0 kernel with commit 936e4d49ecbc: >>>> >>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=936e4d49ecbc8c404790504386e1422b599dec39 >>>> >>>> reverted? >>> >>> I am going to try that as soon as possible. >> >> Assuming this was not some one time glitch with 6.7.0, >> I have prepared a patch hopefully fixing this (1) as well >> as a follow up fix to address another potential issue which >> I have noticed. > > Unfortunately, it wasn’t just a glitch. > >> Can you please give a 6.7.0 (2) kernel with the 2 attached >> patches added a try ? >> >> I know building kernels can be a bit of work / takes time, >> sorry. If you are short on time I would prefer testing these 2 >> patches and see if they fix things over trying a plain revert. > > Applying both patches on v6.7.1 > >     $ git log --oneline -3 >     053fa44c0de1 (HEAD -> v6.7.1) Input: atkbd - Do not skip atkbd_deactivate() when skipping ATKBD_CMD_GETID >     0e0fa0113c7a Input: atkbd - Skip ATKBD_CMD_SETLEDS when skipping ATKBD_CMD_GETID >     a91fdae50a6d (tag: v6.7.1, stable/linux-6.7.y, origin/linux-6.7.y) Linux 6.7.1 > > I am unable to reproduce the problem in eight ACPI S3 suspend/resume cycles. The DMAR errors [3] are also gone: Thanks. So thinking more about this I think the DMAR errors are actually the real cause of the issue here, specifically if we replace: f0 with 00 (I guess DMAR uses the high bits for its own purposes) in `[INTR-REMAP] Request device [f0:1f.0] fault index 0x0` then the device ID is 00:1f.0 which is the ISA bridge and [INTR-REMAP] errors are known to disable interrupts. The PS/2 controller (which sits behind the ISA bridge) interrupt getting disabled would explain the suspend/resume keyboard issue better then the atkbd.c changes I have been focusing on. So then the question becomes why does the 6.7.1 kernel not show the DMAR errors. I don't see anything between 6.7.0 and 6.7.1 which explains this. But maybe your local build is using a different configuration which explains this. Can you try your local 6.7.1 build without my 2 patches? The quickest way to do that would be to run: "git reset --hard HEAD~2" and then re-run the make commandos, this will re-use your previous build so it should be pretty quick. If things still work after that then the problem is not with the atkbd code. Regards, Hans