Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Woodhouse
Date: Thursday, July 3, 2008 - 2:33 pm

Jeff Garzik wrote:

They had individual options for a long time, but the consensus was that 
I should remove them -- a consensus which was probably right. It was 
moderately inconvenient going back through it all and recommitting it 
without that, but it was worth it to get it right...


That's right, although it doesn't really matter when they're both in the 
vmlinux.

When it's actually a module, there really is no good reason not to let 
request_firmware() get satisfied from userspace. If you can load 
modules, then you can load firmware too -- the required udev stuff has 
been there as standard for a _long_ time, as most modern drivers 
_require_ it without even giving you the built-in-firmware option at all.

It makes no more sense to object to that than it does to object to the 
module depending on _other_ modules. Both those other modules, and the 
required firmware, are _installed_ by the kernel Makefiles, after all.

It wouldn't be _impossible_ to put firmware blobs into the foo.ko files 
themselves and find them there. The firmware blobs in the kernel are 
done in a separate section (like initcalls, exceptions tables, pci 
fixups, and a bunch of other stuff). It'd just take some work in 
module.c to link them into a global list, and some locking shenanigans 
in the lookups (and lifetime issues to think about). But it just isn't 
worth the added complexity, given that userspace is known to be alive 
and working. It's pointless not to just use request_firmware() normally, 
from a module.

-- 
dwmw2
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.26-rc8-mm1, Andrew Morton, (Thu Jul 3, 2:02 am)
Re: [BUILD-FAILURE] 2.6.26-rc8-mm1 - x86 - __ptep_modify_p ..., Jeremy Fitzhardinge, (Thu Jul 3, 11:00 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Thu Jul 3, 2:33 pm)
Question: split-lur // Re: 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Thu Jul 3, 7:48 pm)
memcg: lru scan fix (Was: 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Fri Jul 4, 2:02 am)
[PATCH] memcg: handle shmem's swap cache (Was 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Fri Jul 4, 2:09 am)
Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1, Rik van Riel, (Fri Jul 4, 12:16 pm)
Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1, Andrew Morton, (Fri Jul 4, 12:24 pm)
Re: 2.6.26-rc8-mm1: unable to mount nfs shares, Mariusz Kozlowski, (Fri Jul 4, 3:49 pm)
Re: 2.6.26-rc8-mm1: unable to mount nfs shares, Andrew Morton, (Fri Jul 4, 4:07 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Henrique de Moraes H ..., (Fri Jul 4, 4:58 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Henrique de Moraes H ..., (Fri Jul 4, 8:52 pm)
Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Fri Jul 4, 8:59 pm)
Re: [PATCH] memcg: handle shmem's swap cache (Was 2.6.26-r ..., KAMEZAWA Hiroyuki, (Fri Jul 4, 11:11 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Henrique de Moraes H ..., (Sat Jul 5, 6:08 am)
Re: 2.6.26-rc8-mm1 - Missing AC97 power save Kconfig?, Randy Dunlap, (Wed Jul 9, 3:05 pm)