[Bug 241774] FreeBSD 11.3 & 12.0 has broken SCSI & Networking on KVM/QEMU Q35 with OVMF
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jan 7 16:51:12 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241774
Tommy P <tommyhp2 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tommyhp2 at gmail.com
--- Comment #11 from Tommy P <tommyhp2 at gmail.com> ---
Hi John,
I decided to post here instead of my bug report
(https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236922) since it adds OVMF
testing.
I've just created a OVMF + Q35 VM for 12.0 fresh install. Intel NIC driver
works fine for me with the original default install kernel and custom updated
kernel. Note the 'Hypervisor default' SCSI (sym0) loaded below:
root at fbsd12-ovmf:~ # uname -a
FreeBSD fbsd12-ovmf 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC amd64
root at fbsd12-ovmf:~ # dmesg | egrep -i 'scsi|mass stor|sym|sata'
sym0: <895a> port 0xb000-0xb0ff mem 0x98c02000-0x98c023ff,0x98c00000-0x98c01fff
irq 22 at device 0.0 on pci2
sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking
pci3: <mass storage, SCSI> at device 0.0 (no driver attached)
ahci0: <Intel ICH9 AHCI SATA controller> port 0xc240-0xc25f mem
0x99002000-0x99002fff irq 16 at device 31.2 on pci0
ada0: <QEMU HARDDISK 2.5+> ATA-7 SATA device
ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
cd0: <QEMU QEMU DVD-ROM 2.5+> Removable CD-ROM SCSI device
cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
root at fbsd12-ovmf:~ # uname -a
FreeBSD fbsd12-ovmf 12.0-RELEASE-p12 FreeBSD 12.0-RELEASE-p12 r356437 GENERIC
amd64
Please note that all VirtIO connected devices still fail to load as per my bug
report. Unfortunately, UEFI boot process is a bit more complicated and, thus,
I can't simply switch the HDD bus from SATA to SCSI :(. When I tried a fresh
install of 12.0 to the 'Hypervisor default' SCSI, the install is unable to
detect the attached SCSI HDD... Exiting the install to shell to debug, sym
driver is already loaded in the kernel but doesn't show up dmesg. Thus, unable
to troubleshoot further with installing to or booting from the SCSI HDD. :( If
I boot from SATA, all non-VirtIO works as expected:
root at fbsd12-ovmf:~ # uname -a
FreeBSD fbsd12-ovmf 12.0-RELEASE-p12 FreeBSD 12.0-RELEASE-p12 r356437 GENERIC
amd64
root at fbsd12-ovmf:~ # dmesg | egrep -i 'scsi|mass stor|sym|sata|em0'
sym0: <895a> port 0xb000-0xb0ff mem 0x98c02000-0x98c023ff,0x98c00000-0x98c01fff
irq 22 at device 0.0 on pci2
sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking
pci3: <mass storage, SCSI> at device 0.0 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection> port 0x6000-0x603f mem
0x98000000-0x9801ffff irq 21 at device 1.0 on pci8
em0: attach_pre capping queues at 1
em0: using 1024 tx descriptors and 1024 rx descriptors
em0: allocated for 1 tx_queues
em0: allocated for 1 rx_queues
em0: Ethernet address: 52:54:00:f2:70:9c
ahci0: <Intel ICH9 AHCI SATA controller> port 0xc240-0xc25f mem
0x99002000-0x99002fff irq 16 at device 31.2 on pci0
da0 at sym0 bus 0 scbus0 target 2 lun 0
da0: <QEMU QEMU HARDDISK 2.5+> Fixed Direct Access SPC-3 SCSI device
ada0: <QEMU HARDDISK 2.5+> ATA-7 SATA device
ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
cd0: <QEMU QEMU DVD-ROM 2.5+> Removable CD-ROM SCSI device
cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
em0: link state changed to UP
Perhaps something broken during the upgrade from 11.2? Is your boot/OS disk
SATA or SCSI? Just a FIY, not all SCSI/RAID hardware HBA supports UEFI boot,
IIRC. Thus, I don't think the emulated 'Hypervisor default' SCSI does either
:( Here's my pciconf output when boot from SATA:
none1 at pci0:1:0:0: class=0x020000 card=0x11001af4 chip=0x10411af4 rev=0x01
hdr=0x00
vendor = 'Red Hat, Inc.'
device = 'Virtio network device'
class = network
subclass = ethernet
bar [14] = type Memory, range 32, base 0x98e00000, size 4096, enabled
bar [20] = type Prefetchable Memory, range 64, base 0x800000000, size
16384, enabled
cap 11[dc] = MSI-X supports 3 messages
Table in map 0x14[0x0], PBA in map 0x14[0x800]
cap 09[c8] = vendor (length 20)
cap 09[b4] = vendor (length 20)
cap 09[a4] = vendor (length 16)
cap 09[94] = vendor (length 16)
cap 09[84] = vendor (length 16)
cap 01[7c] = powerspec 3 supports D0 D3 current D0
cap 10[40] = PCI-Express 2 endpoint max data 128(128)
link x1(x1) speed 2.5(2.5) ASPM disabled(L0s)
sym0 at pci0:2:0:0: class=0x010000 card=0x10000000 chip=0x00121000 rev=0x00
hdr=0x00
vendor = 'LSI Logic / Symbios Logic'
device = '53c895a'
class = mass storage
subclass = SCSI
bar [10] = type I/O Port, range 32, base 0xb000, size 256, enabled
bar [14] = type Memory, range 32, base 0x98c02000, size 1024, enabled
bar [18] = type Memory, range 32, base 0x98c00000, size 8192, enabled
none2 at pci0:3:0:0: class=0x010000 card=0x11001af4 chip=0x10481af4 rev=0x01
hdr=0x00
vendor = 'Red Hat, Inc.'
device = 'Virtio SCSI'
class = mass storage
subclass = SCSI
bar [14] = type Memory, range 32, base 0x98a00000, size 4096, enabled
bar [20] = type Prefetchable Memory, range 64, base 0x800100000, size
16384, enabled
cap 11[dc] = MSI-X supports 4 messages
Table in map 0x14[0x0], PBA in map 0x14[0x800]
cap 09[c8] = vendor (length 20)
cap 09[b4] = vendor (length 20)
cap 09[a4] = vendor (length 16)
cap 09[94] = vendor (length 16)
cap 09[84] = vendor (length 16)
cap 01[7c] = powerspec 3 supports D0 D3 current D0
cap 10[40] = PCI-Express 2 endpoint max data 128(128)
link x1(x1) speed 2.5(2.5) ASPM disabled(L0s)
BTW, my host OS is an updated Ubuntu 18.04.3 LTS. I don't know if that has any
bearing vs 19.x
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-virtualization
mailing list