[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.1211112131500.16611-100000@netrider.rowland.org>
Date: Sun, 11 Nov 2012 21:36:04 -0500 (EST)
From: Alan Stern <stern@...land.harvard.edu>
To: Huang Ying <ying.huang@...el.com>
cc: "Rafael J. Wysocki" <rjw@...k.pl>, <linux-kernel@...r.kernel.org>,
<linux-pm@...r.kernel.org>
Subject: Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden
On Mon, 12 Nov 2012, Huang Ying wrote:
> > The first question: How should the PCI subsystem prevent the parents of
> > driverless VGA devices from being runtime suspended while userspace is
> > accessing them?
>
> I think Rafael's patch is good for that.
But his patch isn't needed if we make these other changes.
> > The second question: Should the PM core allow devices that are disabled
> > for runtime PM to be in the SUSPENDED state when
> > dev->power.runtime_auto is clear?
>
> I think that should not be allowed.
Disallowing it is okay with me too. But it will require several
changes to the code, more than what your patch did.
> > Assuming we don't want to allow this, there's a third question: Should
> > pm_runtime_allow call pm_runtime_set_suspended if the device is
> > disabled?
>
> Is it absolute necessary to call pm_runtime_set_suspended? If the
> device is disabled, the transition to SUSPENDED state will not be
> triggered even if the device is ACTIVE.
It's not absolutely necessary to do this, but we ought to because it
will allow the device's parent to be suspended. If we leave the device
in the ACTIVE state then the parent can't be suspended, even when the
device is disabled.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists