Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4009978pxb; Tue, 17 Nov 2020 09:03:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzfjZz0e9FKZl3vjJyluPuoB+0cli+tNAQT6h6wSthFhCSvDkkyErvMYjRJFpo7oROWZ6zz X-Received: by 2002:a17:906:b104:: with SMTP id u4mr20013493ejy.121.1605632580584; Tue, 17 Nov 2020 09:03:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605632580; cv=none; d=google.com; s=arc-20160816; b=NDX8XCJnPu7lpllfxypMNHJT2z3SLisXx0TFXsCA+2ERq9k2qgCm2Wv4h+TrYCrHUP AAg40LSZx4ojN5wqw61w8RHTEk9E1CW36dpbPgOiLUYzjXLTBBa2S6UhRZy3+CWGVbfU XE/ygqGmZho0oPgluwFWi6Fmq+L35mHo9QFJ3Bynk9Rtq7OD1GaSs9JLzlBpslz/tl9h 5QGx9mLrqxuiY4U482g20q7gCsy+mfKw4vXdKPqn8BJoDPY6n29kUWb4zDkAT0QroxZC ASD5LEyVWCWaaenrU/VfdzSar57dJC1fdHbTJYbLC233wDrd/JkAs02z5T7oOxwo1kmj X80Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=7NLRFj8nHCygasEBHceubBbH3HeMeHr99Ml1bGtCW9o=; b=tWfsCK3pVhY0KOg9s9exvfvZaUNTfIOJO8JXcqodeu/5nCXn2nYkg4dFvcscI8FXNz ndm75eT7JvudRbnr606hNhNfCd3P+aU/kQLQQOgXibvJJ13JrYxUnwx32meqCWQlJDt2 Pft8blg4SaeWMR5UD163RWBbvf058SbY27MDZSLl3mr/gpqJZ4l9t77t9rKYrRuJrP0G A4tt1rHu9qXy8bahGuzn9JSC4YgD8axDLUF+8Ksfj+RG86z2SswckGobK30+/f/7+/MN sEY9UfjmzEFiTLrfVuKh0nkye0uMCq9SZqK5OdTzZ2j2JKno8C7cAZy6qyXZxGAojbWu cgww== 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=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.09.02.31; Tue, 17 Nov 2020 09:03:00 -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; 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 S1728200AbgKQQ5k (ORCPT + 99 others); Tue, 17 Nov 2020 11:57:40 -0500 Received: from mail-ot1-f49.google.com ([209.85.210.49]:35263 "EHLO mail-ot1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbgKQQ5j (ORCPT ); Tue, 17 Nov 2020 11:57:39 -0500 Received: by mail-ot1-f49.google.com with SMTP id n11so20124324ota.2; Tue, 17 Nov 2020 08:57:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7NLRFj8nHCygasEBHceubBbH3HeMeHr99Ml1bGtCW9o=; b=N5aNtxPcylGbM7jh2INd3qvaC2FQvMEQJUNcoC2Isb+oovuuhULsTKJfVzNgjVu1oa //h7p7GWTg9wbRmD8/8aCuycjv5fxjsnGkD2s3j2TyjRVLII3ZN0XKFbW8VHUznWgmT2 af1Q/U5SLoPQug9airMTihl8382tk5lfCGm9uiH60lDHgiWHA7AaY251NTHCBpw6K9Ul /KGo3Iqz3i8hYy0VW64EGqmY5MMDYFUdRXllWQiIC/pI40bARewAIqGe5dgoaDljvS1/ +D+GNtn8hrpRmcfLy6fVcwVn4BrF65wyUVyOvIlC5zuCCllheJyqhWXl2QTzEOZCsY56 BGbg== X-Gm-Message-State: AOAM531yvQqzPpk50ipQrIXigzHWbqhnqZX3g2YSSSL2MSxRE+xkts1V p93PizmXCLRHpdeJ5u5ZTD0eERFf26GXHs7cvdo= X-Received: by 2002:a9d:16f:: with SMTP id 102mr3851962otu.206.1605632258611; Tue, 17 Nov 2020 08:57:38 -0800 (PST) MIME-Version: 1.0 References: <79940973-b631-90f9-dbc4-9579c6000816@gmail.com> <20201117163817.GA1397220@bjorn-Precision-5520> In-Reply-To: <20201117163817.GA1397220@bjorn-Precision-5520> From: "Rafael J. Wysocki" Date: Tue, 17 Nov 2020 17:57:27 +0100 Message-ID: Subject: Re: Time to re-enable Runtime PM per default for PCI devcies? To: Bjorn Helgaas Cc: Heiner Kallweit , "Rafael J. Wysocki" , Bjorn Helgaas , Mika Westerberg , Kai Heng Feng , Lukas Wunner , "linux-pci@vger.kernel.org" , Linux PM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 17, 2020 at 5:38 PM Bjorn Helgaas wrote: > > [+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. Even if it did that, it wouldn't have been a full list almost for sure. We had received multiple problem reports related to that, most likely because the ACPI PM in BIOSes at that time was tailored for system-wide PM transitions only. > > 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. The systems that had those problems 10 years ago would still have them, but I expect there to be more systems where runtime PM can be enabled by default for PCI devices without issues.