[Bug 263469] PCI class 0x13 (instrumentation) not given a name

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 22 Apr 2022 13:45:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263469

            Bug ID: 263469
           Summary: PCI class 0x13 (instrumentation) not given a name
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: jfc@mit.edu

Created attachment 233395
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=233395&action=edit
Recognize class 0x13 as instrumentation

I attached a patch to give a correct name to PCI device class 0x13 when no
driver attaches.

While scanning devices my AMD server (HPE ProLiant DL325, AMD EPYC 7402P)
reports

pci4: <unknown> at device 0.0 (no driver attached)
pci5: <unknown> at device 0.0 (no driver attached)
pci8: <unknown> at device 0.0 (no driver attached)
pci9: <unknown> at device 0.0 (no driver attached)
pci13: <unknown> at device 0.0 (no driver attached)
pci14: <unknown> at device 0.0 (no driver attached)
pci17: <unknown> at device 0.0 (no driver attached)
pci18: <unknown> at device 0.0 (no driver attached)

These "unknown" class devices come in pairs with an encrypt/decrypt device,
reported by pciconf as

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
none9@pci0:130:0:2:     class=0x108000 rev=0x00 hdr=0x00 vendor=0x1022
device=0x1498 subvendor=0x1022 subdevice=0x1498
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Starship/Matisse PTDMA'
    class      = encrypt/decrypt


With my patch I see

pci18: <non-essential instrumentation> at device 0.0 (no driver attached)

-- 
You are receiving this mail because:
You are the assignee for the bug.