Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp330343lqp; Thu, 21 Mar 2024 02:31:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfyRDReUTHELu2h9r8tIgqJjA6cJtnG7AfX5JoEAnjlrMU/RkdzHV9tJS5Sp5KwpTzh5gxA8nzjvY8ez4cGsAtVqrH7w7gpt3oGIbksQ== X-Google-Smtp-Source: AGHT+IEw2y6InPfLjbyPrqx3HkYDJPwZbHqkhB1fuDCZOzPGUqwSBwJGZ8SHRZTz0VgNng4EMZ7L X-Received: by 2002:a05:6808:120e:b0:3c3:83e5:df20 with SMTP id a14-20020a056808120e00b003c383e5df20mr1489619oil.58.1711013493651; Thu, 21 Mar 2024 02:31:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711013493; cv=pass; d=google.com; s=arc-20160816; b=E2LnPOKtm1aQeuuOL55u5kC2MRI4gLZlR5GT6lGXwcC/WoRldYj6QlP+7MBFeKzCwS Ig2/sn8auW/QKoPqzLVvLRNwaVS9qSRKwYXzWxQrKuG5uMGu0s8OfvMPMBYefnyqdu4h FnEdypLUZvQ+hD96aLJwKs0eJybbHPkIFihzTRAdTtfNRDMEcnZBrvy9xbPeprFhU5Cq 9PWAheY88smREyJ6TBe+xkIGvAZzdDxQl8cZO2HwR8CC5K9ECKQ2+CqUCbHC3TFK0mBf UYI2Vl5lhNPzT/9nsJ+b+ZE5htjvP5bTy+yfVm0bVBr3hlA+g1o6xULOilHiQkXcOTuZ Wz5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to: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=gn3aXvf5VTogYoFCNQ+hze3URTCA0KPJcqB9uzyTWx8=; fh=7Dc/vSXSlUk3ioaCTl7Q2nWDWItP14rZBILSuaM6mU4=; b=hi04tCR/bMyTn7lw8VfUT21Tp5w/Jx4zImnfBPunDfqpPuHahCmyzimjVXtF5BJWhK VEEz6zSUQz29dx2XU9fZq3b8zuUCHcXpI6TjSqfk6haqCXU7w0qPfIssbucSmHIVhnRO 7eN11H4aywp256adVO50NJ65HLi96LmCS0Qqu7VnHdSazCgjpUNlTDJlb3EIdeugN8kQ U5CtSv0zYrp5BahXCJbb6c4KPqRaaXJQprSESEUvkytfD/Ta68EyE3cQQt1Rz3MA73Oz gfvFzAcPo8AuDT3Ez/DHrViR6VTv57gnb7UAA35cfL7sC0nVWCwGJlatuW3GE34hwQ5J v+ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=wsOg9C2n; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-109854-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109854-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id xz5-20020a05620a5e0500b00789ecec1b0asi11461496qkn.410.2024.03.21.02.31.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 02:31:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109854-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=@leemhuis.info header.s=he214686 header.b=wsOg9C2n; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-109854-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109854-linux.lists.archive=gmail.com@vger.kernel.org" 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 60FCA1C20ECC for ; Thu, 21 Mar 2024 09:31:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B96CF53384; Thu, 21 Mar 2024 09:31:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b="wsOg9C2n" Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) (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 8D51B125CB; Thu, 21 Mar 2024 09:31:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.237.130.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711013485; cv=none; b=pIUjEfrZRK4jyzaAlHY5VuutL9vqdo5YQdDBXmWKIBl5ilyuAcfLFSbfnCXYg6pN76+2U9jWLB7naBkzlBCC4CMtkFut0xBrWtTMTB9JWgPCpLiCT/+CwdQQdGEhmffvq2C7sZkc5Kk7UZAhltOylaYH208jUSJLezj6oNBFU9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711013485; c=relaxed/simple; bh=TzFlFyBicWglBuM6+5UuyMfMcNrvW9nqeLaEKUhN0Uo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RW3dXDXijshiar+KW0N8Ulnmk+uC+m1F53YmTxHmFL996iZkaqLYoIvEdb6o+rn4YR87uzqukbFVdC19joOk7fc6RJ21sHzyjAANRX4+7LmPaCabbLzf5taWOdWnuwLPHwtWipkeysqnyphkr1K4mr+rlZUHxXo7TPBrXJyisBw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info; spf=pass smtp.mailfrom=leemhuis.info; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b=wsOg9C2n; arc=none smtp.client-ip=80.237.130.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=leemhuis.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=leemhuis.info; s=he214686; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: In-Reply-To:References; bh=gn3aXvf5VTogYoFCNQ+hze3URTCA0KPJcqB9uzyTWx8=; t=1711013483; x=1711445483; b=wsOg9C2nMK1CryZat1gIgOb3nBUBNq/sOtpmFvIT9mCjUfa CdSG6CfCjbXRepKqxzHUtjFXE7XjwwNaB7+e75HivQA/1gHxAqrcC8uDK5jan4CytAWo/GNNczrYM vchwN4Sw/+NkoNSECrWL1jPFZm/2lGvVppaCTuSP6KeDZocjY2rBoblyYzN15K/+odi2GNT3cJmwN I9k9W0iK+F+r3cicWXS5KFhNlFUTomltpjEVoHZbF1J5X8VyC1kRwr4t0ji5/bXyKZMxuV/tVUM4j coM45dqxwPncaO5e4iv0PemIRogq/izRBKd+qenlQIlqyGnd8T2kIewOzhVVo/qg==; Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1rnElb-0005Vn-2F; Thu, 21 Mar 2024 10:31:19 +0100 Message-ID: <7ed15eea-24f9-4c75-abf0-f120c7f5b09a@leemhuis.info> Date: Thu, 21 Mar 2024 10:31:18 +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 0/1] Failure to hibernate on Dell Latitude 7430 Content-Language: en-US, de-DE To: David McFarland Cc: "Rafael J . Wysocki" , Linux kernel regressions list , Chris Feng , linux-pm@vger.kernel.org, Alex Hung , Hans de Goede , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , "platform-driver-x86@vger.kernel.org" , LKML References: <20240318191153.6978-1-corngood@gmail.com> From: "Linux regression tracking (Thorsten Leemhuis)" Reply-To: Linux regressions mailing list In-Reply-To: <20240318191153.6978-1-corngood@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1711013483;97f36e79; X-HE-SMSGID: 1rnElb-0005Vn-2F On 18.03.24 20:11, David McFarland wrote: > I have a Dell Latitude 7430, and recently whenever I hibernate with > `systemctl hibernate`, the machine would immediately wake. Thanks for the report and the proposed patch. > I bisected it to: > > 0c4cae1bc00d PM: hibernate: Avoid missing wakeup events during hibernation I CCed the author of that change, which should at least be aware of this any maybe help out. Also CCed the people that take care of the code your patch modifies, they should be the best to judge what should be done here. FWIW, the start of the thread and the proposed patch can be found here: https://lore.kernel.org/all/20240318191153.6978-1-corngood@gmail.com/ Ciao, Thorsten > However, the underlying problem seems to be that during hibernation, my > system gets a 0xcf (power button release) event, and the above change > causes it to abort hibernation correctly. > > I also noticed that holding the power button down (when it's configured > to suspend) causes the system to suspend and then wake upon release, if > it's held long enough. > > I'm attaching a patch which fixes the problem for me, by skipping the > wake on any of the release events. These events are all marked > KEY_IGNORE, so think this is a reasonable thing to do. > > I'm a little worried about the consequences of doing this > unconditionally in intel-hid. Perhaps it should be a quirk? > > David McFarland (1): > platform/x86/intel/hid: Don't wake on 5-button releases > > drivers/platform/x86/intel/hid.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) P.S.: To be sure the issue doesn't fall through the cracks unnoticed, I'm adding it to regzbot, the Linux kernel regression tracking bot: #regzbot ^introduced 0c4cae1bc00d #regzbot title PM: hibernate: & platform/x86/intel/hid: hibernate on Dell Latitude 7430 fails #regzbot ignore-activity -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr That page also explains what to do if mails like this annoy you.