Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2018 23:13:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 231468] [acpi] [panic] 12.0-ALPHA6 vtnet0 cant setup virtq-intr when boot with no acpi kernel
Message-ID:  <bug-231468-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231468

            Bug ID: 231468
           Summary: [acpi] [panic] 12.0-ALPHA6 vtnet0 cant setup
                    virtq-intr when boot with no acpi kernel
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: koh@ksoftirqd.net

Good morning.
My QEMU Guest VPS has booted the kernel which removed ACPI to reduce capaci=
ty
in QEMU guest environment because kernel size is big since FreeBSD 12.0.
Then the kernel panics as shown below.
The kernel build uses src.txz from 12.0-ALPHA6.
hint.acpi.0.disabled =3D "1" is not used, and only the "device acpi" is rem=
oved
in kernel build.

# /etc/make.conf
CC=3D/usr/local/bin/clang-devel
CXX=3D/usr/local/bin/clang++-devel
CPP=3D/usr/local/bin/clang-cpp-devel
MODULES_OVERRIDE=3D cc dummynet

# clang-devel -v
clang version 8.0.0
Target: x86_64-portbld-freebsd12.0
Thread model: posix
InstalledDir: /usr/local/llvm-devel/bin

# dmesg when no ACPI w/ clang-devel
vgapci0: Boot video device
virtio_pci0: <VirtIO PCI Network adapter> port 0xc060-0xc07f mem
0xfebd1000-0xfebd1fff irq 11 at device 3.0 on pci0
vtnet0: <VirtIO Networking Adapter> on virtio_pci0
vtnet0: Ethernet address: fa:16:3e:67:7b:47
virtio_pci0: exhausted all interrupt allocation attempts
vtnet0: cannot setup virtqueue interrupts


Fatal trap 12: page fault while in kernel mode
fault virtual address =3D 0x0
fault code =3D supervisor read data, page not present
instruction pointer =3D 0x20:0xffffffff8044e0af
stack pointer =3D 0x28:0xffffffff80a423a0
frame pointer =3D 0x28:0xffffffff80a423e0
code segment =3D base 0x0, limit 0xfffff, type 0x1b
             =3D DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags =3D interrupt enabled, resume, IOPL =3D 0
current process =3D 0 (swapper)
trap number =3D 12
panic: page fault
time =3D 1
Uptime: 1s
Automatic reboot in 15 seconds - press a key on the console to abort

# dmesg when ACPI w/ clang-devel
---<<BOOT>>---
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-ALPHA6 #4: Sun Sep 16 15:05:10 KST 2018
    root@ixcloud:/usr/obj/usr/src/amd64.amd64/sys/GENE6 amd64
clang version 8.0.0
CPU: Intel Xeon E312xx (Sandy Bridge) (2600.08-MHz K8-class CPU)
  Origin=3D"GenuineIntel"  Id=3D0x206a1  Family=3D0x6  Model=3D0x2a  Steppi=
ng=3D1
=20
Features=3D0xf83fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,M=
CA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,SS>
Features2=3D0xfffa3223<SSE3,PCLMULQDQ,VMX,SSSE3,FMA,CX16,PCID,SSE4.1,SSE4.2=
,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND,HV>
  AMD Features=3D0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=3D0x21<LAHF,ABM>
  Structured Extended Features=3D0x7a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,IN=
VPCID>
  XSAVE Features=3D0x1<XSAVEOPT>
  VT-x: (disabled in BIOS) PAT,HLT,PAUSE,EPT,UG
Hypervisor: Origin =3D "KVMKVMKVM"
real memory  =3D 1073741824 (1024 MB)
avail memory =3D 1029726208 (982 MB)
Event timer "LAPIC" quality 100
ACPI APIC Table: <BOCHS  BXPCAPIC>
random: unblocking device.
ioapic0 <Version 1.1> irqs 0-23 on motherboard
random: entropy device external interface
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
netmap: loaded module
nexus0
acpi0: <BOCHS BXPCRSDT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x77 irq 8 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <mass storage, ATA> at device 1.1 (no driver attached)
pci0: <serial bus, USB> at device 1.2 (no driver attached)
pci0: <bridge> at device 1.3 (no driver attached)
vgapci0: <VGA-compatible display> mem
0xfc000000-0xfdffffff,0xfebd0000-0xfebd0fff at device 2.0 on pci0
vgapci0: Boot video device
virtio_pci0: <VirtIO PCI Network adapter> port 0xc060-0xc07f mem
0xfebd1000-0xfebd1fff irq 11 at device 3.0 on pci0
vtnet0: <VirtIO Networking Adapter> on virtio_pci0
vtnet0: Ethernet address: fa:16:3e:67:7b:47
000.000060 [ 425] vtnet_netmap_attach       max rings 1
vtnet0: netmap queues/slots: TX 1/1024, RX 1/1024
000.000061 [ 430] vtnet_netmap_attach       virtio attached txq=3D1, txd=3D=
1024
rxq=3D1, rxd=3D1024
virtio_pci1: <VirtIO PCI Block adapter> port 0xc000-0xc03f mem
0xfebd2000-0xfebd2fff irq 11 at device 4.0 on pci0
vtblk0: <VirtIO Block Adapter> on virtio_pci1
vtblk0: 51200MB (104857600 512 byte sectors)
virtio_pci2: <VirtIO PCI Balloon adapter> port 0xc080-0xc09f irq 10 at devi=
ce
5.0 on pci0
acpi_syscontainer0: <System Container> port 0xaf00-0xaf1f on acpi0
orm0: <ISA Option ROM> at iomem 0xed800-0xeffff pnpid ORM0000 on isa0
attimer0: <AT timer> at port 0x40 on isa0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounters tick every 1.000 msec
ipfw2 initialized, divert loadable, nat enabled, default to accept, logging
disabled
Timecounter "TSC-low" frequency 1300038197 Hz quality 800
Trying to mount root from ufs:/dev/vtbd0s1a [rw,noatime]...
lo0: link state changed to UP
vtnet0: link state changed to UP

# KERNCONF
cpu             HAMMER
ident           GENE6
options         SCHED_ULE               # ULE scheduler
options         INET                    # InterNETworking
options         FFS                     # Berkeley Fast Filesystem
options         SOFTUPDATES             # Enable FFS soft updates support
options         UFS_DIRHASH             # Improve performance on big
directories
options         PRINTF_BUFR_SIZE=3D128    # Prevent printf output being
interspersed.
device          atpic
device          pci
device          loop                    # Network loopback
device          random                  # Entropy device
device          rdrand_rng              # Intel Bull Mountain RNG
device          ether                   # Ethernet support
device          tun                     # Packet tunnel.
device          virtio                  # Generic VirtIO bus (required)
device          virtio_pci              # VirtIO PCI device
device          vtnet                   # VirtIO Ethernet device
device          virtio_blk              # VirtIO Block device
device          netmap                  # netmap(4) support

thanks.

--=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-231468-227>