Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2020 23:28:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 241774] FreeBSD 11.3 & 12.0 has broken SCSI & Networking on KVM/QEMU Q35 with OVMF
Message-ID:  <bug-241774-27103-WXysUP23bt@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241774-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-241774-27103@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=3D241774

--- Comment #25 from John Hartley <drum@graphica.com.au> ---
(In reply to Vincenzo Maffione from comment #24)

Hi Vincenzo,

as suggested, I have compiled kernel with netmap removed:


# diff GENERIC GENERIC2
22c22
< ident         GENERIC
---
> ident		GENERIC2
360c360
< device                netmap                  # netmap(4) support
---
> #device		netmap			# netmap(4) support


# uname -a
FreeBSD newt.in.graphica.com.au 11.3-RELEASE FreeBSD 11.3-RELEASE #31: Sat =
Jan
11 08:25:05 AEDT 2020=20=20=20=20
root@newt.in.graphica.com.au:/usr/obj/usr/src/sys/GENERIC2  amd64

I had previously tried to disable netmap from e1000 only and still get resu=
lt
of no network devices being found.

Now with netmap removed from kernel the e1000 device is found:

# ifconfig -a
lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
        groups: lo
em0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
=20=20=20=20=20=20=20
options=3D209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
        ether 52:54:00:4e:50:91
        hwaddr 52:54:00:4e:50:91
        inet 192.168.73.131 netmask 0xffffff00 broadcast 192.168.73.255
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active

Here is PCI Conf results:

# pciconf -lvce
hostb0@pci0:0:0:0:      class=3D0x060000 card=3D0x11001af4 chip=3D0x29c0808=
6 rev=3D0x00
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D '82G33/G31/P35/P31 Express DRAM Controller'
    class      =3D bridge
    subclass   =3D HOST-PCI
vgapci0@pci0:0:1:0:     class=3D0x030000 card=3D0x11001af4 chip=3D0x01001b3=
6 rev=3D0x04
hdr=3D0x00
    vendor     =3D 'Red Hat, Inc.'
    device     =3D 'QXL paravirtual graphic card'
    class      =3D display
    subclass   =3D VGA
pcib1@pci0:0:2:0:       class=3D0x060400 card=3D0x00001b36 chip=3D0x000c1b3=
6 rev=3D0x00
hdr=3D0x01
    vendor     =3D 'Red Hat, Inc.'
    device     =3D 'QEMU PCIe Root port'
    class      =3D bridge
    subclass   =3D PCI-PCI
    cap 10[54] =3D PCI-Express 2 root port max data 128(128) ARI disabled
                 link x1(x32) speed 2.5(undef) ASPM disabled(L0s)
                 slot 0 power limit 0 mW HotPlug(present) surprise Attn But=
ton
PC(on) EI(engaged)
    cap 11[48] =3D MSI-X supports 1 message
                 Table in map 0x10[0x0], PBA in map 0x10[0x800]
    cap 0d[40] =3D PCI Bridge card=3D0x00001b36
    ecap 0001[100] =3D AER 2 0 fatal 0 non-fatal 0 corrected
    ecap 000d[148] =3D ACS 1
pcib2@pci0:0:2:1:       class=3D0x060400 card=3D0x00001b36 chip=3D0x000c1b3=
6 rev=3D0x00
hdr=3D0x01
    vendor     =3D 'Red Hat, Inc.'
    device     =3D 'QEMU PCIe Root port'
    class      =3D bridge
    subclass   =3D PCI-PCI
    cap 10[54] =3D PCI-Express 2 root port max data 128(128) ARI disabled
                 link x1(x32) speed 2.5(undef) ASPM disabled(L0s)
                 slot 0 power limit 0 mW HotPlug(present) surprise Attn But=
ton
PC(on) EI(disengaged)
    cap 11[48] =3D MSI-X supports 1 message
                 Table in map 0x10[0x0], PBA in map 0x10[0x800]
    cap 0d[40] =3D PCI Bridge card=3D0x00001b36
    ecap 0001[100] =3D AER 2 0 fatal 0 non-fatal 0 corrected
    ecap 000d[148] =3D ACS 1
pcib3@pci0:0:2:2:       class=3D0x060400 card=3D0x00001b36 chip=3D0x000c1b3=
6 rev=3D0x00
hdr=3D0x01
    vendor     =3D 'Red Hat, Inc.'
    device     =3D 'QEMU PCIe Root port'
    class      =3D bridge
    subclass   =3D PCI-PCI
    cap 10[54] =3D PCI-Express 2 root port max data 128(128) ARI disabled
                 link x1(x32) speed 2.5(undef) ASPM disabled(L0s)
                 slot 0 power limit 0 mW HotPlug(present) surprise Attn But=
ton
PC(on) EI(disengaged)
    cap 11[48] =3D MSI-X supports 1 message
                 Table in map 0x10[0x0], PBA in map 0x10[0x800]
    cap 0d[40] =3D PCI Bridge card=3D0x00001b36
    ecap 0001[100] =3D AER 2 0 fatal 0 non-fatal 0 corrected
    ecap 000d[148] =3D ACS 1
pcib4@pci0:0:2:3:       class=3D0x060400 card=3D0x00001b36 chip=3D0x000c1b3=
6 rev=3D0x00
hdr=3D0x01
    vendor     =3D 'Red Hat, Inc.'
    device     =3D 'QEMU PCIe Root port'
    class      =3D bridge
    subclass   =3D PCI-PCI
    cap 10[54] =3D PCI-Express 2 root port max data 128(128) ARI disabled
                 link x32(x32) speed undef(undef) ASPM disabled(L0s)
                 slot 0 power limit 0 mW HotPlug(empty) surprise Attn Button
PC(off) EI(disengaged)
    cap 11[48] =3D MSI-X supports 1 message
                 Table in map 0x10[0x0], PBA in map 0x10[0x800]
    cap 0d[40] =3D PCI Bridge card=3D0x00001b36
    ecap 0001[100] =3D AER 2 0 fatal 0 non-fatal 0 corrected
    ecap 000d[148] =3D ACS 1
uhci0@pci0:0:29:0:      class=3D0x0c0300 card=3D0x11001af4 chip=3D0x2934808=
6 rev=3D0x03
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D '82801I (ICH9 Family) USB UHCI Controller'
    class      =3D serial bus
    subclass   =3D USB
uhci1@pci0:0:29:1:      class=3D0x0c0300 card=3D0x11001af4 chip=3D0x2935808=
6 rev=3D0x03
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D '82801I (ICH9 Family) USB UHCI Controller'
    class      =3D serial bus
    subclass   =3D USB
uhci2@pci0:0:29:2:      class=3D0x0c0300 card=3D0x11001af4 chip=3D0x2936808=
6 rev=3D0x03
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D '82801I (ICH9 Family) USB UHCI Controller'
    class      =3D serial bus
    subclass   =3D USB
ehci0@pci0:0:29:7:      class=3D0x0c0320 card=3D0x11001af4 chip=3D0x293a808=
6 rev=3D0x03
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D '82801I (ICH9 Family) USB2 EHCI Controller'
    class      =3D serial bus
    subclass   =3D USB
isab0@pci0:0:31:0:      class=3D0x060100 card=3D0x11001af4 chip=3D0x2918808=
6 rev=3D0x02
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D '82801IB (ICH9) LPC Interface Controller'
    class      =3D bridge
    subclass   =3D PCI-ISA
ahci0@pci0:0:31:2:      class=3D0x010601 card=3D0x11001af4 chip=3D0x2922808=
6 rev=3D0x02
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D '82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI
mode]'
    class      =3D mass storage
    subclass   =3D SATA
    cap 05[80] =3D MSI supports 1 message, 64 bit enabled with 1 message
    cap 12[a8] =3D SATA Index-Data Pair
none0@pci0:0:31:3:      class=3D0x0c0500 card=3D0x11001af4 chip=3D0x2930808=
6 rev=3D0x02
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D '82801I (ICH9 Family) SMBus Controller'
    class      =3D serial bus
    subclass   =3D SMBus
pcib5@pci0:1:0:0:       class=3D0x060400 card=3D0x00000000 chip=3D0x000e1b3=
6 rev=3D0x00
hdr=3D0x01
    vendor     =3D 'Red Hat, Inc.'
    class      =3D bridge
    subclass   =3D PCI-PCI
    cap 05[8c] =3D MSI supports 1 message, 64 bit, vector masks=20
    cap 01[84] =3D powerspec 3  supports D0 D3  current D0
    cap 10[48] =3D PCI-Express 2 PCI bridge max data 128(128) ARI disabled
                 link x1(x1) speed 2.5(2.5) ASPM disabled(L0s)
    cap 0c[40] =3D unknown
    ecap 0001[100] =3D AER 2 0 fatal 0 non-fatal 0 corrected
em0@pci0:2:1:0: class=3D0x020000 card=3D0x11001af4 chip=3D0x100e8086 rev=3D=
0x03
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D '82540EM Gigabit Ethernet Controller'
    class      =3D network
    subclass   =3D ethernet

So there is some subtle interaction happing across PCI discovery and netmap
code.

I will now add other adaptors into test and post additional results shortly.

Thanks for the advise it really helped with diagnosis.

Cheers,


John Hartley.

--=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-241774-27103-WXysUP23bt>