Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp475095imm; Thu, 5 Jul 2018 03:43:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdv7iao2L/HyL9FRcO1HNNe5cDyZMLod3tYTa7QmGkPrWv3jtHqJJqSqRFw1XAKYdvHMVd8 X-Received: by 2002:a63:460d:: with SMTP id t13-v6mr470403pga.201.1530787401477; Thu, 05 Jul 2018 03:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530787401; cv=none; d=google.com; s=arc-20160816; b=DNJMVSNMU8mMq6sbBwYUNebxfySSCyophkg9Opnkfo4b04kh99EAynQQX9sl9ya+D9 /rOxTQUEaL1TEq8KzZrpEMqrYV0k6z1ySHf3Hg+xC/hol7eM9wOhNF3kg+/4seElDA4k XVJJneViGl1XjqQ/lP1wauXlIrU1moQgrSIIyC3ipq/+kzE62FRY1SoG7jzw4v44rfMI IEh3qhCIt7qMdB7M5qMcLCGznl3Uk7WXV4jNFpX63GnDMHJA+3ovmNDcqyg2xYBbJZ2W J54Db6SgnTa+QDS0bbvQxwawFQwXV1RuOu8pyMx86cpT6ZuOkkfbc8hNvL3adUXfm8Jy ZrPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=mqvTIYuIQw88gV2AKOp0IaHtA5KbXHgOr7PCF4sXU7U=; b=P5i7Nb/WUf4F9krz1+AbbydJLPX5Q1Zq/+Obynsyx0NlpP8KEi3KelI+08sBYMWa3S ozahqEDiAKjBp989vOMvF32r42ZIJ0ZI+0eE21Tib6aqlhNsUYhZFXG9UBVtYqcfPSk9 LlctyRqdk5XbVH4CXoiI3pDFKLBgolXORV/UrR0+mB+NHOkv9FUexj0XYIJysFuB6C2s qVQF8/794RCn4oeBTgqWLKA6mnsV60TahpDGipmGnOHK4ieJ+bGa0MwjN5itSYCNW9S8 W2SW8wyrfCYv49caI4FwWXiuF1doRLMtbfvQ5JWJnj5ArlTaeMelkEg0eiS5/XH5jNln bTSQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l68-v6si5222838pgl.84.2018.07.05.03.43.06; Thu, 05 Jul 2018 03:43:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753542AbeGEKmb (ORCPT + 99 others); Thu, 5 Jul 2018 06:42:31 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:51609 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753409AbeGEKma (ORCPT ); Thu, 5 Jul 2018 06:42:30 -0400 Received: from 79.184.254.38.ipv4.supernova.orange.pl (79.184.254.38) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id 4ed70695bf1acbd7; Thu, 5 Jul 2018 12:42:28 +0200 From: "Rafael J. Wysocki" To: Takashi Iwai Cc: "Rafael J. Wysocki" , Thomas =?ISO-8859-1?Q?H=E4nig?= , Linux PM , Linux Kernel Mailing List Subject: Re: [REGRESSION 4.17] Spurious wakeup / reboot with power button Date: Thu, 05 Jul 2018 12:41:03 +0200 Message-ID: <1999215.6UrMtQZ5Bj@aspire.rjw.lan> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, July 5, 2018 11:50:11 AM CEST Takashi Iwai wrote: > On Thu, 05 Jul 2018 11:34:59 +0200, > Rafael J. Wysocki wrote: > > > > Hi, > > > > On Thu, Jul 5, 2018 at 9:05 AM, Takashi Iwai wrote: > > > Hi, > > > > > > we've got a regression report since 4.17 about the behavior of > > > power-off with the power button. When a machine is powered off with > > > the power button on desktop, it reboots after a few seconds instead of > > > power down. > > > > > > The manual power down via "systemctl poweroff" works fine, so it's > > > possibly some spurious wakeup by the power button action, and some > > > ACPI-related change is suspected. > > > The regression still remains in 4.18-rc3. > > > > There are only a few ACPI commits directly related to power management > > between 4.16 and 4.17 and none of them looks particularly suspicious. > > OK, interesting. > > > It looks like the power button state may not be cleared sufficiently > > after it's been pressed which is now visible for some reason. > > Hmm, where can such a state remain? Since it happens after the > machine turned off, some (ACPI) wakeup bits? Basically, yes. It looks like a GPE may remain active which then triggers wakeup after shutdown. On a hunch, I'm wondering if reverting commit 18996f2db918 ACPICA: Events: Stop unconditionally clearing ACPI IRQs during suspend/resume (may not revert clearly, though) makes any difference. Thanks, Rafael