Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3816418ybz; Mon, 4 May 2020 10:13:29 -0700 (PDT) X-Google-Smtp-Source: APiQypLrcfMeaSoLWzXC3SRo+5UhK3w5ng6eaRwyDiJ5PCBShleZHbESltveHzkevYB7cAj4lX89 X-Received: by 2002:a17:906:4542:: with SMTP id s2mr16434188ejq.34.1588612409149; Mon, 04 May 2020 10:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588612409; cv=none; d=google.com; s=arc-20160816; b=BrQDNEbQgDuFa68YvRFI7L4JDDj25FVQQ1UZI5Edu+np/AHElztQBCCdb9XoDukDwD ddlxejRJzqtdu44fnaVn2UzlVKC5Ry2U9ydC4mfHlUleNJVBkQ8+AM5nqMEuAnJkTYNU df8kSREz9/CV4Zlmlsqyt5lUik0kdXOFt8iCAB7EXU36BPVoU8J5rlpmvSdpaApukKwM ttAWVaJaSr7romsrTfLmCs34yZ4EsVjxtM+82HWK9t3CgkqUiPE34sa9O4XGR8LoQ1Kz gh3rrWfFVHZIWbgd0Eo+iS8GWNILDTbYxqfQZT/uGvlsiuha1s4JkrnKZ78IjK3JDMRs oEZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=i+2pl33LoND8rn0Y7JhGeOTRVPWpQ6iAUIg7IYjQeRY=; b=a7wRUvq/XYWoZpSPjRyD7//Yz/Gii9mNDq6YDPbmOyZgZIOSzdoZdAPwlSEm+nDeil VADWpHkkbkHDu9fMB4vEaXRmPv26/LokIGdGZX9qrbJIZ7nypvOaTLWuWfIQyD7C0gUR MwJyYD3tdYcRq9vahVODOsMrKBiAUC+8dt1CDC1RG8gXYMbqc2ORvuK3Da1KBvT8Ge4T NEIz48S8oXez+H5yQeMSuDo+AYGETN9AlvhvtYcYoGLwERcJTxlhzHxTYuRm0QkgHU4b IvzMUJyKJ20QCAoJ0VPurr+khnaDT5m8YdvkQvVQ0Pu9w5jhD4FTNoD2f1TWXiyYoiDe IXyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=RSKYyByh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di15si6469942edb.423.2020.05.04.10.13.05; Mon, 04 May 2020 10:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=RSKYyByh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730206AbgEDRJq (ORCPT + 99 others); Mon, 4 May 2020 13:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730203AbgEDRJn (ORCPT ); Mon, 4 May 2020 13:09:43 -0400 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A093EC061A0E for ; Mon, 4 May 2020 10:09:42 -0700 (PDT) Received: by mail-ot1-x344.google.com with SMTP id t3so5711100otp.3 for ; Mon, 04 May 2020 10:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=i+2pl33LoND8rn0Y7JhGeOTRVPWpQ6iAUIg7IYjQeRY=; b=RSKYyByhc+B/qJYIIeWcVTJnYVebWzTt/X13WENuNH3vl26htM3tC+/678WIYTcNZW Ah6An8uLH78KIYFnnBerBnB1jWxJx7V9RpZNh0p/PcpOcNQ5VZD1lrX02jPkdHZMUans JyWDmvE10S/7Z5436S0/a4rZVc/lnnzSXddKza0QQyj1Chv7HT5OADcnNKgRKPpJqjgz FPOm7tHRUvxY0h4oG39JyfBe7tc986/TI9hn2B27UvuSE175IO62QMUR2/ppXFX0eeAq HvmECHPi19MnFBQrbUFoYUjfD9ZB/F9yZ8+O2wb82K7H+HvgVB37nQGjf13TF9xCrx74 +YNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=i+2pl33LoND8rn0Y7JhGeOTRVPWpQ6iAUIg7IYjQeRY=; b=He5EfQtGpBAivOGRCell+Qark4yiX5QLKld2E951KxEj8sL74uzC7yzMwoCL2mtQ/A 6slyIjA5cOv7dw+91D1BBGY0rftwkeIWdb3xB7F4/CUF/kjqYlt0VrnriTpo+kaDfeUk IbHwOyE+JFWD4ICLTAKTv3sHlmYz+mmT8YCJzpGVoDyUxTeE4hMvfAGWG1v0Zd9a80kk kRsl9sGamcyu/y7EMfWZxQ7pv/bQx/4dASlRypwvAfp2K+l1pacqHyKDw+uDmGCENoZc uA6r3S4B6Av72e3uUJieoLD8MC9iIL1+ewsfWeThL4F993QA+cnlOlgIJiTQGtZE4nZh XVsg== X-Gm-Message-State: AGi0PubYgqifYiBl3MT9gciWT1CORHz1c+aMhuZg/UHPkrIhkCkVQfGK iS2b/MjVxfP8wktdD40HSiMTRBDhOiElMV5WNT8XRg== X-Received: by 2002:a05:6830:1212:: with SMTP id r18mr15724444otp.144.1588612181892; Mon, 04 May 2020 10:09:41 -0700 (PDT) MIME-Version: 1.0 From: Chris Chiu Date: Tue, 5 May 2020 01:09:30 +0800 Message-ID: Subject: System fails to exit s2idle by a keystroke on my laptop To: "Rafael J. Wysocki" , seth.forshee@canonical.com, Len Brown Cc: ACPI Devel Maling List , Linux Kernel , Linux Upstreaming Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I have an Intel X5-Z8350 laptop which used to work fine on s2idle enter/exit with kernel 5.3. After upgrading to kernel 5.4 and later, the system can still exit s2idle by power button. However, if I try to wake it up from a keystroke, the system will freeze and then no longer respond even to the power button. I can only shut it down and power on again. I tried to 'git bisect' to find out which commit causes the difference, it shows me the commit "ACPI: PM: s2idle: Prevent spurious SCIs from waking up the system". My laptop can work as usual to exit s2idle by a keystroke with reverting it on kernel 5.4. Then I tried to check whether I can reproduce it on the latest mainline kernel, the same problem still there. But I can not fix it by simply reverting. I found the acpi_s2idle_wake() has been refined on the latest mainline kernel, and I have to make modifications as follows to make my laptop work. @@ -1024,7 +1024,7 @@ static bool acpi_s2idle_wake(void) * regarded as a spurious one. */ if (!acpi_ec_dispatch_gpe()) - return false; + return true; /* * Cancel the wakeup and process all pending events in case Maybe there's something special on my laptop so a keystroke is considered as a spurious event on this machine? Don't know if the DSDT helps or not. https://gist.github.com/mschiu77/de8af6da78be12cf442853e7747f76ed Please let me know if there's anything I can help to address this problem. Thanks Chris