aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn F. Carr <jfc@mit.edu>2022-04-22 14:28:34 +0000
committerStefan Eßer <se@FreeBSD.org>2022-04-22 14:39:23 +0000
commitf010b9c2b9b0a550656de8a5b5ad1469630c3e2c (patch)
tree136006afc1cd29a66e4be3a5ac82c6e783a0b777
parent460ad988a9bb0e1aaf0da5fdb189cac752c42fe0 (diff)
downloadsrc-f010b9c2b9b0a550656de8a5b5ad1469630c3e2c.tar.gz
src-f010b9c2b9b0a550656de8a5b5ad1469630c3e2c.zip
pci: recognize "non-essential instrumentation" devices
Some AMD EPYC VCPUs generated boot message of the type: pci4: <unknown> at device 0.0 (no driver attached) These are displayed for device class 0x13 devices, e.g.: none8@pci0:130:0:0: class=0x130000 rev=0x00 hdr=0x00 vendor=0x1022 \ device=0x148a subvendor=0x1022 subdevice=0x148a vendor = 'Advanced Micro Devices, Inc. [AMD]' device = 'Starship/Matisse PCIe Dummy Function' class = non-essential instrumentation Since these devices serve no purpose (no driver attaches) I have enabled the reporting of suich devices only for verbose boots (a diversion from the patch provided in the PR). A verbose boot will now display such devices as: pci4: <non-essential instrumentation> at device 0.0 (no driver attached) PR: 263469 Reported by: jfc@mit.edu (John F. Carr) MFC after: 1 week
-rw-r--r--sys/dev/pci/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 535d4f6f3f3b..5a011bdd0c8f 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -5030,6 +5030,7 @@ static const struct
{PCIC_DASP, PCIS_DASP_PERFCNTRS, 1, "performance counters"},
{PCIC_DASP, PCIS_DASP_COMM_SYNC, 1, "communication synchronizer"},
{PCIC_DASP, PCIS_DASP_MGMT_CARD, 1, "signal processing management"},
+ {PCIC_INSTRUMENT, -1, 0, "non-essential instrumentation"},
{0, 0, 0, NULL}
};