Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3993408pxb; Tue, 17 Nov 2020 08:40:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJypyMlQoWb05x/PUrbRAah6C2UxgFEFqav0rFwHSLFDsiXZ4W+P8sgHKCAXVuAHd9YNZbe3 X-Received: by 2002:a17:907:20c3:: with SMTP id qq3mr19387499ejb.274.1605631225247; Tue, 17 Nov 2020 08:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605631225; cv=none; d=google.com; s=arc-20160816; b=DH3TOqMX5epF2+eMaXAvhdU51znajBILaZlBtk3B9i8yZKiTRk6kr+LUmGNO3GXjDn kqIIrznDTt2PoP6O7op7D+4U/B/2lim9FBnwooUB83lVc4IpcjlP+DZgpDv8tv07xutA VkGBTdBj98i/v8rSQ6oAIHYRvzikcIvDw53vENe1JQtmo6Tf1m6fNo6P7+a7IVR8Zz6p 6PI+qgMpuy2nAmWLPWeh807RHh9JuExrPIvjDCtT2H+2D+q8d66hKF1joxEvzlU7LAYC v2qjWo041Luy4mGabSu6mylUXxssClh+Itf4WXw7QHr4SxzLdAN75d9er5Mm+aabpfOt MEjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=fm/RIpXP/K18b3h7NlkTETM/F+/C/kFOvO7xGJ2B7iM=; b=JdfVGqBmiUB0mfS4S7/ReP4mYX7nJdyUuHJwj5FPGC9iD09m2Jvmb33KLDCp7YJdmW YCsfAAyEEM2Fyk5HQrCXqAmdp5IFdpZJnNOU5IBvSowmc5Gqgw74oe94YLOlJDvTVkPX SdhByS7D0wv0a/Ehgm0vCM9/x5YcZcKtRu2hFQd+TsLZXvUREu6iod3D8M6fjwarU0rG kOmOpZmL4bGrROXNi7C2RmkXQgXoPEkZpz+jXX9stYl1mJMST9E1QkxSqB3v+mZLCupE ptok6KmugSd7OSQn/Hf9sL4J8BRLnxTmGi4MZADwfhp298KbkhLQhHS7kvc9YLlQL9GZ 2o8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FJgl0tcR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si3513257ejy.381.2020.11.17.08.39.58; Tue, 17 Nov 2020 08:40:25 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=FJgl0tcR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727402AbgKQQiU (ORCPT + 99 others); Tue, 17 Nov 2020 11:38:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:60164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727010AbgKQQiT (ORCPT ); Tue, 17 Nov 2020 11:38:19 -0500 Received: from localhost (189.sub-72-105-114.myvzw.com [72.105.114.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BA0A2217A0; Tue, 17 Nov 2020 16:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605631099; bh=2Bs/+9brtdJ8Qim1oOERf9SEfxCTiMSLLDSQGAmSgVw=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=FJgl0tcRT6TKxDjmnER5PUVWbYUBtf3WNlJCooBmiNQC7EPHXuFU+gsfAWh5vcer9 SvDxb90pgHzn/bVoIC+qV0f2WK9Z/lkKZOHEIA8qp3ySR7OJ8+VEgM0no0+sZ/zv5o 9q6GVtsUygiaMPLli/873XLwhSKeFJZF5lX+eQ5c= Date: Tue, 17 Nov 2020 10:38:17 -0600 From: Bjorn Helgaas To: Heiner Kallweit , "Rafael J. Wysocki" Cc: Bjorn Helgaas , Mika Westerberg , Kai Heng Feng , Lukas Wunner , "linux-pci@vger.kernel.org" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Time to re-enable Runtime PM per default for PCI devcies? Message-ID: <20201117163817.GA1397220@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79940973-b631-90f9-dbc4-9579c6000816@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+to Rafael, author of the commit you mentioned, +cc Mika, Kai Heng, Lukas, linux-pm, linux-kernel] On Tue, Nov 17, 2020 at 04:56:09PM +0100, Heiner Kallweit wrote: > More than 10 yrs ago Runtime PM was disabled per default by bb910a7040 > ("PCI/PM Runtime: Make runtime PM of PCI devices inactive by default"). > > Reason given: "avoid breakage on systems where ACPI-based wake-up is > known to fail for some devices" > Unfortunately the commit message doesn't mention any affected devices > or systems. > > With Runtime PM disabled e.g. the PHY on network devices may remain > powered up even with no cable plugged in, affecting battery lifetime > on mobile devices. Currently we have to rely on the respective distro > or user to enable Runtime PM via sysfs (echo auto > power/control). > Some devices work around this restriction by calling pm_runtime_allow > in their probe routine, even though that's not recommended by > https://www.kernel.org/doc/Documentation/power/pci.txt > > Disabling Runtime PM per default seems to be a big hammer, a quirk > for affected devices / systems may had been better. And we still > have the option to disable Runtime PM for selected devices via sysfs. > > So, to cut a long story short: Wouldn't it be time to remove this > restriction? I don't know the history of this, but maybe Rafael or the others can shed some light on it.