Re: [PATCH net-next] myri10ge: allow per-board firmware overriding

From: David Dillow
Date: Sun Apr 19 2009 - 00:41:53 EST


On Sat, 2009-04-18 at 21:09 -0700, David Miller wrote:
> From: David Dillow <dave@xxxxxxxxxxxxxx>
> Date: Sat, 18 Apr 2009 20:56:57 -0400
>
> > It seems like this could be done in user space, using the PCI bus ID as
> > a key to select the firmware.
>
> PCI BUS ID's are not in any way unique, you would need to include the
> PCI Domain as well.

I had that in mind, but I wasn't precise in my wording. I think that
info is there as well. IIRC, and brief glance at the code suggests, that
the uevent for the firmware requests gets the environment variable
DEVPATH that would contains that info:

DEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:09:01.0

Now I'm curious, so I'll probably re-verify that with udevmonitor, a
recent kernel and the typhoon driver, since it is the only thing I have
that requests firmware. But sometime after I sleep...

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/