Received: by 10.192.165.156 with SMTP id m28csp1163402imm; Fri, 13 Apr 2018 14:36:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx4//Mke4c7mx+DCju7NP7Ljtna/yMVRLhulS0gIPPE49Fm8lyuKdCMMHi/iCY8u8mBJnGsHz X-Received: by 10.101.90.203 with SMTP id d11mr5368848pgt.20.1523655378215; Fri, 13 Apr 2018 14:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523655378; cv=none; d=google.com; s=arc-20160816; b=HHkyrC/IkhISqZTI01AJYhUSAdTDlltf7M4dtvuAI0ewiwWDawYG5qpBF7b+qmD0B1 dYLrG0ol5Zuq2VRNycKEZVbI2L8cM4VKYz651cjwLCUljmDyF6xqt49Qud/bb1U9l2jr +w8rNixFrIl/t6I8W96S3cJV911R4/hce8CbsUJfK3XqTdkNwjA/FKYOnkriQBewgYku 49jDqMYD6OvluPhfVGEGflEOYw2GjFs/4YYR77ayCNwABW+Pfg7KrSDhpulfOH58KpoX PiISCMvHwV6Qm9QtDhCW9/+CT66TjXfFMoj4TlfCsM6AcVAaYPF7081vb4GXf4z6TIUC yf5Q== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=21iM8d+9Me/cmCujvP9SP4peoxOXYgLT8gWojpipnRk=; b=jOYgM55YjmVk81IvOtJ6ZTW3Yub6RIleliPndesItD8yg8Y4teQ3AyAYrfG0mDaH4S B4pjodMVCoQAuQbclRykVrl+8DN/7KKJY0utNMeXPZBXoaOZ/7cKuYGQ4FSdH4UbWiy/ DLuVMNyqUD2uFcHutZEmeJPiktH9CM7cddPmxEgET4SmFQR3hsvdwfrJplxJ2zUd/whd TIxR8jZVFJsMskhZJsr86sWYxzjnY7Qb46DGID9ZAanIz/xvZ5kO1xitUmHj+cuIHpoX EHVKP/tAHzBpJCbUru7yN0O7Z7XflGKmoRcCUPJRsFQAk8snoEMrR15ZJwJDdPmFeApn V/Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=XTuwB8PV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si4945098pgc.18.2018.04.13.14.36.04; Fri, 13 Apr 2018 14:36:18 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=XTuwB8PV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751896AbeDMVez (ORCPT + 99 others); Fri, 13 Apr 2018 17:34:55 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:41710 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751162AbeDMVex (ORCPT ); Fri, 13 Apr 2018 17:34:53 -0400 Received: by mail-ot0-f195.google.com with SMTP id m22-v6so11389889otf.8; Fri, 13 Apr 2018 14:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=21iM8d+9Me/cmCujvP9SP4peoxOXYgLT8gWojpipnRk=; b=XTuwB8PVqiOxcMgiJ0QjYYsnV7TimP4Tf3z13EogtvagiB91YPiwVGnTdj2r6yJSlE vSCpv5rgh2NRCvGkXScyIed3IRO3jUHarFQ0XzNxvPPgDsJrJ6YNteW8u+0Do8Zo8twP puEWeQUP6gby+8XEQDn7URmc+fcer81Of17i4dT+cjnldoHMLoBYwxodIZRfaMY4rT4T c2bcmDrRiHNTfUmBQ6BxARQQTCFujrKpXMB3unOU5MJH4zltoCkJ/gIYtVL2s2NHJ+yg T8DGxyGnsz+5tIGJrosuytj9ICG8mXjV5wYC4kjPckFShdosMPzSHCVr/yvf1UKc+Wts ZnJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=21iM8d+9Me/cmCujvP9SP4peoxOXYgLT8gWojpipnRk=; b=phJvERcC8QBzITpgs6wiezL7KokzuFVvhI1WQzaKDe5i95Sm407XzBQ/WcRR7or2jk urJvaTfThwkKiCBsrIZ1T7HoyCeWXHCOImAQFrTnRDCeElO5EfZnqLzN0OxAm3ca0a3v Nkg5jP3lX2zIjhS7dYxY211SwA5LbuGEYO18G9Gqpt0XSKdJYP75hQtKbsYh7qT0dCyZ jAA7jxMqSI8HHu931KahsiGpGxiiS2V14V+IUSBLEo/CcG81DSrJFfmZ+Tqb0n32kSLm cqDAKLWdSZW4HJPRIiV9JRiLOC9Up9ldmoYqY2t9//7xYE/mn+o+5ooaDP5nqG0bgUai sHpA== X-Gm-Message-State: ALQs6tDOUwaAUS9ifjCwu/tZr9MIsc1uyTaFyaX/pVQOE7IIefaoTdew beAsJh4i/EMIw2e1Z+tPcG7xeN4DboIs8nwblVo= X-Received: by 2002:a9d:3002:: with SMTP id d2-v6mr538469otc.150.1523655292603; Fri, 13 Apr 2018 14:34:52 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:9f7:0:0:0:0:0 with HTTP; Fri, 13 Apr 2018 14:34:52 -0700 (PDT) In-Reply-To: <56a8953c-d833-837c-57d5-fe758d4db02a@canonical.com> References: <56a8953c-d833-837c-57d5-fe758d4db02a@canonical.com> From: "Rafael J. Wysocki" Date: Fri, 13 Apr 2018 23:34:52 +0200 X-Google-Sender-Auth: yyNqUfw741rMPH4ZjYTTYzPtGmg Message-ID: Subject: Re: [Regression] PCI / PM: Simplify device wakeup settings code To: Joseph Salisbury Cc: "Rafael J. Wysocki" , Len Brown , Bjorn Helgaas , ACPI Devel Maling List , Linux PCI , "linux-kernel@vger.kernel.org" , 1745646@bugs.launchpad.net 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, Apr 13, 2018 at 7:56 PM, Joseph Salisbury wrote: > Hi Rafael, > > A kernel bug report was opened against Ubuntu [0]. After a kernel > bisect, it was found that reverting the following two commits resolved > this bug: > > 0ce3fcaff929 ("PCI / PM: Restore PME Enable after config space restoration") > 0847684cfc5f("PCI / PM: Simplify device wakeup settings code") > > This is a regression introduced in v4.13-rc1 and still exists in > mainline. The bug causes the battery to drain when the system is > powered down and unplugged, which does not happed prior to these two > commits. What system and what do you mean by "powered down"? How much time does it take for the battery to drain now? > The bisect actually pointed to commit de3ef1e, but reverting > these two commits fixes the issue. > > I was hoping to get your feedback, since you are the patch author. Do > you think gathering any additional data will help diagnose this issue, > or would it be best to submit a revert request? First, reverting these is not an option or you will break systems relying on them now. 4.13 is three releases back at this point. Second, your issue appears to be related to the suspend/shutdown path whereas commit 0ce3fcaff929 is mostly about resume, so presumably the change in pci_enable_wake() causes the problem to happen. Can you try to revert this one alone and see if that helps?