lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.0912070832330.3560@localhost.localdomain>
Date:	Mon, 7 Dec 2009 08:37:56 -0800 (PST)
From:	Linus Torvalds <torvalds@...ux-foundation.org>
To:	"Rafael J. Wysocki" <rjw@...k.pl>
cc:	Zhang Rui <rui.zhang@...el.com>,
	Alan Stern <stern@...land.harvard.edu>,
	LKML <linux-kernel@...r.kernel.org>,
	ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
	pm list <linux-pm@...ts.linux-foundation.org>
Subject: Re: [GIT PULL] PM updates for 2.6.33



On Mon, 7 Dec 2009, Rafael J. Wysocki wrote:
> 
> > The advantage: untouched drivers don't change ANY SEMANTICS AT ALL.
> 
> This also was true for my patchset.

That's simply not trye.

You set async_suspend on every single PCI driver. I object very heavily to 
it.

You also introduce this whole big "callback when ready", and 
"non-topoligical PM dependency chain" thing. Which I also object to.

Notice how with the simpler "lock parent" model, you _can_ actually encode 
non-topological dependencies, but you do it by simply read-locking 
whatever other independent device you want. So if an architecture has some 
system devices that have odd rules, that architecture can simply encode 
those rules in its suspend() functions.

It doesn't need to expose it to the device layer - because the device 
layer won't even care. The code will just automatically "do the right 
thing" without even having that notion of PM dependencies at any other 
level than the driver that knows about it.

No registration, no callbacks, no nothing.

> In my patchset the drivers didn't need to do all that stuff.  The only thing
> they needed, if they wanted their suspend/resume to be executed
> asynchronously, was to set the async_suspend flag.

In my patchset, the drivers don't need to either.

The _only_ thing that would do this is something like the USB layer. We're 
talking ten lines of code or so. And you get rid of all the PM 
dependencies and all the infrastructure - because the model is so simple 
that it doesn't need any.

(Well, except for the infrastructure to run things asynchronously, but 
that was kind of my point from the very beginning: we can just re-use all 
that existing async infrastructure. We already have that).

		Linus
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ