Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2388069ybl; Mon, 19 Aug 2019 01:00:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDdtIEQv5th0zW9ad5fSV5AlIdvvQY4ba4StqOuVWk3hkb2ITgGhlBinli0j1Xdk1nySzj X-Received: by 2002:a17:902:9b90:: with SMTP id y16mr18091253plp.17.1566201630759; Mon, 19 Aug 2019 01:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566201630; cv=none; d=google.com; s=arc-20160816; b=SfCoGLXJSZFpgZYBHzITVB4tsYjPfxDoJV7XR6rwYpFfKflXS1JEotftQ12vw3rHeE rnAM9ZJi2sk7ocRypy5ijdNYY4/LooZ+vVE7Puu11x+kmEh8L/l1oFoa0GqTwXzvm/pX DAWU1O36WmzkE8eaDxf/JXe3uAqwCGZrMdNGkpRBiXJRihp9mdeEcmeVUYGGzUbYrvdY pc6kkbOcap0JwYj2Bnvk+kmvWXkn2U0G80lTq4bXUYEy5ypF5pc4d7iIxdvCfEpFWiOz fAdXPXzT4qJ+m5RnfiUcH53M+GgfATiCIR1fWFfFEaedQV+PtkM/6gk0VL+gv9If3IUJ iE5g== 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 :in-reply-to:references:mime-version; bh=oUSptt+CdgIB8+WPNPFqtbQpxW0z2SyMLqmPWc3Ld64=; b=WfBVUsmQDLHl1reH2VJGYmITrh7VRaD9EPdWbGUmgtSvMMVfrLbDy7Q/RR3crGYrJx TgSQZkj6wv/It0bofn6K19Y7+DlCeo8Xwy5BVGGG4M56+rJwJz86eTUG42WYJYvDG90I yUjDbepkNLYHu7DMXD02hIyPCP+bgucW8I9XmRty1Aq8Htd289a0PtGowTjl/hFMJP0i YeidcqSfQyE8sKxJ0aJGrc1bE8jhY7jfFcje2ND06LrKPwEJHDA077wDWbX8GJtIKJ0J 3iOegeHPCblsVYLWrxsobUOViNzsxqexVu6kSAQVGjmK84c2FtHZQh5onzEqqgEKeSaC +2QA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23si8210596pjp.76.2019.08.19.01.00.15; Mon, 19 Aug 2019 01:00:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727082AbfHSH7P (ORCPT + 99 others); Mon, 19 Aug 2019 03:59:15 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:35980 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbfHSH7P (ORCPT ); Mon, 19 Aug 2019 03:59:15 -0400 Received: by mail-oi1-f196.google.com with SMTP id c15so645914oic.3; Mon, 19 Aug 2019 00:59:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oUSptt+CdgIB8+WPNPFqtbQpxW0z2SyMLqmPWc3Ld64=; b=j6nxumxAM9QVr1gFpXym+QDnOnewWmPCSmOdKJ2Z+UgqPdWMeCJ/aI1fkCgUdC0S2D EMiOB/u5QAWDwW+M/ebWTz5YD9aEWj5aPGJPH1eDnlc8WRrBysqbuiPiDjzQRntqGArd f4ffl4xnYsjA4UbOUFCmnj3BnrhRkYlpx5vyX6EhIEDFae6/VlABuwgIdZ/vdO4SSsh/ 3ZtUlKbK3a0jUz7enR5Usg1Xzhqk+LlxzK57LGan/0DfygnZwcWnEXgc64LpdjDMlfeZ iGhb01mPJ4QJMZGJ17dBVOSVAMJblSRrqh4a5BFazpVIqQ7i5C5/m4gPjsy6rCWWp0YH XEXw== X-Gm-Message-State: APjAAAV/BWlr6wLMWgmQLJoZLulo8rSXHqQY/MI6sEllLQBd/Eo/Gteu 0Qis2z+fxglEqfcYpzjWGxBvMqzkZ0gHs/416SQ= X-Received: by 2002:aca:ab56:: with SMTP id u83mr13102034oie.57.1566201554075; Mon, 19 Aug 2019 00:59:14 -0700 (PDT) MIME-Version: 1.0 References: <5997740.FPbUVk04hV@kreacher> <800186a2-e912-3498-f08b-47469bbe8b0d@klausen.dk> In-Reply-To: <800186a2-e912-3498-f08b-47469bbe8b0d@klausen.dk> From: "Rafael J. Wysocki" Date: Mon, 19 Aug 2019 09:59:02 +0200 Message-ID: Subject: Re: [PATCH v3 0/8] PM / ACPI: sleep: Additional changes related to suspend-to-idle To: Kristian Klausen Cc: "Rafael J. Wysocki" , Linux ACPI , Linux PM , LKML , Zhang Rui , Rajneesh Bhardwaj , Andy Shevchenko , Mario Limonciello , Kai-Heng Feng 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 On Fri, Aug 16, 2019 at 10:26 PM Kristian Klausen wrote: > > On 02.08.2019 12.33, Rafael J. Wysocki wrote: > > Hi All, > > > >>> On top of the "Simplify the suspend-to-idle control flow" patch series > >>> posted previously: > >>> > >>> https://lore.kernel.org/lkml/71085220.z6FKkvYQPX@kreacher/ > >>> > >>> sanitize the suspend-to-idle flow even further. > >>> > >>> First off, decouple EC wakeup from the LPS0 _DSM processing (patch 1). > >>> > >>> Next, reorder the code to invoke LPS0 _DSM Functions 5 and 6 in the > >>> specification-compliant order with respect to suspending and resuming > >>> devices (patch 2). > >>> > >>> Finally, rearrange lps0_device_attach() (patch 3) and add a command line > >>> switch to prevent the LPS0 _DSM from being used. > >> The v2 is because I found a (minor) bug in patch 1, decided to use a module > >> parameter instead of a kernel command line option in patch 4. Also, there > >> are 4 new patches: > >> > >> Patch 5: Switch the EC over to polling during "noirq" suspend and back > >> during "noirq" resume. > >> > >> Patch 6: Eliminate acpi_sleep_no_ec_events(). > >> > >> Patch 7: Consolidate some EC code depending on PM_SLEEP. > >> > >> Patch 8: Add EC GPE dispatching debug message. > > The v3 is just a rearranged v2 so as to move the post sensitive patch (previous patch 2) > > to the end of the series. [After applying the full series the code is the same as before.] > > > > For easier testing, the series (along with some previous patches depended on by it) > > is available in the pm-s2idle-testing branch of the linux-pm.git tree at kernel.org: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/log/?h=pm-s2idle-testing > It was just testing this patch series(461fc1caed55), to see if it would > fix my charging issue > (https://bugzilla.kernel.org/show_bug.cgi?id=201307), which it didn't. It is unlikely to help in that case. > I did however notice that my laptop (ASUS Zenbook UX430UNR/i7-8550U) > won't wake when opening the lid or pressing a key, the only way to wake > the laptop is pressing the power button. > > I also tested mainline (5.3.0-rc4 b7e7c85dc7b0) and 5.2.8 and the laptop > wakes without issue when the lid is opened or a key is presed. > > Please refer to the changelogs for details. Thanks for your report. I seem to see a similar issue with respect to the lid on one of my test machines, looking into it right now.