From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Hutchings Subject: Re: [GIT] Networking Date: Fri, 7 Jan 2011 19:06:56 +0000 Message-ID: <20110107190656.GQ3702@decadent.org.uk> References: <20110106.122003.233698077.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: David Miller , Hayes Wang , Francois Romieu , David Woodhouse , akpm@linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Linus Torvalds Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Fri, Jan 07, 2011 at 10:46:48AM -0800, Linus Torvalds wrote: > On Thu, Jan 6, 2011 at 12:20 PM, David Miller w= rote: > > > > Plus the usual spattering of wireless, bluetooth, and wired driver > > updates. >=20 > Grr. >=20 > This breaks booting for me. >=20 > [torvalds@i5 linux]$ git bisect good > bca03d5f32c8ee9b5cfa1d32640a63fded6cb3c0 is the first bad commit > commit bca03d5f32c8ee9b5cfa1d32640a63fded6cb3c0 > Author: fran=E7ois romieu > Date: Mon Jan 3 15:07:31 2011 +0000 >=20 > r8169: remove the firmware of RTL8111D. >=20 > The binary file of the firmware is moved to linux-firmware reposi= tory. > The firmwares are rtl_nic/rtl8168d-1.fw and rtl_nic/rtl8168d-2.fw= =2E > The driver goes along if the firmware couldn't be found. However,= it > is suggested to be done with the suitable firmware. >=20 > Some wrong PHY parameters are directly corrected in the driver. >=20 > Simple firmware checking added per Ben Hutchings suggestion. >=20 > Signed-off-by: Hayes Wang > Signed-off-by: Francois Romieu > Cc: Ben Hutchings > Signed-off-by: David S. Miller >=20 > and the behavior is very broken: it just hangs at boot-time. No > messages from the driver (certainly not any messages about missing > firmware), no nothing. The thing is just hung. This is because the driver is requesting firmware during probe, before there is a firmware agent available (maybe even before / is mounted?) rather than when the interface is brought up, as many other network drivers do. At the very least, we ought to make firmware loading fail fast and noisily if this happens. [...] > Quite frankly, that commit looks broken anyway. It doesn't just switc= h > to the firmware loader, it also seems to change other things (ie > removed some mdio writes, added others). There were some tables of PHY registers to poke that were a mixture of control register writes and transfer of firmware to the microcontroller= =2E Hayes and Francois have separated those out. [...] > I bet I can make it work by making it a module, and installing the > firmware manually. But it's supposed to work even without that. =20 Right. This is very vaguely based on a patch I applied in Debian where we build r8169 as a module, and I don't think anyone reported this behaviour. Ben. --=20 Ben Hutchings We get into the habit of living before acquiring the habit of thinking. - Albert = Camus