Skip to content

Commit a121644

Browse files
sassmannJeff Kirsher
authored andcommitted
i40e: print PCI vendor and device ID during probe
Printing each devices PCI vendor and device ID has the advantage of easily revealing what hardware we're dealing with exactly. It's no longer necessary to match the PCI bus information to the lspci output. Helps with bug reports where no lspci output is available. Output before i40e 0000:08:00.0: fw 6.1.49420 api 1.7 nvm 6.80 0x80003c64 1.2007.0 and after i40e 0000:08:00.0: fw 6.1.49420 api 1.7 nvm 6.80 0x80003c64 1.2007.0 [8086:1572] [8086:0004] Signed-off-by: Stefan Assmann <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 1e84682 commit a121644

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14073,11 +14073,12 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1407314073
}
1407414074
i40e_get_oem_version(hw);
1407514075

14076-
/* provide nvm, fw, api versions */
14077-
dev_info(&pdev->dev, "fw %d.%d.%05d api %d.%d nvm %s\n",
14076+
/* provide nvm, fw, api versions, vendor:device id, subsys vendor:device id */
14077+
dev_info(&pdev->dev, "fw %d.%d.%05d api %d.%d nvm %s [%04x:%04x] [%04x:%04x]\n",
1407814078
hw->aq.fw_maj_ver, hw->aq.fw_min_ver, hw->aq.fw_build,
1407914079
hw->aq.api_maj_ver, hw->aq.api_min_ver,
14080-
i40e_nvm_version_str(hw));
14080+
i40e_nvm_version_str(hw), hw->vendor_id, hw->device_id,
14081+
hw->subsystem_vendor_id, hw->subsystem_device_id);
1408114082

1408214083
if (hw->aq.api_maj_ver == I40E_FW_API_VERSION_MAJOR &&
1408314084
hw->aq.api_min_ver > I40E_FW_MINOR_VERSION(hw))

0 commit comments

Comments
 (0)