Received: by 10.192.165.156 with SMTP id m28csp804457imm; Mon, 16 Apr 2018 08:59:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/BV3I0n4KiKSNlyhevFODAw2LyY76M9mrRbmZ/nOL3DE4RMJxudJBvGz9DQKpVecrIe0tp X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr7742372plu.22.1523894391702; Mon, 16 Apr 2018 08:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523894391; cv=none; d=google.com; s=arc-20160816; b=ZPVvMNGkN0kTvs8o/xP/TZhYz8ySlAM0XXmkU3rTIpJkcqIPnwjrHOG/2MoAQm/cV4 Ok53fHG/+6k7V1EwiCJmaqVzCSzz8mYUZPPps0KgIK1fp9R0mv0Y5DEi6Rcufb7IMTQt 6TDsC5Qwzxp6R9xmjjDtur0zY/mc5K2xpp51mr8dGtncxmD6CCl9zRaEM43rwKL0LcKq wNRwDkP7XnteYP68mYAufBR2LsZT4Lb7EKba3xsanZHo2wC+v+xK7LY2ZUpC/Y9KnoSJ 3SZhRrzdG4+XED7TY/XEtcv7xDxJzvYUlnEFszrC/tgrKLRDk99Ag6OaVRZc4va5nCKn Se/g== 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=c4afTWOvU4G/Ig+R+hrSsdL+TBuyPVfIRC/O/vwWWaA=; b=lEeWkEalAUHpn7Vfhwr8+PUE9+XQdqsXNLoY+5r1UU20UO3gfHkmoVynizG8T1H1E8 jXYn4ypg366D3BNtBThk50XIQ3L4n0CeI/vD4Dko1ulA2DtVv0NkJC5MzaTMualBl634 9nMA295Cd21NQac8vCFiNJqdrpjACj/p4EU6acwmeXjjBS+CHiOrtaAG4DkuYQVhv6iX m2d2g0QIPWEcVnSEqlK3kmn0FuKPS3dWGJ93qr16O1W1Mf9fGF5a5f3GBAe3+79yvOu1 9jAvylCoX+wjAJ4hY9TFEAMNvbhCDrvhfF9mldMXTl6NihHYmUrILx626J4yL/HswRws pl6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Qt/z0ZJ4; 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 d17si9507328pgo.310.2018.04.16.08.59.38; Mon, 16 Apr 2018 08:59:51 -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=Qt/z0ZJ4; 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 S1751793AbeDPP6P (ORCPT + 99 others); Mon, 16 Apr 2018 11:58:15 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:39420 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbeDPP6L (ORCPT ); Mon, 16 Apr 2018 11:58:11 -0400 Received: by mail-oi0-f65.google.com with SMTP id n65-v6so1780436oig.6; Mon, 16 Apr 2018 08:58:11 -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=c4afTWOvU4G/Ig+R+hrSsdL+TBuyPVfIRC/O/vwWWaA=; b=Qt/z0ZJ4mLxWtkW8tOrvKufpzH6Rslou6eI/xjNEAWKmcTU1vq7wDZYyxqsSdPR28v VM3nuoReme7F/jHJaXny//FtlhQEgqAcUost7ZFM6SO5IPXGNz8LShV8+Ja9XUE2lPcM ARqF+pmqxBDpH/K7P2anEgyiw01rFRgHdUZAKiHSDzQOvy16FPP6UnSuM+3UmweXbARF QZ2TC5L/zw2s5YDUuQHXzepAiZSbcFxZlAoQhNEr9GKoQtzRt77G7EfHd3ZgEirXUBQI 9w81gOEVoUXHXhGCjfeRU3pFoG3q/YMUOgCr+Cu2I89nTQZeab5RpSfmZjQqt4jtJkDs 6Xkg== 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=c4afTWOvU4G/Ig+R+hrSsdL+TBuyPVfIRC/O/vwWWaA=; b=HHYzBrYY+C/jqqZb8yqgaYewJRCINa2B3/ZjZyk1ikSUXg8o61nzln+hofwz9J7+lV EDLXPwHW15lawxMReqGgNtga2zI2RWiEiHd3Rmzpyr036tZCs9RexP0flOX1FZChngAc kaZJLzBdRvusOobxr1PakZmSHFoFZtNLxw4uAZB7xBbWg2ecYD2WbqM+fOERPGE8LwXZ OJ1niEjgQYTIKnDhwBx1W45dZ9r4fi2gCGw8HxN6v9feFm5U0x0QwPYLgK3sfcZvFWqx KNQRyzUxY7ZH3uG9mHZpLMNHTftf4NpNkyARgxom6iFYD8hNqNUc6rkfX0y6WOMuECoE Eoiw== X-Gm-Message-State: ALQs6tDCfcVJwLVaxRBbesva0LA/FhtDhdkqh4ctJx/AiohubwDJhib4 kR7SGFtEwip/o/3rFFmkmZ9hnPsIEqWBTi3dwYQ= X-Received: by 2002:aca:913:: with SMTP id 19-v6mr14365561oij.358.1523894291170; Mon, 16 Apr 2018 08:58:11 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1467:0:0:0:0:0 with HTTP; Mon, 16 Apr 2018 08:58:10 -0700 (PDT) In-Reply-To: References: <56a8953c-d833-837c-57d5-fe758d4db02a@canonical.com> From: "Rafael J. Wysocki" Date: Mon, 16 Apr 2018 17:58:10 +0200 X-Google-Sender-Auth: -cGEJ0f0_B5sDUTXDQr-U22rh9s Message-ID: Subject: Re: [Regression] PCI / PM: Simplify device wakeup settings code To: Joseph Salisbury Cc: "Rafael J. Wysocki" , "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 Mon, Apr 16, 2018 at 5:31 PM, Joseph Salisbury wrote: > On 04/13/2018 05:34 PM, Rafael J. Wysocki wrote: >> 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? > By powered down, the bug reporter is saying physically powered off and > unplugged. The system is a HP laptop: > > dmi.chassis.vendor: HP > dmi.product.family: 103C_5335KV HP Notebook > dmi.product.name: HP Notebook > vendor_id : GenuineIntel > cpu family : 6 > > >> >>> 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? > A test kernel with commits 0ce3fcaff929 and de3ef1eb1cd0 reverted was > tested. However, the test kernel still exhibited the bug. So essentially the bisection result cannot be trusted.