All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: suspend/resume support for driver requires an external firmware
@ 2004-09-28  2:28 Zhu, Yi
  2004-09-28  3:14 ` [OT] " Dmitry Torokhov
  2004-09-28  4:55 ` Patrick Mochel
  0 siblings, 2 replies; 5+ messages in thread
From: Zhu, Yi @ 2004-09-28  2:28 UTC (permalink / raw)
  To: Dmitry Torokhov, linux-kernel
  Cc: Denis Vlasenko, Oliver Neukum, Patrick Mochel

Dmitry Torokhov wrote:
> Where do you load your firmware from so that you can bring up
> the network so you can mount everything via NFS in the first place?

The firmware locates together w/ the driver in the initrd which could be
either in the remote PXE server or the local diskettes. It should be
also
placed somewhere on the NFS root so that it can be picked up to
memory during suspend.

Thanks,
-yi

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

* [OT] Re: suspend/resume support for driver requires an external firmware
  2004-09-28  2:28 suspend/resume support for driver requires an external firmware Zhu, Yi
@ 2004-09-28  3:14 ` Dmitry Torokhov
  2004-09-28  3:27   ` David Dillow
  2004-09-28 15:04   ` Denis Vlasenko
  2004-09-28  4:55 ` Patrick Mochel
  1 sibling, 2 replies; 5+ messages in thread
From: Dmitry Torokhov @ 2004-09-28  3:14 UTC (permalink / raw)
  To: Zhu, Yi; +Cc: linux-kernel, Denis Vlasenko, Oliver Neukum, Patrick Mochel

On Monday 27 September 2004 09:28 pm, Zhu, Yi wrote:
> Dmitry Torokhov wrote:
> > Where do you load your firmware from so that you can bring up
> > the network so you can mount everything via NFS in the first place?
> 
> The firmware locates together w/ the driver in the initrd which could be
> either in the remote PXE server or the local diskettes. It should be
> also
> placed somewhere on the NFS root so that it can be picked up to
> memory during suspend.
> 

Nice try :) but if a card needs a firmware to operate you most likely will
not be able to access any network resources, including PXE. Only some form
of local storage can contain kernel and firmware in this case and I would
think it will be awailable at resume time as well.

Anyway, since there are other kind of devices besides network cards that
have to be availabe before userspace comes up and a generic solution is
always better I think that this part of thread is turning into offtopic...

-- 
Dmitry

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

* Re: [OT] Re: suspend/resume support for driver requires an external firmware
  2004-09-28  3:14 ` [OT] " Dmitry Torokhov
@ 2004-09-28  3:27   ` David Dillow
  2004-09-28 15:04   ` Denis Vlasenko
  1 sibling, 0 replies; 5+ messages in thread
From: David Dillow @ 2004-09-28  3:27 UTC (permalink / raw)
  To: Dmitry Torokhov
  Cc: Zhu, Yi, linux-kernel, Denis Vlasenko, Oliver Neukum,
	Patrick Mochel

On Mon, 2004-09-27 at 23:14, Dmitry Torokhov wrote:
> On Monday 27 September 2004 09:28 pm, Zhu, Yi wrote:
> > Dmitry Torokhov wrote:
> > > Where do you load your firmware from so that you can bring up
> > > the network so you can mount everything via NFS in the first place?
> > 
> > The firmware locates together w/ the driver in the initrd which could be
> > either in the remote PXE server or the local diskettes. It should be
> > also
> > placed somewhere on the NFS root so that it can be picked up to
> > memory during suspend.
> > 
> 
> Nice try :) but if a card needs a firmware to operate you most likely will
> not be able to access any network resources, including PXE. Only some form
> of local storage can contain kernel and firmware in this case and I would
> think it will be awailable at resume time as well.

The 3Com 3cr990 family also needs external firmware (currently built
into the kernel, but it's on my TODO list to move to the loader), but it
contains enough firmware support in its flash to do PXE.

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

* RE: suspend/resume support for driver requires an external firmware
  2004-09-28  2:28 suspend/resume support for driver requires an external firmware Zhu, Yi
  2004-09-28  3:14 ` [OT] " Dmitry Torokhov
@ 2004-09-28  4:55 ` Patrick Mochel
  1 sibling, 0 replies; 5+ messages in thread
From: Patrick Mochel @ 2004-09-28  4:55 UTC (permalink / raw)
  To: Zhu, Yi; +Cc: Dmitry Torokhov, linux-kernel, Denis Vlasenko, Oliver Neukum


On Tue, 28 Sep 2004, Zhu, Yi wrote:

> Dmitry Torokhov wrote:
> > Where do you load your firmware from so that you can bring up
> > the network so you can mount everything via NFS in the first place?
>
> The firmware locates together w/ the driver in the initrd which could be
> either in the remote PXE server or the local diskettes. It should be
> also
> placed somewhere on the NFS root so that it can be picked up to
> memory during suspend.

I presume you're not talking about doing swsusp over NFS. If so, there's
a lot more work to be done to teach the driver model and power management
infrastructure about the dependencies involved to make that a possibility.
It's safe to say that we don't support that, and won't support that at
least for some time.

As far as the firmware goes, there are two choices - reload it from
userspace once we return or save it memory during suspend. I assume that
these devices provide some means for reading the firmware from them, so
you can just allocate a buffer and read it into that during the
transition.


	Pat

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

* Re: [OT] Re: suspend/resume support for driver requires an external firmware
  2004-09-28  3:14 ` [OT] " Dmitry Torokhov
  2004-09-28  3:27   ` David Dillow
@ 2004-09-28 15:04   ` Denis Vlasenko
  1 sibling, 0 replies; 5+ messages in thread
From: Denis Vlasenko @ 2004-09-28 15:04 UTC (permalink / raw)
  To: Dmitry Torokhov, Zhu, Yi; +Cc: linux-kernel, Oliver Neukum, Patrick Mochel

On Tuesday 28 September 2004 06:14, Dmitry Torokhov wrote:
> On Monday 27 September 2004 09:28 pm, Zhu, Yi wrote:
> > Dmitry Torokhov wrote:
> > > Where do you load your firmware from so that you can bring up
> > > the network so you can mount everything via NFS in the first place?
> > 
> > The firmware locates together w/ the driver in the initrd which could be
> > either in the remote PXE server or the local diskettes. It should be
> > also
> > placed somewhere on the NFS root so that it can be picked up to
> > memory during suspend.
> > 
> 
> Nice try :) but if a card needs a firmware to operate you most likely will
> not be able to access any network resources, including PXE.

Unless I have firmware on the initrd ;)

> Only some form
> of local storage can contain kernel and firmware in this case and I would
> think it will be awailable at resume time as well.

initrd is typically destroyed after boot is done.

> Anyway, since there are other kind of devices besides network cards that
> have to be availabe before userspace comes up and a generic solution is
> always better I think that this part of thread is turning into offtopic...

yes
--
vda


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

end of thread, other threads:[~2004-09-28 15:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-28  2:28 suspend/resume support for driver requires an external firmware Zhu, Yi
2004-09-28  3:14 ` [OT] " Dmitry Torokhov
2004-09-28  3:27   ` David Dillow
2004-09-28 15:04   ` Denis Vlasenko
2004-09-28  4:55 ` Patrick Mochel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.