From: Michael Subject: Re: [PATCH] starfire: Clean up properly if firmware loading fails Date: Tue, 26 Jan 2010 18:51:07 +1300 Message-ID: <4B5E82CB.6040001@moffatt.org.nz> References: <20100125170816.db9435ed.akpm@linux-foundation.org> <1264471333.373.349.camel@localhost> <20100125181508.790010cb.akpm@linux-foundation.org> <1264473168.373.354.camel@localhost> <4B5E5A5F.90608@moffatt.org.nz> <20100125192839.7eaceb2b.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Ben Hutchings , netdev@vger.kernel.org, bugzilla-daemon@bugzilla.kernel.org, bugme-daemon@bugzilla.kernel.org, Alan Cox , stable@kernel.org, "David S. Miller" To: Andrew Morton Return-path: Received: from smtp4.clear.net.nz ([203.97.37.64]:35082 "EHLO smtp4.clear.net.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751368Ab0AZFvL (ORCPT ); Tue, 26 Jan 2010 00:51:11 -0500 Received: from zurvan.moffatt.org.nz (203-79-69-250.cable.telstraclear.net [203.79.69.250]) by smtp4.clear.net.nz (CLEAR Net Mail) with ESMTP id <0KWU00FEUAX93H00@smtp4.clear.net.nz> for netdev@vger.kernel.org; Tue, 26 Jan 2010 18:51:10 +1300 (NZDT) In-reply-to: <20100125192839.7eaceb2b.akpm@linux-foundation.org> Sender: netdev-owner@vger.kernel.org List-ID: Hi Andrew, Yep, OK, I hadn't seen that log in dmesg. That driver is new to me, it's never turned up (or been required) before so that must be new between 2.6.24 and 2.6.32. As this is a root over nfs system, the kernel is compiled elsewhere and then installed manually. What I was missing was that there is a new adaptec directory that needed to be copied from /usr/src/linux-2.6.32/firmware/ to /lib/2.6.32. Actually, I am not sure that this is the right place for it (rather than say /lib/firmware/2.6.32|, but it seems to work anyway. Quite a gotchya. After compiling a kernel on a separate compiling system, I don't actually run the 'make install' on the nfs system. Previously I used to run the 'make install' on a dedicated compiling server and then just copy the modules from that system into the root over nfs exported /lib/modules directory. That'd worked fine up until now. I will have to find a cleverer way to copy over the new firmware libs for future compiles. The 'make install' seems to copy firmware objects into the compiling system's /lib/firmware/ directory without distinguishing the kernel version. So I can't easily tell which ones I'm supposed to be copying into the nfs export. Many thanks for all your help. The interfaces are up and apparently you understand where the kernel BUG came from. So does that complete the story now? In other words, is there anything further you need from me. Many thanks, Michael. | Andrew Morton wrote: > On Tue, 26 Jan 2010 15:58:39 +1300 Michael wrote: > > >> Hi guys, >> >> I think I'm the submitter that Ben is referring to. >> >> So that could be the answer to the kernel BUG I have reported, but I >> don't think that it will answer why the interface doesn't come up... or >> does it? >> > > >From this: > > Jan 21 05:08:26 172 kernel: starfire: Failed to load firmware "adaptec/starfire_rx.bin" > Jan 21 05:08:26 172 kernel: device eth4 entered promiscuous mode > Jan 21 05:08:26 172 kernel: starfire 0000:03:06.0: firmware: requesting adaptec/starfire_rx.bin > Jan 21 05:08:26 172 kernel: starfire: Failed to load firmware "adaptec/starfire_rx.bin" > Jan 21 05:08:26 172 kernel: device eth5 entered promiscuous mode > Jan 21 05:08:26 172 kernel: starfire 0000:03:07.0: firmware: requesting adaptec/starfire_rx.bin > Jan 21 05:08:26 172 kernel: starfire: Failed to load firmware "adaptec/starfire_rx.bin" > Jan 21 05:08:26 172 kernel: device eth6 entered promiscuous mode > Jan 21 05:08:26 172 kernel: starfire 0000:04:04.0: firmware: requesting adaptec/starfire_rx.bin > > I assume that it can't find the firmware? >