Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1669600ybv; Fri, 21 Feb 2020 01:21:31 -0800 (PST) X-Google-Smtp-Source: APXvYqyf/ftbcRh75Unho9l0YI6iKVHXGXBR42PFP1SKjsGDEdfoTPCSL6Kg//SMUfo0v/AIvV6H X-Received: by 2002:a9d:6184:: with SMTP id g4mr25786243otk.223.1582276891143; Fri, 21 Feb 2020 01:21:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582276891; cv=none; d=google.com; s=arc-20160816; b=eKdYPSdCsS9iELIapPdUM7NUuK7m15TKxHsc0r70RJimvVWwi5av+7yQeG2k9fVwvr JHdIu1EeQnWXYowxrUx8k6G+j0gX/GO4oUZsiL8mWDkd4PuDGhz8swd8dN2FkkN5D5GE 2YUW2YyhbmQJeDkYhDQnJbDSm0EZynnYrgr+0iUo1QPVhecdgogGmmUyLD/0mA3fguYv R6pZ1vZz1L60M3WHZFGylfIuHhHIkUC3ZFDH1YxKckd/5ivSgljIMyWgr529Ryfg+BYv CScbBQi+KcoeadfC+9CNOeblCD2G99tv6+j+q9ITsNlnqYKfe6VUht7Xw044c8OerHRE infQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version; bh=YIYq9fPwX0rHueDvT3Z3ZOkJ/NkXe3NEiDi0RrINEmc=; b=KTnwyOt4xrTVoSzp8fKuoinAmK8w6ZAbRuqfhvZt0r8WS8rxl8EDbbFZUXViLAAq9j HuhVC92ljlW1kb3/AT13P8uBYURx5Rms+IceBO+oeueVOA3rzSyY50tzSZx/Y0uKtix6 eBQUYRaijelOodks31IXSnrS7k05GLBjyCHFNNfIuVojjmAA0y85hxF3MqPViZ1L/Ltd pB+Uh4p0YBsWGGQGQ8SeLU9HALxkZ69XZky6qRfrb5g/yhGy1rKiZ9RK9+IElFd62wXY 1U4LhGRDDik8vxzWpdtTwW/V+UHU0Jcyy/xZYyt4TaMt2fhx0KhqQ8Fa14cNe+wqSvUV roHg== 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 22si467402oin.34.2020.02.21.01.21.18; Fri, 21 Feb 2020 01:21:31 -0800 (PST) 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 S1727733AbgBUJUB convert rfc822-to-8bit (ORCPT + 99 others); Fri, 21 Feb 2020 04:20:01 -0500 Received: from mail.fireflyinternet.com ([77.68.26.236]:61353 "EHLO fireflyinternet.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726244AbgBUJUA (ORCPT ); Fri, 21 Feb 2020 04:20:00 -0500 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 20298788-1500050 for multiple; Fri, 21 Feb 2020 09:19:51 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: "Rafael J. Wysocki" From: Chris Wilson In-Reply-To: <4974198.mf5Me8BlfX@kreacher> Cc: linux-kernel@vger.kernel.org, Linus Torvalds , "Rafael J. Wysocki" , Linux PM , Linux ACPI References: <158197497594.2449.9692451182044632969@skylake-alporthouse-com> <10791544.HYfhKnFLvn@kreacher> <4974198.mf5Me8BlfX@kreacher> Message-ID: <158227678951.3099.15076882205129643027@skylake-alporthouse-com> User-Agent: alot/0.6 Subject: Re: Linux 5.6-rc2 Date: Fri, 21 Feb 2020 09:19:49 +0000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Rafael J. Wysocki (2020-02-21 00:46:18) > On Thursday, February 20, 2020 11:41:22 PM CET Rafael J. Wysocki wrote: > > On Monday, February 17, 2020 10:29:35 PM CET Chris Wilson wrote: > > > Quoting Linus Torvalds (2020-02-17 21:20:27) > > > > On Mon, Feb 17, 2020 at 8:22 AM Chris Wilson wrote: > > > > > > > > > > Quoting Linus Torvalds (2020-02-16 21:32:32) > > > > > > Rafael J. Wysocki (4): > > > > > > ACPI: EC: Fix flushing of pending work > > > > > > ACPI: PM: s2idle: Avoid possible race related to the EC GPE > > > > > > ACPICA: Introduce acpi_any_gpe_status_set() > > > > > > ACPI: PM: s2idle: Prevent spurious SCIs from waking up the system > > > > > > > > > > Our S0 testing broke on all platforms, so we've reverted > > > > > e3728b50cd9b ("ACPI: PM: s2idle: Avoid possible race related to the EC GPE") > > > > > fdde0ff8590b ("ACPI: PM: s2idle: Prevent spurious SCIs from waking up the system") > > > > > > > > > > There wasn't much in the logs, for example, > > > > > https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5445/fi-kbl-7500u/igt@gem_exec_suspend@basic-s0.html > > > > > > > > So the machine suspends, but never comes back? > > > > > > > > Do you need to revert both for it to work for you? Or is the revert of > > > > fdde0ff8590b just to avoid the conflict? > > > > > > fdde0ff85 was just to avoid conflicts. > > > > > > > I'm assuming you bisected this, and the bisect indicated e3728b50cd9b, > > > > and then to revert it you reverted the other commit too.. > > > > > > Lucky guess based on diff rc1..rc2. Bisect was going to be painful, but > > > could be done if this is not enough clue for Rafael. > > > > Sorry for the delayed response, was away. > > > > I'm guessing that you are using rtcwake for wakeup, in which case reverting > > fdde0ff85 alone should unbreak it. > > > > Can you please double check that? > > And below is a patch that should fix it if I'm not mistaken (verified on my > system where I was able to reproduce the issue), so it would suffice to test > this one on top of the -rc2. Correct on both accounts. Reverting fdde0ff85 alone was enough, and replacing the reverts with the suggested patch works. > --- > From: Rafael J. Wysocki > Subject: [PATCH] ACPI: PM: s2idle: Check fixed wakeup events in acpi_s2idle_wake() > > Commit fdde0ff8590b ("ACPI: PM: s2idle: Prevent spurious SCIs from > waking up the system") overlooked the fact that fixed events can wake > up the system too and broke RTC wakeup from suspend-to-idle as a > result. > > Fix this issue by checking the fixed events in acpi_s2idle_wake() in > addition to checking wakeup GPEs and break out of the suspend-to-idle > loop if the status bits of any enabled fixed events are set then. > > Fixes: fdde0ff8590b ("ACPI: PM: s2idle: Prevent spurious SCIs from waking up the system") > Reported-by: Chris Wilson > Cc: 5.4+ # 5.4+ > Signed-off-by: Rafael J. Wysocki Tested-by: Chris Wilson -Chris