Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp453292ybi; Fri, 26 Jul 2019 12:36:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzFPChyDvyVSsNJR7gSAVDGReZzpMJdF8Bn4Ksy+nqeSKJNhKW/Q9qP5MHzAlKg/QkeblS X-Received: by 2002:a17:902:8546:: with SMTP id d6mr95683308plo.207.1564169794574; Fri, 26 Jul 2019 12:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564169794; cv=none; d=google.com; s=arc-20160816; b=NGURUUGxoEcRZeybTPStahAMxSWqr8IWiWFhzJcpC/fJ3Ftp5MuighIz34oG7jEYWz eWffvbC6hz9OELECLaMdMh74LEHpL2wVhjW0pc0GevYHvXI+D1kGqQ57pU1GhDm/tELd M2kL8pEu2B8/rfVnMff2BTGG0aWMGFapELknMDQOosmAG7aaHwzp8m5zzRbEWwiaQUO5 936PThAFSG5zVpIdAHSHVGMdJc0/+LpGuivGY5piVI0ZVeG0ZCX+l6gZ6PkT10Yk7yFi gW7AdNq9NlRza2Uph+A5MtUKvnSvL90SZc587Xs3XK+QP/PT1EHhGosE8z6cyeHyJ23b KA8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=t7IYs/NQ9idju6x012EsqOs3ezWT8dczzM8hVYbeoKM=; b=wumA7PHoOdlgWji874Dd5VovzaXKNMZGrTVgenOKFemXMRF1JC15oNd44MyfJlc15M uQ/1wsjbJl7ZFKijDWWuo34SgFFC1aLGdCEO+64nRYHQ7LpRcoojzs0CRrJF/UEQ5Hnq AsR0ZbWVNgS6ZaVdyS+iQSdR9XFkbZ9oBI1PAuiDobqRTuvtmC4el1mFvrk56nk17/SN b9FELv6Rz5cNOlqyPGTP90uWC5f76IPayeVA+sHxE0svQm8DQTjCfx5fBq20MQ6tZpD3 xkoAyTL0WTfqgh1sqrpT+/qFjt+rrE3eC0Y/XYEFK/o2c0BJPcdyitVunKZCIKOziqEE SY6g== 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 m143si21308982pfd.224.2019.07.26.12.36.19; Fri, 26 Jul 2019 12:36:34 -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 S1728494AbfGZR5N (ORCPT + 99 others); Fri, 26 Jul 2019 13:57:13 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:38160 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727516AbfGZR5M (ORCPT ); Fri, 26 Jul 2019 13:57:12 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id B0A7980240; Fri, 26 Jul 2019 19:56:56 +0200 (CEST) Date: Fri, 26 Jul 2019 19:57:06 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Furquan Shaikh , Mika Westerberg , "Rafael J. Wysocki" , Sasha Levin Subject: Re: [PATCH 4.19 085/271] ACPICA: Clear status of GPEs on first direct enable Message-ID: <20190726175706.GB5945@xo-6d-61-c0.localdomain> References: <20190724191655.268628197@linuxfoundation.org> <20190724191702.469790760@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190724191702.469790760@linuxfoundation.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2019-07-24 21:19:14, Greg Kroah-Hartman wrote: > [ Upstream commit 44758bafa53602f2581a6857bb20b55d4d8ad5b2 ] > > ACPI GPEs (other than the EC one) can be enabled in two situations. > First, the GPEs with existing _Lxx and _Exx methods are enabled > implicitly by ACPICA during system initialization. Second, the > GPEs without these methods (like GPEs listed by _PRW objects for > wakeup devices) need to be enabled directly by the code that is > going to use them (e.g. ACPI power management or device drivers). > > In the former case, if the status of a given GPE is set to start > with, its handler method (either _Lxx or _Exx) needs to be invoked > to take care of the events (possibly) signaled before the GPE was > enabled. In the latter case, however, the first caller of > acpi_enable_gpe() for a given GPE should not be expected to care > about any events that might be signaled through it earlier. In > that case, it is better to clear the status of the GPE before > enabling it, to prevent stale events from triggering unwanted > actions (like spurious system resume, for example). Given the complexity of ACPI and number of implementations, I don't think this is safe for stable. Notebooks are not part of automated test farms, so it did not get nearly enough testing... Pavel