Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1989256pxa; Mon, 24 Aug 2020 01:37:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUjpmohqlO17RWmogxw+7NqhetHShhE/8YhGB1BBbYLXseGKQdeeTeobXSHguzt424M7SH X-Received: by 2002:a05:6402:d07:: with SMTP id eb7mr4538376edb.160.1598258220846; Mon, 24 Aug 2020 01:37:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598258220; cv=none; d=google.com; s=arc-20160816; b=JFpQ17dRK0Z+gZBkMVzssoCLd76mV7xVC3OqJGFJMpk3bNIjq+dnBPmL4PikFjfiLp ctBm4AqJPKxHLi3wkwHnWA/uKmInn3qRR6irZPl8f2LOjTtrG3CcZhAEm20aTtPRZOub T9atM+35YlKo7Z+AkivvTuozcEivEboLXofPtlUeYXzgmaJawRD+hlAzpZeeXinC/904 ns8epUhBi+PLZOgLIMUk/pF5uti7BRXN2bZjSXv9prEnSqdjBIETuhCKEXVmcBdbVzT0 QAoU6/BrYGtTKrw1fYjEJWXPSBtIbbTzJrkM0lbwMeyff98mYKdFu7Sno4fXjI1dVHN0 FJcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=mdX/eNR0sMhBrxuFnLXAFpgHvvd0AscxfncxP1YmKFw=; b=qMizlNFC36t1UFGbV2e43u27NpwlAMkOo5qiKeGajoO7eohMjUHxnITAyo8HnhvDqJ W80TP45dyp5fdZJr483kdKlDJXFDdXFGgp3iMo3Aa2MedNQCZefAFkYEMwuEd1wHsc2V ynaO4MsThqT+QSYGh5PgnrvaEpC7IWX/+20ln6bCY0O6J3/li3WIHWepwefJcFRBbvDX 8u999ZfPEjEdc277isptncKsG/Uh2Mk81U/xE7n2T/nxAEpP3a+AokMJOozejSR52zJ5 oKfOqjQ9XCgkuBzVOeBFBUVga4IPRsOA2Lk+Y+vuIJkL+I39AlB0JG40pQSERRGzKJTV OGKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a13si6366236edv.545.2020.08.24.01.36.38; Mon, 24 Aug 2020 01:37:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728070AbgHXIfG (ORCPT + 99 others); Mon, 24 Aug 2020 04:35:06 -0400 Received: from mga01.intel.com ([192.55.52.88]:23150 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728030AbgHXIe5 (ORCPT ); Mon, 24 Aug 2020 04:34:57 -0400 IronPort-SDR: Fi8/nuCJfTynplYK4d+NpXldSoLCN/8BHO1oLEsVv+8457aWDXzQavuKZbYw3NZ6ruNuDbbw76 e5kCeSsclEFQ== X-IronPort-AV: E=McAfee;i="6000,8403,9722"; a="173902240" X-IronPort-AV: E=Sophos;i="5.76,347,1592895600"; d="scan'208";a="173902240" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2020 01:34:56 -0700 IronPort-SDR: i4VuZti8JNghZZaHsaTSIbsR6me8+5YPBVVnqF/G99dTyy2pCzsPuWAfrFUEFWAAFtEGoG+f6b 4+jynUUE52Eg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,347,1592895600"; d="scan'208";a="402248684" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.163]) by fmsmga001.fm.intel.com with SMTP; 24 Aug 2020 01:34:53 -0700 Received: by lahna (sSMTP sendmail emulation); Mon, 24 Aug 2020 11:34:52 +0300 Date: Mon, 24 Aug 2020 11:34:52 +0300 From: Mika Westerberg To: Alan Stern Cc: "Rafael J. Wysocki" , Linux PM , LKML , Linux ACPI , Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: Re: [PATCH] PM: sleep: core: Fix the handling of pending runtime resume requests Message-ID: <20200824083452.GX1375436@lahna.fi.intel.com> References: <7969920.MVx1BpXlEM@kreacher> <20200821193442.GA264863@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200821193442.GA264863@rowland.harvard.edu> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Aug 21, 2020 at 03:34:42PM -0400, Alan Stern wrote: > This means that the code could be simplified to just: > > pm_runtime_barrier(dev); > > Will this fix the reported bug? It seems likely to me that the actual > problem with the failure scenario in the patch description was that > turning on an ACPI power resource causes runtime-resume requests to be > queued for all devices sharing that resource. Wouldn't it make more > sense to resume only the device that requested it and leave the others > in runtime suspend? The problem with at least PCIe devices that share ACPI power resources is that once you turn on the power resource all the devices that shared it will go into D0uninitialized power state and that means they lose all wake configuration etc. so they need to be re-initialized by their driver before they can go back to D3(cold) in order for their wakes to still work.