Date: Sat, 04 Mar 2023 01:34:11 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269874] pciconf mislabels "modern" virtio devices as "old" Message-ID: <bug-269874-227-VEC1vwunwT@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-269874-227@https.bugs.freebsd.org/bugzilla/> References: <bug-269874-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269874 John-Mark Gurney <jmg@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmg@FreeBSD.org --- Comment #1 from John-Mark Gurney <jmg@FreeBSD.org> --- Hmm. I'm seeing different behavior: dmesg: ``` virtio_pci0: <VirtIO PCI (legacy) Network adapter> port 0x80-0x9f mem 0x8000000000-0x8000003fff at device 1.0 on pci0 virtio_pci1: <VirtIO PCI (modern) GPU adapter> mem 0x10045000-0x10045fff,0x8000004000-0x8000007fff at device 2.0 on pci0 virtio_pci2: <VirtIO PCI (legacy) Block adapter> mem 0x10044000-0x10044fff,0x8000008000-0x800000bfff at device 5.0 on pci0 ``` and pciconf -lv: ``` virtio_pci0@pci0:0:1:0: class=3D0x020000 rev=3D0x00 hdr=3D0x00 vendor=3D0x1= af4 device=3D0x1000 subvendor=3D0x1af4 subdevice=3D0x0001 vendor =3D 'Red Hat, Inc.' device =3D 'Virtio network device' class =3D network subclass =3D ethernet virtio_pci1@pci0:0:2:0: class=3D0x038000 rev=3D0x01 hdr=3D0x00 vendor=3D0x1= af4 device=3D0x1050 subvendor=3D0x1af4 subdevice=3D0x1100 vendor =3D 'Red Hat, Inc.' device =3D 'Virtio GPU' class =3D display virtio_pci2@pci0:0:5:0: class=3D0x010000 rev=3D0x00 hdr=3D0x00 vendor=3D0x1= af4 device=3D0x1001 subvendor=3D0x1af4 subdevice=3D0x0002 vendor =3D 'Red Hat, Inc.' device =3D 'Virtio block device' class =3D mass storage subclass =3D SCSI ``` Could it be that your pciconf does not match w/ your kernel? As a class of= old is only returned when the class is 0. And this to me sounds like a kernel/userland mismatch. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269874-227-VEC1vwunwT>