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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Theodore Tso <tytso@...>
Cc: Jeff Garzik <jeff@...>, Hugh Dickins <hugh@...>, Andrew Morton <akpm@...>, KOSAKI Motohiro <kosaki.motohiro@...>, <mchan@...>, <linux-kernel@...>, <linux-mm@...>, <netdev@...>
Date: Thursday, July 3, 2008 - 2:56 pm

On Thu, 2008-07-03 at 13:30 -0400, Theodore Tso wrote:

Neither is it an adequate review of the actual patch which was
submitted.


They had to 'make oldconfig' and then actually _choose_ to say 'no' to
an option which is fairly clearly documented, that they are the
relatively unusual position of wanting to have said 'yes' to. You're
getting into Aunt Tillie territory, when you complain about that.

Although it does make me wonder if it was better the way I had it
originally, with individual options like TIGON3_FIRMWARE_IN_KERNEL
attached to each driver, rather than a single FIRMWARE_IN_KERNEL option
which controls them all.

Perhaps one way to help Aunt Tillie would be to tweak Kbuild to look at
the MODULE_FIRMWARE() statements for in-kernel drivers, and to print a
warning when the build finishes: "Your static kernel image may require
the following firmware files, which are not included: ..."

It's wrong to change the CONFIG_FIRMWARE_IN_KERNEL default to 'Y',
because the _normal_ setting for that option _really_ should be 'N'.
Using request_firmware() satisfied from userspace is best practice these
days, and almost all recent drivers do it that way _unconditionally_
anyway.

What we're doing now is just cleaning up the older drivers which don't
use request_firmware(), to conform to what is now common practice. And
while we're retaining the _option_ to continue to build their firmware
into the static kernel image, it isn't recommended and really shouldn't
be the default configuration.


I am content to let Linus decide on what the default for the
FIRMWARE_IN_KERNEL option will be. I am adamant that it _should_ be 'N',
but it's easy enough for Linus to overrule me with a one-line change. 

In the meantime, it would be useful if Jeff would quit throwing his toys
out of the pram on that issue and actually review the _code_ changes. In
particular, are the reports correct that the device operates just fine
without the TSO firmware loaded? Should we change the request_firmware()
error path to just disable TSO and continue with the initialisation?

I can understand why he might not want to answer that if the answer is
affirmative, I suppose -- it detracts even _further_ from his already
rather dubious argument about 'breaking' the driver, if it'll actually
continue to work even when the firmware is completely absent. But it
would be nice to get an honest and straightforward review of the code
from _someone_ who actually knows the hardware.


Less of the ad hominem, please. Especially when it's so misdirected.

Updating these drivers to remove large blobs of static unswappable data
from the kernel, and having it provided from userspace on demand as
modern Linux drivers do, is a perfectly sensible technical goal all on
its own.

And given the GPL's explicit provisions with regard to collective works
there are also entirely reasonable, non-"fundamentalist" grounds for
believing that it _may_ pose a licensing problem, and for wanting to err
on the side of caution in that respect too.

Fedora is almost certain to ship with CONFIG_FIRMWARE_IN_KERNEL=n, and
I'd be very surprised if Debian and other major distributions don't
follow suit. It is the sensible, pragmatic, technically sound choice.


By this argument, shouldn't we include images in the static kernel for
_all_ drivers which currently use request_firmware()? Otherwise, it's
possible for the user to 'break' them, right?

-- 
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, 5:02 am)
Re: 2.6.26-rc8-mm1 - Missing AC97 power save Kconfig?, Randy Dunlap, (Wed Jul 9, 6:05 pm)
Re: 2.6.26-rc8-mm1: unable to mount nfs shares, Mariusz Kozlowski, (Fri Jul 4, 6:49 pm)
Re: 2.6.26-rc8-mm1: unable to mount nfs shares, Andrew Morton, (Fri Jul 4, 7:07 pm)
[PATCH] memcg: handle shmem's swap cache (Was 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Fri Jul 4, 5:09 am)
memcg: lru scan fix (Was: 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Fri Jul 4, 5:02 am)
Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1, Rik van Riel, (Fri Jul 4, 3:16 pm)
Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1, Andrew Morton, (Fri Jul 4, 3:24 pm)
Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Fri Jul 4, 11:59 pm)
Question: split-lur // Re: 2.6.26-rc8-mm1, KAMEZAWA Hiroyuki, (Thu Jul 3, 10:48 pm)
Re: [BUILD-FAILURE] 2.6.26-rc8-mm1 - x86 - __ptep_modify_pro..., Jeremy Fitzhardinge, (Thu Jul 3, 2:00 pm)
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", KOSAKI Motohiro, (Thu Jul 3, 7:59 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Fri Jul 4, 10:13 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Thu Jul 3, 2:56 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Arjan van de Ven, (Fri Jul 4, 4:42 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Arjan van de Ven, (Fri Jul 4, 4:59 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Fri Jul 4, 10:31 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", maximilian attems, (Fri Jul 4, 10:24 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", maximilian attems, (Sat Jul 5, 6:26 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Hannes Reinecke, (Fri Jul 4, 10:39 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Fri Jul 4, 10:42 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Olivier Galibert, (Fri Jul 4, 7:13 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Olivier Galibert, (Sat Jul 5, 6:53 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Olivier Galibert, (Sat Jul 5, 8:02 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Christoph Hellwig, (Sat Jul 5, 1:13 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Christoph Hellwig, (Sun Jul 6, 6:02 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Olivier Galibert, (Sat Jul 5, 10:44 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Sat Jul 5, 11:10 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Henrique de Moraes Holschuh..., (Fri Jul 4, 7:58 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Henrique de Moraes Holschuh..., (Fri Jul 4, 11:52 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Henrique de Moraes Holschuh..., (Sat Jul 5, 9:08 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", David Woodhouse, (Fri Jul 4, 10:37 am)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Mikael Pettersson, (Thu Jul 3, 10:31 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Rafael J. Wysocki, (Thu Jul 3, 5:42 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Rafael J. Wysocki, (Thu Jul 3, 5:52 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Rafael J. Wysocki, (Thu Jul 3, 6:27 pm)
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin", Rafael J. Wysocki, (Thu Jul 3, 4:52 pm)