Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2951030ybh; Mon, 5 Aug 2019 09:27:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjiy2vJlGJOeRxYc/dKNg7yOX4wAH1Pv99+Ewr7XssKq0XLrY+ks8V5kTPH0peZBY8OutR X-Received: by 2002:a65:44cc:: with SMTP id g12mr58885583pgs.409.1565022446788; Mon, 05 Aug 2019 09:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565022446; cv=none; d=google.com; s=arc-20160816; b=oiCIXKTjoqDZXsFdQSW8hOtkjpUMtjJ3WjGDEA4ksLYh27vfbAN3W3Zs/2bDZWURFg 9NbFXJONFzZSV6hAe5QdguRrphz+B3KYeejMnTTmUuGoJyGHrO8vqZEx+r6P+Hegv68/ Xev1gSkO23/E+HGgA89znp4aObWoNKy92EKrzc7LaSt6bPlztDojrm4OImNkVwPxIQ+7 GFbnH5WXWfw3IZNLFZTknOEzHoXpbroQ+SMpZ+4OAFwUMqpwwMYOubuyoF9hdk+TVCxB vMX2qFzm3OutB8sC+5lgZqmdYW8g96ISKsxYZK9b7vgiBWKZINcCWmjZYNDeVuGhCKks VSXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=ahDv1JQ0w2AsFEFKjWvYewqWbx39Q78We1s4PnzLIHE=; b=amajpwaAW4bNW80L6DggqVoZTMHJ3TvK/RFYziSYspM2mI+9zx6VTtK5iw34bNkjID y1rG3K9TxCsPSdKmAtsi2ZNsl/p0tju1jLBONbHNTNpFoPuQ1j1uoQtdkI/GMihhxSWE Sb8QLRyU23N8Abr08aPYDRefg5n7T8RAuZzRtN2ftfh2pkskXpzWOhQ0TZHgYv6Mf9vc JyZQ6jcp3DpCgEUhhqgEksH2chD5JatNCgCxWDRHj8rAcU6DfgFoxH0+aGSCpsY/9VWq 7rGS23kjugjezra9gmtnc2hJ7dnknvaGW2uK7uJduW87y72wxfz18X9pe3ORe8MVv/pA gJyA== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si46748333pgn.360.2019.08.05.09.27.10; Mon, 05 Aug 2019 09:27:26 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729192AbfHEQZx (ORCPT + 99 others); Mon, 5 Aug 2019 12:25:53 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:41100 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728871AbfHEQZx (ORCPT ); Mon, 5 Aug 2019 12:25:53 -0400 Received: from mail-pl1-f198.google.com ([209.85.214.198]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1hufnz-0007xm-7O for linux-kernel@vger.kernel.org; Mon, 05 Aug 2019 16:25:51 +0000 Received: by mail-pl1-f198.google.com with SMTP id d2so46579418pla.18 for ; Mon, 05 Aug 2019 09:25:51 -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:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ahDv1JQ0w2AsFEFKjWvYewqWbx39Q78We1s4PnzLIHE=; b=RTDUT4Y2d47CpJ6jm+5Pl7TU3vHXKKquEuPX7bFxJUsI1HYMJdLS0mdANZiGLfIbrz sU+UmbPwNGXjscRDepZiSrAsVVJCDILVAD/7hL/eNA0gVj7fW4rsgt04ZSvBOXdLehgf yATncsRGs/eDEWWCeSVZ+tIsk3zCnYSrFZEaTeiNKQts9bJBJ9ohfbgtM+2xa4jfBv8P 6Qhz9a0McZovq4DL+xBOn7gVVOVNJogRl7xonFGMI2pttT5It9EWTq0vrp24E37TpCk5 UKkz5FQj4aqEsdSINjy54V2oQlSeDigJ0i0X/5a4u2tVExstsADdpZt55XOHEg2oIr0g MuKA== X-Gm-Message-State: APjAAAVbt0O8yY/U3VjYbbOeVCwP4s2+CnbWyMlcD0PuztXewJYEx3BK HBNhUytSQJaZ2sZREjoS2bm90O/x5cBhlugaVg0HYQrBjv8alQ15ULqqXkAWjdu2V9kiKl0wNC6 l79jyNS/9FDI7zxRxswMrA6E8gKbCoIg/BEnB7BQ/vQ== X-Received: by 2002:a63:1c22:: with SMTP id c34mr30357127pgc.56.1565022349742; Mon, 05 Aug 2019 09:25:49 -0700 (PDT) X-Received: by 2002:a63:1c22:: with SMTP id c34mr30357110pgc.56.1565022349363; Mon, 05 Aug 2019 09:25:49 -0700 (PDT) Received: from 2001-b011-380f-37d3-6851-7bc4-3469-2fa7.dynamic-ip6.hinet.net (2001-b011-380f-37d3-6851-7bc4-3469-2fa7.dynamic-ip6.hinet.net. [2001:b011:380f:37d3:6851:7bc4:3469:2fa7]) by smtp.gmail.com with ESMTPSA id u134sm82343207pfc.19.2019.08.05.09.25.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Aug 2019 09:25:48 -0700 (PDT) Content-Type: text/plain; charset=utf-8; delsp=yes; format=flowed Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH v3 0/8] PM / ACPI: sleep: Additional changes related to suspend-to-idle From: Kai-Heng Feng In-Reply-To: <5997740.FPbUVk04hV@kreacher> Date: Tue, 6 Aug 2019 00:25:41 +0800 Cc: Linux ACPI , Linux PM , LKML , Zhang Rui , Rajneesh Bhardwaj , Andy Shevchenko , Mario Limonciello Content-Transfer-Encoding: 8bit Message-Id: <63E89FFF-9471-4F65-B05D-E99EC5C9EFD6@canonical.com> References: <5997740.FPbUVk04hV@kreacher> To: "Rafael J. Wysocki" X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org at 18: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 I’ve just tested the full series on Latitude 5300, and the additional spurious wake up is gone. Tested-by: Kai-Heng Feng > > Please refer to the changelogs for details. > > Thanks, > Rafael