* Re: [Swsusp-devel] Re: nvidia's driver and swsusp (need help w/ n forc e2 mobo) [not found] ` <20040702200012.GU1815@hygelac> @ 2004-07-02 23:22 ` Karol Kozimor 2004-07-03 0:35 ` Pavel Machek 0 siblings, 1 reply; 2+ messages in thread From: Karol Kozimor @ 2004-07-02 23:22 UTC (permalink / raw) To: Terence Ripperda Cc: Stefan Seyfried, swsusp-devel, linux-kernel, Pavel Machek Thus wrote Terence Ripperda: > I tried hibernating/resuming while in X. but I don't see any acpi > calls coming through to our driver via the pci driver model. is this > expected? I'm no PM expert, but I'm getting the idea that you're wrong at your principles. To begin with, there's no such thing as acpi calls. There's driver model in 2.6 (i.e. pci_module_init() / pci_register_driver()), and there's 2.4's lack of thereof (i.e. pm_register()). As far as I know, those two interfaces have nothing specifically to do with ACPI nor APM. I think the proper way to conditionalize this in the code is to check for CONFIG_PM as the prerequisite and KERNEL_2_6/!KERNEL_2_6 to choose between those interfaces (and only that: bear in mind swsusp2 and pmdisk require neither APM nor ACPI). Perhaps you're building with only CONFIG_PM defined? Hopefully others will be able to clarify this. Best regards, -- Karol 'sziwan' Kozimor sziwan@hell.org.pl ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Swsusp-devel] Re: nvidia's driver and swsusp (need help w/ n forc e2 mobo) 2004-07-02 23:22 ` [Swsusp-devel] Re: nvidia's driver and swsusp (need help w/ n forc e2 mobo) Karol Kozimor @ 2004-07-03 0:35 ` Pavel Machek 0 siblings, 0 replies; 2+ messages in thread From: Pavel Machek @ 2004-07-03 0:35 UTC (permalink / raw) To: Terence Ripperda, Stefan Seyfried, swsusp-devel, linux-kernel Hi! > > I tried hibernating/resuming while in X. but I don't see any acpi > > calls coming through to our driver via the pci driver model. is this > > expected? If you have suspend/resume methods in struct pci_device, those should be called. If they are not, something is very wrong... Take a look on for example drivers/net/b44.c -- that implements suspend/resume. Pavel -- People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl! ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-03 0:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20040702192044.GO1815@hygelac>
[not found] ` <20040702200012.GU1815@hygelac>
2004-07-02 23:22 ` [Swsusp-devel] Re: nvidia's driver and swsusp (need help w/ n forc e2 mobo) Karol Kozimor
2004-07-03 0:35 ` Pavel Machek
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox