Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753435AbdFTAHQ (ORCPT ); Mon, 19 Jun 2017 20:07:16 -0400 Received: from mail-io0-f179.google.com ([209.85.223.179]:35266 "EHLO mail-io0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753180AbdFTAHN (ORCPT ); Mon, 19 Jun 2017 20:07:13 -0400 MIME-Version: 1.0 In-Reply-To: <2026371.DVJN39QYJi@aspire.rjw.lan> References: <1979543.KIEJ8uyRaT@aspire.rjw.lan> <3454366.uzaJljlWGm@aspire.rjw.lan> <3689795.xuIczRHZsl@aspire.rjw.lan> <2026371.DVJN39QYJi@aspire.rjw.lan> From: Linus Torvalds Date: Tue, 20 Jun 2017 08:07:11 +0800 X-Google-Sender-Auth: XLktb-qiApKqLtHMlBfHjfGR6Rk Message-ID: Subject: Re: [PATCH v2 3/3] ACPI / sleep: EC-based wakeup from suspend-to-idle on recent Dell systems To: "Rafael J. Wysocki" Cc: Linux PM , Linux ACPI , Andy Shevchenko , Darren Hart , LKML , Srinivas Pandruvada , Mika Westerberg , Mario Limonciello , Tom Lanyon , =?UTF-8?B?SsOpcsO0bWUgZGUgQnJldGFnbmU=?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 706 Lines: 17 On Tue, Jun 20, 2017 at 5:53 AM, Rafael J. Wysocki wrote: > > -> v2: Added acpi_sleep=no_ec_wakeup to prevent EC events from waking up > the system from s2idle on systems where they do that by default. This seems a big hacky. Is there no way to simply make acpi_ec_suspend() smarter while going to sleep? Instead of just unconditionally disabling every EC GPE, can we see that "this gpe is the power botton" somehow? Disabling the power button event sounds fundamentally broken, and it sounds like Windows doesn't do that. I doubt Windows has some hacky whitelist. So I'd rather fix a deeper issue than have these kinds of hacks, if at all possible. Linus