[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev renaming interfaces fails on SunBlade100 with qfe



Hi Luigi,

The prtconf output indicates your card is an IntraServer QFE; I don't
know how well the existing hme driver supports this device, but it
seems that it would treat the InterServer device as four HMEs rather
than an QFE and that would prevent 'local-mac-addr?' from being
consulted.

Assuming the device is 100% compatible with SUNW,qfe the patch would
be trivial but dependent upon the kernel version you are running
(which I don't believe has been mentioned).  If your kernel supports
the new of_ interfaces, you could try:

diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c
index c6f5bc3..2cba0de 100644
--- a/drivers/net/sunhme.c
+++ b/drivers/net/sunhme.c
@@ -3012,7 +3012,8 @@ static int __devinit happy_meal_pci_prob
#endif

       err = -ENODEV;
-       if (!strcmp(prom_name, "SUNW,qfe") || !strcmp(prom_name, "qfe")) {
+       if (!strcmp(prom_name, "SUNW,qfe") || !strcmp(prom_name, "qfe") ||
+           of_device_is_compatible(pcp->prom_node, "SUNW,qfe")) {
               qp = quattro_pci_find(pdev);
               if (qp == NULL)
                       goto err_out;

Otherwise, for testing purposes only:

diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c
index c6f5bc3..87a9f56 100644
--- a/drivers/net/sunhme.c
+++ b/drivers/net/sunhme.c
@@ -3012,7 +3012,7 @@ static int __devinit happy_meal_pci_prob
#endif

       err = -ENODEV;
-       if (!strcmp(prom_name, "SUNW,qfe") || !strcmp(prom_name, "qfe")) {
+       if (!strcmp(prom_name, "SUNW,qfe") || !strcmp(prom_name,
"IntraServer,qfe")) {
               qp = quattro_pci_find(pdev);
               if (qp == NULL)
                       goto err_out;

If your card is not compatible enough to work properly as a QFE but
does work as individual HMEs, the driver could be patched to allow use
of the local-mac-addr values present in OBP.

Thanks,
E


On 9/19/06, Luigi Gangitano <luigi@debian.org> wrote:
You can find it attached.

Thanks,

L


Il giorno 19/set/06, alle ore 08:33, Eric Brower ha scritto:

> I'm not sure if I can be of further help, but can you send 'prtconf
> -pv' output?
>
> On 9/18/06, Luigi Gangitano <luigi@debian.org> wrote:
>> Hi Eric,
>>
>> Il giorno 15/set/06, alle ore 20:40, Eric Brower ha scritto:
>> >> I've tried to switch the single MAC address option in OpenFirmware
>> >> but had no luck. And udev doesn't help with other ways of
>> identifying
>> >> the interface than MAC address.
>> >>
>> >> Can somebody help, please?
>> >
>> > Does your OBP have the "local-mac-address?" property?  If so, set
>> > it to true:
>> >
>> >  ok> setenv local-mac-address? true
>>
>> Yes, my OBP has local-mac-address and is actually set to true. I
>> already tried switching it to false but it doesn't make any
>> difference either way.

--
Luigi Gangitano -- <luigi@debian.org> -- <gangitano@lugroma3.org>
GPG: 1024D/924C0C26: 12F8 9C03 89D3 DB4A 9972  C24A F19B A618 924C 0C26










--
E



Reply to: