linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* apm_emulation regression
@ 2007-12-12  2:45 Benjamin Herrenschmidt
  2007-12-12 18:03 ` Johannes Berg
  0 siblings, 1 reply; 9+ messages in thread
From: Benjamin Herrenschmidt @ 2007-12-12  2:45 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linuxppc-dev list, ralf

I only just noticed a huge regression that was introduced when we moved
PowerPC to the generic APM emulation code instead of our own. I'm in
large part to blame since I acked the patch...

Basically, what we lost is the mechanism for notifying user applications
and waiting for their ACK before proceeding to system suspend. The new
generic code will still do that ... only when the actual suspend request
initiates from an APM suspend ioctl.

For any other suspend (via our private PMU ioctl or via the sysfs
interface), userspace will -not- be notified.

That basically means X will break. That's why X broke on the latest
ubuntu until I whacked some new scripts in them to force console
switching, among other things. Possibly other apps that relied
on /dev/apm_bios to be notified of system suspend/resume broke as well.

Now the question is that is it still work trying to fix it ? That would
probably require APM emulation hooking at a fairly high level into the
generic PM code to trigger the signaling & waiting of processes before
freeze & device suspend among others...

Cheers,
Ben.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-12-15  0:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-12  2:45 apm_emulation regression Benjamin Herrenschmidt
2007-12-12 18:03 ` Johannes Berg
2007-12-13 11:40   ` Johannes Berg
2007-12-13 20:31     ` Benjamin Herrenschmidt
2007-12-14  0:10   ` Rafael J. Wysocki
2007-12-14  0:04     ` Benjamin Herrenschmidt
2007-12-14  0:05       ` Benjamin Herrenschmidt
2007-12-14 12:18         ` Johannes Berg
2007-12-15  0:20           ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).