diff options
author | yongari <yongari@FreeBSD.org> | 2010-09-23 18:55:54 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2010-09-23 18:55:54 +0000 |
commit | 027f54c8d5b9dcfa2fb0969c2204c110c9d631d9 (patch) | |
tree | 3627487a61934daad1a80128bd8c05440515627b | |
parent | 55227154b670f5196c5d8ffcba6b488a09dc1fed (diff) | |
download | FreeBSD-src-027f54c8d5b9dcfa2fb0969c2204c110c9d631d9.zip FreeBSD-src-027f54c8d5b9dcfa2fb0969c2204c110c9d631d9.tar.gz |
Always show asic/chip revision in device attach phase. There are
too many bge(4) controllers there and model name does not
necessarily match asic/chip revision. Relying on VPD string made
it hard to identify exact asic/chip revision so the first step to
debug bge(4) was getting exact asic/chip information with verbose
boot which may not be available on production server.
-rw-r--r-- | sys/dev/bge/if_bge.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 0d1b871..1ff206d 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -2644,12 +2644,11 @@ bge_attach(device_t dev) goto fail; } - if (bootverbose) - device_printf(dev, - "CHIP ID 0x%08x; ASIC REV 0x%02x; CHIP REV 0x%02x; %s\n", - sc->bge_chipid, sc->bge_asicrev, sc->bge_chiprev, - (sc->bge_flags & BGE_FLAG_PCIX) ? "PCI-X" : - ((sc->bge_flags & BGE_FLAG_PCIE) ? "PCI-E" : "PCI")); + device_printf(dev, + "CHIP ID 0x%08x; ASIC REV 0x%02x; CHIP REV 0x%02x; %s\n", + sc->bge_chipid, sc->bge_asicrev, sc->bge_chiprev, + (sc->bge_flags & BGE_FLAG_PCIX) ? "PCI-X" : + ((sc->bge_flags & BGE_FLAG_PCIE) ? "PCI-E" : "PCI")); BGE_LOCK_INIT(sc, device_get_nameunit(dev)); |