Thread (18 messages) flat view 18 messages, 6 authors, 2009-01-13

Re: 2.6.28-git8: tg3 doesn't work due to firmware not loading (-git7 is ok)

From: David Woodhouse <dwmw2@infradead.org>
Date: 2009-01-11 12:25:33
Also in: lkml

Possibly related (same subject, not in this thread)

On Sun, 2009-01-11 at 04:08 -0800, David Miller wrote:
From: Valdis.Kletnieks@vt.edu
Date: Sun, 11 Jan 2009 06:10:58 -0500
quoted
On Fri, 09 Jan 2009 14:04:22 PST, David Miller said:
quoted
From: "Alessandro Suardi" <redacted>
Date: Fri, 9 Jan 2009 18:30:40 +0100
quoted
Clearly the requirement changed in -git8, AFAICS.
Because -git8 is where the firmware requirement got added.

If you build the TG3 driver statically into your kernel,
the only way to get the firmware properly loaded is to
enable that CONFIG_FIRMWARE_IN_KERNEL option.
Maybe this is one of those cases where we actually do want a SELECT?

	select FIRMWARE_IN_KERNEL if TIGON3=y

or similar?
I have no idea how this is intended to work, David will know.
Actually, I think the real issue here might be that the tg3 driver is
now behaving _differently_ to how other modern drivers work. It tries to
obtain the firmware once at initialisation time and if that fails it
doesn't register the device.

Other drivers will load the firmware later, at the time the device is
brought up. This means that even if you build the driver into the kernel
without its firmware, it can still request the firmware later, when you
try to start _using_ it. And when the file system is available.

I'll take a look and see if I can remedy that. Then we wouldn't _need_
the FIRMWARE_IN_KERNEL option.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@intel.com                              Intel Corporation
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help