Re: [PATCH] Yellowfin bug fix for Symbios cards

Val Henson (val@nmt.edu)
Thu, 18 Oct 2001 21:54:30 -0600


On Thu, Oct 18, 2001 at 11:37:01PM -0400, Jeff Garzik wrote:
> Val Henson wrote:
> > Long version: Reading the MAC address from the EEPROM didn't work on
> > the Symbios card, so I turned on the IsGigabit flag to read it
> > correctly. This also forces full-duplex on, which is wrong. So I
> > added a flag controlling only the MAC address reading behavior and
> > turned off the IsGigabit flag for Symbios cards.
>
> Thanks, applied.
>
> Any idea where the MAC address comes from on the Symbios card?

I believe our bootloader (Smon) initializes the MAC address.

> Standard net driver policy is to read the MAC address from the original
> source at probe time, typically EEPROM but sometimes in a boot PROM,
> firmware console memory, or cardbus CIS. It is generally preferred to
> -not- read the MAC address from the card registers unless you absolutely
> have to, since card's copy of the MAC address is easily changeable or
> corrupted by rebooting from Windows into Linux or similar things (MacOS
> into Linux).

Hm, good point. I should figure out why read_eeprom isn't working and
fix that instead. Maybe the driver should be changed to attempt to
read the MAC from the eeprom and then read from the registers if that
fails, instead of relying on flags.

By the way, the only other OS that runs on our hardware is VxWorks,
and possibly a few of the more obscure RTOS's...

-VAL
-
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/