mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 06:07:31 -04:00
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.
This commit is contained in:
parent
d370b81fd9
commit
1432824670
1 changed files with 5 additions and 6 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue