Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756416AbZDSCg4 (ORCPT ); Sat, 18 Apr 2009 22:36:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753146AbZDSCgn (ORCPT ); Sat, 18 Apr 2009 22:36:43 -0400 Received: from smtp.knology.net ([24.214.63.101]:34363 "EHLO smtp.knology.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752655AbZDSCgn (ORCPT ); Sat, 18 Apr 2009 22:36:43 -0400 Subject: Re: [PATCH net-next] myri10ge: allow per-board firmware overriding From: David Dillow To: Brice Goglin Cc: Stanislaw Gruszka , "linux-kernel@vger.kernel.org" , Linux Network Development list In-Reply-To: <1240102617.5342.6.camel@obelisk.thedillows.org> References: <49E7239B.4000309@myri.com> <20090417095038.49b745bf@dhcp-lab-109.englab.brq.redhat.com> <49EA1DAC.1000602@myri.com> <1240102617.5342.6.camel@obelisk.thedillows.org> Content-Type: text/plain Date: Sat, 18 Apr 2009 22:36:39 -0400 Message-Id: <1240108599.5342.11.camel@obelisk.thedillows.org> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1598 Lines: 34 On Sat, 2009-04-18 at 20:56 -0400, David Dillow wrote: > On Sat, 2009-04-18 at 20:36 +0200, Brice Goglin wrote: > > Stanislaw Gruszka wrote: > > > > > This would help in situation like this - admin will not have to thinking > > > about boards initialization ordering. Besides some other drivers (like MTD > > > cmd partitions) use own parsing for similar things, I think would be > > > nice to unify things. What You think? > > > > > > > We actually thought about supporting "eth2:fwname1,eth0:fwname2". But it > > might be hard to implement in this case due to udev possible renaming > > interfaces and this firmware names being needed *before* the renaming. > > So yes, an automatic way to handle such parameter strings might be good, > > but maybe not in this exact case. > > It seems like this could be done in user space, using the PCI bus ID as > a key to select the firmware. The uevent identifies which device is > requesting the firmware, so some modification to /lib/udev/firmware.sh > should do it. On further inspection, that should work on Fedora 10, and it looks like other distros that use the upstream udev rules. RHEL5 uses a binary helper, so changing 05-early-rules.sh to use a script similar to udev's firmware.sh would work. YMMV elsewhere, those are the ones I had handy and happened to be working on some udev rules. Dave -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/