* Fwd: [Swsusp-devel] Kernel 2.6 pm_send_all() issues.
@ 2004-02-10 15:43 Michael Frank
2004-02-11 5:23 ` Benjamin Herrenschmidt
2004-02-11 6:46 ` Stephen Hemminger
0 siblings, 2 replies; 4+ messages in thread
From: Michael Frank @ 2004-02-10 15:43 UTC (permalink / raw)
To: linux-kernel; +Cc: Wolfgang Glas, swsusp-devel
This question is probably better suited for LKML.
---------- Forwarded Message ----------
Subject: [Swsusp-devel] Kernel 2.6 pm_send_all() issues.
Date: Tuesday 10 February 2004 04:06
From: Wolfgang Glas <wolfgang.glas@ev-i.at>
To: swsusp-devel@lists.sourceforge.net
Coming back to an earlier post, which states, that NVidia suspend/resume under
2.6.x could be resurrected, if drivers_suspend() and drivers_resume() in
swsusp.c are tuned in a way, that pm_send_all() is called, I want to direct
the following question to more eligible persons in this list:
I inspected NVidia's driver and I found out, that it's implemented as a
character device and hence does not implement the suspend/resume kernel
driver interface, which has been introduced in linux-2.6. But nevertheless
this driver has the ability to register its own power management handler
through pm_register(), an interface already present in linux-2.4 and still
used in some 20 drivers present in the linux-2.6.1 code base, most notable
some audio driver and some irda drivers.
Diving further into the code, I recognized, that the kernel function
ppm_send_all(), which calls all handlers registered through pm_register() is
never called inside of swsusp2.c
So, what I want to ask is, whether the pm_register/pm_send/pm_send_all
interface is simply deprecated and the NVidia driver (and other drivers,
which use pm_register) should be reeingineered in order to use the
resume/suspend interface of linux-2.6. Or should we try to modify swsusp2.c
in a way, that it additionally calls pm_send_all for these drivers?
TIA,
Wolfgang
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
swsusp-devel mailing list
swsusp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swsusp-devel
-------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Fwd: [Swsusp-devel] Kernel 2.6 pm_send_all() issues.
2004-02-10 15:43 Fwd: [Swsusp-devel] Kernel 2.6 pm_send_all() issues Michael Frank
@ 2004-02-11 5:23 ` Benjamin Herrenschmidt
2004-02-11 6:46 ` Stephen Hemminger
1 sibling, 0 replies; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2004-02-11 5:23 UTC (permalink / raw)
To: Michael Frank; +Cc: Linux Kernel list, Wolfgang Glas, swsusp-devel
On Wed, 2004-02-11 at 02:43, Michael Frank wrote:
> This question is probably better suited for LKML.
Get nVidia to fix their drivers. pm_send_all() stuff is deprecated
and isn't called on purpose. Some of the handlers for these old-style
calls were doing weird stuff I'd rather not do again ;)
Ben.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fwd: [Swsusp-devel] Kernel 2.6 pm_send_all() issues.
2004-02-10 15:43 Fwd: [Swsusp-devel] Kernel 2.6 pm_send_all() issues Michael Frank
2004-02-11 5:23 ` Benjamin Herrenschmidt
@ 2004-02-11 6:46 ` Stephen Hemminger
2004-02-12 18:49 ` Nils Rennebarth
1 sibling, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2004-02-11 6:46 UTC (permalink / raw)
To: Michael Frank; +Cc: linux-kernel
Michael Frank wrote:
> This question is probably better suited for LKML.
>
> ---------- Forwarded Message ----------
>
> Subject: [Swsusp-devel] Kernel 2.6 pm_send_all() issues.
> Date: Tuesday 10 February 2004 04:06
> From: Wolfgang Glas <wolfgang.glas@ev-i.at>
> To: swsusp-devel@lists.sourceforge.net
>
> Coming back to an earlier post, which states, that NVidia suspend/resume under
> 2.6.x could be resurrected, if drivers_suspend() and drivers_resume() in
> swsusp.c are tuned in a way, that pm_send_all() is called, I want to direct
> the following question to more eligible persons in this list:
>
> I inspected NVidia's driver and I found out, that it's implemented as a
> character device and hence does not implement the suspend/resume kernel
> driver interface, which has been introduced in linux-2.6. But nevertheless
> this driver has the ability to register its own power management handler
> through pm_register(), an interface already present in linux-2.4 and still
> used in some 20 drivers present in the linux-2.6.1 code base, most notable
> some audio driver and some irda drivers.
>
> Diving further into the code, I recognized, that the kernel function
> ppm_send_all(), which calls all handlers registered through pm_register() is
> never called inside of swsusp2.c
>
> So, what I want to ask is, whether the pm_register/pm_send/pm_send_all
> interface is simply deprecated and the NVidia driver (and other drivers,
> which use pm_register) should be reeingineered in order to use the
> resume/suspend interface of linux-2.6. Or should we try to modify swsusp2.c
> in a way, that it additionally calls pm_send_all for these drivers?
>
> TIA,
>
> Wolfgang
I sent them a patch that converts the PCI device to the device model and
uses suspend/resume hooks. But they didn't seem to put it in the
current version
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-02-12 18:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-10 15:43 Fwd: [Swsusp-devel] Kernel 2.6 pm_send_all() issues Michael Frank
2004-02-11 5:23 ` Benjamin Herrenschmidt
2004-02-11 6:46 ` Stephen Hemminger
2004-02-12 18:49 ` Nils Rennebarth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox