[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACVXFVNXyzzJw7UK+OFuDe23voQvyywoP9AvUsV=iPDFPO4fPw@mail.gmail.com>
Date: Thu, 13 Oct 2011 22:18:07 +0800
From: Ming Lei <tom.leiming@...il.com>
To: Grant Likely <grant.likely@...retlab.ca>
Cc: Andrei Warkentin <awarkentin@...are.com>, Greg KH <greg@...ah.com>,
Dilan Lee <dilee@...dia.com>,
"G, Manjunath Kondaiah" <manjugk@...com>,
Mark Brown <broonie@...nsource.wolfsonmicro.com>,
linux-mmc@...r.kernel.org, linux-kernel@...r.kernel.org,
Josh Triplett <josh@...htriplett.org>, Manjunath@...per.es,
linux-omap@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Linux PM List <linux-pm@...r.kernel.org>,
"Rafael J. Wysocki" <rjw@...k.pl>
Subject: Re: [PATCH 2/5] drivercore: Add driver probe deferral mechanism
CC Rafael and linux-pm
On Thu, Oct 13, 2011 at 12:09 PM, Grant Likely
<grant.likely@...retlab.ca> wrote:
> On Tue, Oct 11, 2011 at 08:29:18PM +0800, Ming Lei wrote:
>> On Tue, Oct 11, 2011 at 1:37 AM, Andrei Warkentin <awarkentin@...are.com> wrote:
>> > Hi,
>> >
>> > ----- Original Message -----
>> >> From: "Greg KH" <greg@...ah.com>
>> >> To: "Josh Triplett" <josh@...htriplett.org>
>> >> Cc: "G, Manjunath Kondaiah" <manjugk@...com>, linux-arm-kernel@...ts.infradead.org, "Grant Likely"
>> >> <grant.likely@...retlab.ca>, linux-omap@...r.kernel.org, linux-mmc@...r.kernel.org, linux-kernel@...r.kernel.org,
>> >> "Dilan Lee" <dilee@...dia.com>, "Mark Brown" <broonie@...nsource.wolfsonmicro.com>, Manjunath@...per.es
>> >> Sent: Saturday, October 8, 2011 11:55:02 AM
>> >> Subject: Re: [PATCH 2/5] drivercore: Add driver probe deferral mechanism
>> >>
>> >
>> > I'm a bit of a fly on the wall here, but I'm curious how this impacts suspend/resume.
>> > device_initialize->device_pm_init are called from device_register, so certainly this
>> > patch doesn't also ensure that the PM ordering matches probe ordering, which is bound
>> > to break suspend, right? Was this ever tested with the OMAP target? Shouldn't the
>>
>> Inside device_add(), device_pm_add is called before bus_probe_device,
>> so the patch can't change the device order in pm list, and just change
>> the driver probe order.
>
> That's the way it works now, but can it be reworked? It would be
IMO, it depends on what shape you plan to rework. Currently, the
deferred probe may found a resource dependency, but I am not sure
that pm dependency is same with the resource dependency found
during probe.
> possible to adjust the list order after successful probe. However,
> I'm not clear on the ordering rules for the dpm_list. Right now it is
> explicitly ordered to have parents before children, but as already
> expressed, that doesn't accurately represent ordering constraints for
> multiple device dependancies.
Maybe we should understand the correct model of the ordering constraints
for the multiple device dependancies first, could you give a description or
some examples about it?
>
> So, reordering the list would probably require maintaining the
> existing parent-child ordering constraint, but to also shift
> devices (and any possible children?) to be after drivers that are
> already probed. That alone will be difficult to implement and get
> right, but maybe the constraints can be simplified. It needs some
> further thought.
>
> g.
>
>
thanks,
--
Ming Lei
--
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