Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp52396lqz; Fri, 29 Mar 2024 08:16:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXoH2UeytLGRySZIU5oTkauHA0zm5vEP6VRMyBF/r2m2h33HaQZS3gY0+wolnU+RqO/8WeUwTN6nmUcX+uwaZEp0/Liyr8y28jfy2oPw== X-Google-Smtp-Source: AGHT+IE54I/QwlSiJevQUqCwi5vbdEWa/cS47NKW+vM9kTgmIsvppvxQuIRPaMYQ/giPWrIBzDZj X-Received: by 2002:a50:d6c3:0:b0:56b:d158:7fbf with SMTP id l3-20020a50d6c3000000b0056bd1587fbfmr1576511edj.15.1711725416824; Fri, 29 Mar 2024 08:16:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711725416; cv=pass; d=google.com; s=arc-20160816; b=W5wZG7cgW9VVR/DlTd31stcGB7Rjn5qX/BevarjpUm35AluONW4733qUn31++2u2Qk JBJO1n9s64F/pRR0RdiJOPf4tl/TW7FFHvzdVsTHTtn+cQ/trZj4ZMZI5ANjQZ0XSm5s KT7Z6HlQbOR2xEBIWFyOD/MUeOTPswWHPr/V5SMnK4jJYSDwuIEgeTdI0U9jvQhzIJZu NPdG+uOnSMq5lV6u8/tyG1XJ8Q3VINw4jXTUvqaf2OLrLNxiejIVGGlI133pErE+c5iH lPr+HDLTdWsyT4rS/eVhfuHpQztmwOsAWHcyy+dcbdtOiwzJ+ZfiH3ZaR2ar7vIrr1h1 +5pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:reply-to:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=alXGIJuT49Qp7PxLLBHbTD5jAobwVRz5/+8YtYzfgt0=; fh=Pz3A+fZofDxVQmlbR3aFIqZs0eKPtcQtivcq8UeIhK8=; b=z05Q1ZtR9Y+g95TO/Lo+cSSaaADN/dedWe/6VpZ9xOZfmx2NUnwsjnJGpONCsdDLBE edE+YJ4u663AZ50N/YzEmi9sD0T09GXA6VzKmBgD2wYD5IWL1HYVPAAeQ7Bn06/laJSB 5GmEqphOihJECbgLu8k1TjkGL/C9v7lmgTzLLY6P4rFrtf7CjTOh9xmjFWYwlw7R9yA6 vOnHodI3cyVm+i4Z2BXSIaustrRNPivM1Hdx/STlihtLZeNBK9EGeTnmGOWVE31phd4c IbC7Z+Utzp5igJpUlziuxAPmc7Jk4+nomjV7tXhIlS3EQk91JZ4xGQhLHKhpF+MyITSd pKbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=pnxVq16l; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-125077-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125077-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x96-20020a50bae9000000b0056bce02a297si1928552ede.409.2024.03.29.08.16.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 08:16:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125077-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=pnxVq16l; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-125077-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125077-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A73961F28085 for ; Fri, 29 Mar 2024 15:09:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 711A61411CB; Fri, 29 Mar 2024 13:51:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b="pnxVq16l" 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 0BF891C0DF1; Fri, 29 Mar 2024 13:51:54 +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=1711720317; cv=none; b=TtPfBZRl0GTZwCSvrbDwTJDcNRliSDwvF/DAg4C/QGADMtIJ0pbYspj37p4HUqT7HZsNMCNL7PU4+UxUZBvrJ3YFSFfNfs0o3H3+xhdZQxD3xz1x7XGUCwRyRgsgsXwP5LXy0C5JVIVDWU3hY3QLAnhY8xWgBu7Fq9hdO9C1jy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711720317; c=relaxed/simple; bh=1CtEIoW5Had2QClPgeyy73NMyNE2vfzEvp6rwVupVy8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QsY8Z30U3YSPmylknW2uxART9nBy2lEkIkBHB1TDBIoV0WK+GKVb4PQLsQjX2qLyZgPo62DmBLDA9jxjhKBSbqB791Wx4f5oEwZiXeV+NwHg1TQH3sRih4+Wnnur0PGBeoGUymVB4pgeX4nUg6Sa0Ti72QA2CBFnfTG7kcSH9hg= 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=pnxVq16l; 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:From:References:Cc:To:Subject:Reply-To: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=alXGIJuT49Qp7PxLLBHbTD5jAobwVRz5/+8YtYzfgt0=; t=1711720315; x=1712152315; b=pnxVq16l1hp8mJs8kpmu42j+TltxDSKbXlVKtgzWcMWVmyy vyVxqKenFSkOm6c2huPnzCRaWep7vdvL4qahX+qdlz0dfp4rQ2cXTE3FSs6xIU6+x5WpuiQe6ZXSD njzgrDkhofXOJhQwWTq6EotYeFMaSew4JIuYr5kETsVCOT8g967xmtYEedoSypGrUKY+8CBdPUDfu xJMvVp20tjRM5+sG2mKF5B7TYswCZ1QgrfuDDED/Gh3q4XFGYfwbIA6qm8BcgOPmWWVgK1FJ2zUko bhBVQf8TXceQ0v+8LVXbokifaIFzF2w+VBN2xRgzI5HR4Jg4qn3jvDLMZNVELWvw==; 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 1rqCe3-0000RK-QN; Fri, 29 Mar 2024 14:51:47 +0100 Message-ID: <1198933e-bf89-4237-a6e8-f7daeeebf885@leemhuis.info> Date: Fri, 29 Mar 2024 14:51:47 +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 Reply-To: Linux regressions mailing list Subject: Re: [PATCH 1/1] platform/x86/intel/hid: Don't wake on 5-button releases To: David McFarland , Chris Feng Cc: "Rafael J . Wysocki" , Alex Hung , Hans de Goede , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , "platform-driver-x86@vger.kernel.org" , LKML , Linux kernel regressions list , linux-pm@vger.kernel.org References: <20240318191153.6978-1-corngood@gmail.com> <20240318191153.6978-2-corngood@gmail.com> From: "Linux regression tracking (Thorsten Leemhuis)" Content-Language: en-US, de-DE In-Reply-To: <20240318191153.6978-2-corngood@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1711720315;987166c3; X-HE-SMSGID: 1rqCe3-0000RK-QN [CCing Chris, who authored the culprit; also CCing the platform folks and a few lists] On 18.03.24 20:11, David McFarland wrote: > If, for example, the power button is configured to suspend, holding it > and releasing it after the machine has suspended, will wake the machine. David, from here is looks like this is stalled for ten days now. Or was there some progress and I just missed it? > Also on some machines, power button release events are sent during > hibernation, even if the button wasn't used to hibernate the machine. > This causes hibernation to be aborted. From the cover letter[1] is sounds a lot like a "Fixes: 0c4cae1bc00d31 ("PM: hibernate: Avoid missing wakeup events during hibernation")" would be appropriate here. Regarding the patch itself: hopefully this mail will get things moving. [1] https://lore.kernel.org/linux-pm/20240318191153.6978-1-corngood@gmail.com/ Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. #regzbot poke > Signed-off-by: David McFarland >> --- > drivers/platform/x86/intel/hid.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/intel/hid.c b/drivers/platform/x86/intel/hid.c > index 7457ca2b27a6..707de9895965 100644 > --- a/drivers/platform/x86/intel/hid.c > +++ b/drivers/platform/x86/intel/hid.c > @@ -504,6 +504,7 @@ static void notify_handler(acpi_handle handle, u32 event, void *context) > struct platform_device *device = context; > struct intel_hid_priv *priv = dev_get_drvdata(&device->dev); > unsigned long long ev_index; > + struct key_entry *ke; > int err; > > /* > @@ -545,11 +546,16 @@ static void notify_handler(acpi_handle handle, u32 event, void *context) > if (event == 0xc0 || !priv->array) > return; > > - if (!sparse_keymap_entry_from_scancode(priv->array, event)) { > + ke = sparse_keymap_entry_from_scancode(priv->array, event); > + > + if (!ke) { > dev_info(&device->dev, "unknown event 0x%x\n", event); > return; > } > > + if (ke->type == KE_IGNORE) > + return; > + > wakeup: > pm_wakeup_hard_event(&device->dev); >