Booted up the old v210 to test something and noticed that it prints a
couple of:

  bge0: nvram lock timed out

warnings when booting up.  These are the on-board network interfaces
and we already established in the past that these come without
EEPROM/NVRAM and instead rely on the firmware to provide the MAC
address.

The diff below kills these messages.

ok?


Index: dev/pci/if_bge.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/if_bge.c,v
retrieving revision 1.391
diff -u -p -r1.391 if_bge.c
--- dev/pci/if_bge.c    10 Jul 2020 13:26:37 -0000      1.391
+++ dev/pci/if_bge.c    26 Jul 2020 16:04:43 -0000
@@ -3235,7 +3235,8 @@ bge_reset(struct bge_softc *sc)
                write_op = bge_writereg_ind;
 
        if (BGE_ASICREV(sc->bge_chipid) != BGE_ASICREV_BCM5700 &&
-           BGE_ASICREV(sc->bge_chipid) != BGE_ASICREV_BCM5701) {
+           BGE_ASICREV(sc->bge_chipid) != BGE_ASICREV_BCM5701 &&
+           !(sc->bge_flags & BGE_NO_EEPROM)) {
                CSR_WRITE_4(sc, BGE_NVRAM_SWARB, BGE_NVRAMSWARB_SET1);
                for (i = 0; i < 8000; i++) {
                        if (CSR_READ_4(sc, BGE_NVRAM_SWARB) &

Reply via email to