Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NONE for ALL, and ALL for NONE



Hello,

I was paring down GENERIC to see if I could build a kernel without
ACPI/MPBIOS - and voila - it's still possible! (with a few nits here and
there).

In the spirit of yin/yang, I thought this was a fun provide a minimalist
configuration without these, and the following suggestion seemed
inspiring:

<jak> well, we do have a ALL, maybe we need a NONE

(disclaimer: <jak> may or may not resemble anyone in real life, with or
without above opinion).

One interesting outcome of this exercise was to tease out cross subsystem
dependencies that have slowly crept in - for eg: PCI vs. MSI.

I've added a patch below for your entertainment, but more seriously, I'm
wondering what people think about having a "NONE" kernel - something
with just the very basic code needed to boot on the least common
denominator x86 platform - real or emulated.

Here's my dmesg from a XEN HVM domU:

-- 
~cherry

Index: sys/arch/amd64/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/amd64/conf/GENERIC,v
retrieving revision 1.508
diff -u -p -r1.508 GENERIC
--- sys/arch/amd64/conf/GENERIC	24 Nov 2018 18:23:29 -0000	1.508
+++ sys/arch/amd64/conf/GENERIC	4 Dec 2018 19:44:02 -0000
@@ -84,7 +84,7 @@ options 	SPECTRE_V2_GCC_MITIGATION
 #no options	SVS
 
 # CPU features
-acpicpu*	at cpu?		# ACPI CPU (including frequency scaling)
+#acpicpu*	at cpu?		# ACPI CPU (including frequency scaling)
 coretemp*	at cpu?		# Intel on-die thermal sensor
 est0		at cpu0		# Intel Enhanced SpeedStep (non-ACPI)
 #odcm0		at cpu0		# On-demand clock modulation
@@ -226,6 +226,7 @@ options 	PPP_FILTER	# Active filter supp
 #options 	ALTQ_RIO	# RED with IN/OUT
 #options 	ALTQ_WFQ	# Weighted Fair Queueing
 
+options		NO_PCI_MSI_MSIX
+options		NO_PREEMPTION
+
 # These options enable verbose messages for several subsystems.
 # Warning, these may compile large string tables into the kernel!
 #options 	ACPIVERBOSE	# verbose ACPI configuration messages
@@ -286,10 +287,10 @@ config		netbsd	root on ? type ?
 ipmi0		at mainbus?
 
 # ACPI will be used if present. If not it will fall back to MPBIOS
-acpi0		at mainbus0
-options 	ACPI_SCANPCI		# find PCI roots using ACPI
-options 	MPBIOS			# configure CPUs and APICs using MPBIOS
-options 	MPBIOS_SCANPCI		# MPBIOS configures PCI roots
+#acpi0		at mainbus0
+#options 	ACPI_SCANPCI		# find PCI roots using ACPI
+#options 	MPBIOS			# configure CPUs and APICs using MPBIOS
+#options 	MPBIOS_SCANPCI		# MPBIOS configures PCI roots
 #options 	PCI_INTR_FIXUP		# PCI interrupt routing via ACPI
 #options 	PCI_BUS_FIXUP		# fixup PCI bus numbering
 #options 	PCI_ADDR_FIXUP		# fixup PCI I/O addresses
@@ -297,54 +298,54 @@ options 	MPBIOS_SCANPCI		# MPBIOS config
 options 	VGA_POST		# in-kernel support for VGA POST
 
 # ACPI devices
-acpiacad*	at acpi?		# ACPI AC Adapter
-acpibat*	at acpi?		# ACPI Battery
-acpibut*	at acpi?		# ACPI Button
-acpidalb*	at acpi?		# Direct Application Launch Button
-acpiec* 	at acpi?		# ACPI Embedded Controller (late)
-acpiecdt*	at acpi?		# ACPI Embedded Controller (early)
-acpifan*	at acpi?		# ACPI Fan
-acpilid*	at acpi?		# ACPI Lid Switch
+#acpiacad*	at acpi?		# ACPI AC Adapter
+#acpibat*	at acpi?		# ACPI Battery
+#acpibut*	at acpi?		# ACPI Button
+#acpidalb*	at acpi?		# Direct Application Launch Button
+#acpiec* 	at acpi?		# ACPI Embedded Controller (late)
+#acpiecdt*	at acpi?		# ACPI Embedded Controller (early)
+#acpifan*	at acpi?		# ACPI Fan
+#acpilid*	at acpi?		# ACPI Lid Switch
 #acpipmtr*	at acpi?		# ACPI Power Meter (experimental)
 #acpismbus*	at acpi?		# ACPI SMBus CMI (experimental)
-acpitz* 	at acpi?		# ACPI Thermal Zone
-acpivga*	at acpi?		# ACPI Display Adapter
-acpiout*	at acpivga?		# ACPI Display Output Device
-acpiwdrt*	at acpi?		# ACPI Watchdog Resource Table
-acpiwmi*	at acpi?		# ACPI WMI Mapper
+#acpitz* 	at acpi?		# ACPI Thermal Zone
+#acpivga*	at acpi?		# ACPI Display Adapter
+#acpiout*	at acpivga?		# ACPI Display Output Device
+#acpiwdrt*	at acpi?		# ACPI Watchdog Resource Table
+#acpiwmi*	at acpi?		# ACPI WMI Mapper
 
 # Mainboard devices
-aibs*		at acpi?		# ASUSTeK AI Booster hardware monitor
-asus*		at acpi?		# ASUS hotkeys
-attimer*	at acpi?		# AT Timer
+#aibs*		at acpi?		# ASUSTeK AI Booster hardware monitor
+#asus*		at acpi?		# ASUS hotkeys
+#attimer*	at acpi?		# AT Timer
 #com*		at acpi?		# Serial communications interface
 #fdc*		at acpi?		# Floppy disk controller
-fujbp*		at acpi?		# Fujitsu Brightness & Pointer
-fujhk*		at acpi?		# Fujitsu Hotkeys
+#fujbp*		at acpi?		# Fujitsu Brightness & Pointer
+#fujhk*		at acpi?		# Fujitsu Hotkeys
 #hpacel* 	at acpi?		# HP 3D DriveGuard accelerometer
 #hpqlb*		at acpi?		# HP Quick Launch Buttons
-hpet*		at acpihpetbus?		# High Precision Event Timer (table)
-hpet*		at acpinodebus?		# High Precision Event Timer (device)
-joy*		at acpi?		# Joystick/Game port
+#hpet*		at acpihpetbus?		# High Precision Event Timer (table)
+#hpet*		at acpinodebus?		# High Precision Event Timer (device)
+#joy*		at acpi?		# Joystick/Game port
 #lpt*		at acpi?		# Parallel port
-mpu*		at acpi?		# Roland MPU-401 MIDI UART
-pckbc*		at acpi?		# PC keyboard controller
-pcppi*		at acpi?		# AT-style speaker sound
-qemufwcfg*	at acpi?		# QEMU Firmware Configuration device
-sdhc*		at acpi?		# SD Host Controller
-sony*		at acpi?		# Sony Notebook Controller
-spic*		at acpi?		# Sony Programmable I/O Controller
-wsmouse*	at spic?		# mouse
-thinkpad*	at acpi?		# IBM/Lenovo Thinkpad hotkeys
+#mpu*		at acpi?		# Roland MPU-401 MIDI UART
+#pckbc*		at acpi?		# PC keyboard controller
+#pcppi*		at acpi?		# AT-style speaker sound
+#qemufwcfg*	at acpi?		# QEMU Firmware Configuration device
+#sdhc*		at acpi?		# SD Host Controller
+#sony*		at acpi?		# Sony Notebook Controller
+#spic*		at acpi?		# Sony Programmable I/O Controller
+#wsmouse*	at spic?		# mouse
+#thinkpad*	at acpi?		# IBM/Lenovo Thinkpad hotkeys
 #tpm*		at acpi?		# ACPI TPM (Experimental)
-ug*		at acpi?		# Abit uGuru Hardware monitor
-valz*		at acpi?		# Toshiba Dynabook hotkeys
-wb*		at acpi?		# Winbond W83L518D SD/MMC reader
-sdmmc*		at wb?			# SD/MMC bus
-wmidell*	at acpiwmibus?		# Dell WMI mappings
-wmieeepc*	at acpiwmibus?		# Asus Eee PC WMI mappings
-wmihp*		at acpiwmibus?		# HP WMI mappings
-wmimsi* 	at acpiwmibus?		# MSI WMI mappings
+#ug*		at acpi?		# Abit uGuru Hardware monitor
+#valz*		at acpi?		# Toshiba Dynabook hotkeys
+#wb*		at acpi?		# Winbond W83L518D SD/MMC reader
+#sdmmc*		at wb?			# SD/MMC bus
+#wmidell*	at acpiwmibus?		# Dell WMI mappings
+#wmieeepc*	at acpiwmibus?		# Asus Eee PC WMI mappings
+#wmihp*		at acpiwmibus?		# HP WMI mappings
+#wmimsi* 	at acpiwmibus?		# MSI WMI mappings
 
 # Basic Bus Support
 
@@ -424,14 +425,14 @@ sysbeep0	at pcppi?
 #tdfxdrm*	at drm?		# 3dfx (voodoo) DRM driver
 
 # DRMKMS drivers
-i915drmkms*	at pci? dev ? function ?
-intelfb*	at intelfbbus?
+#i915drmkms*	at pci? dev ? function ?
+#intelfb*	at intelfbbus?
 
-radeon* 	at pci? dev ? function ?
-radeondrmkmsfb* at radeonfbbus?
+#radeon* 	at pci? dev ? function ?
+#radeondrmkmsfb* at radeonfbbus?
 
-nouveau*	at pci? dev ? function ?
-nouveaufb*	at nouveaufbbus?
+#nouveau*	at pci? dev ? function ?
+#nouveaufb*	at nouveaufbbus?
 
 # DRMUMS drivers
 #viadrmums*	at drm?
@@ -524,12 +525,12 @@ ichsmb* at pci? dev ? function ?
 iic*	at ichsmb?
 
 # Intel S1200,C2000 (non-pch) SMBus controller
-ismt* at pci? dev ? function ?
-iic*	at ismt?
+#ismt* at pci? dev ? function ?
+#iic*	at ismt?
 
 # I2C controller as found in some Intel PCH devices.
-dwiic*		at pci?			# I2C controller
-iic*		at dwiic?
+#dwiic*		at pci?			# I2C controller
+#iic*		at dwiic?
 
 # Thermal monitor and fan controller
 #dbcool* at iic? addr 0x2C		# Unknown other motherboard(s)
@@ -567,26 +568,26 @@ iic*		at dwiic?
 #sdtemp* at iic? addr 0x1f
 
 # I2C HID devices
-ihidev* at iic?
+#ihidev* at iic?
 
 # I2C Mice
-ims*	at ihidev? reportid ?
-wsmouse* at ims? mux 0
+#ims*	at ihidev? reportid ?
+#wsmouse* at ims? mux 0
 
 # I2O devices
-iop*	at pci? dev ? function ?	# I/O processor
-iopsp*	at iop? tid ?			# SCSI/FC-AL ports
-ld*	at iop? tid ?			# block devices
+#iop*	at pci? dev ? function ?	# I/O processor
+#iopsp*	at iop? tid ?			# SCSI/FC-AL ports
+#ld*	at iop? tid ?			# block devices
 # XXX dpti.c wants a processor type that is not assigned for x86-64
 #dpti*	at iop? tid 0			# DPT/Adaptec control interface
 
 # GPIO devices
-gpio*		at gpiobus?
+#gpio*		at gpiobus?
 
 # 1- Wire support
 #gpioow* 	at gpio? offset ? mask ?	# 1-wire bitbanging via gpio
-gpioow* 	at gpio?
-onewire*	at gpioow?
+#gpioow* 	at gpio?
+#onewire*	at gpioow?
 
 # I2C support
 #gpioiic*	at gpio?
@@ -604,35 +605,35 @@ onewire*	at gpioow?
 # SCSI Controllers and Devices
 
 # PCI SCSI controllers
-adv*	at pci? dev ? function ?	# AdvanSys 1200[A,B], 9xx[U,UA] SCSI
-adw*	at pci? dev ? function ?	# AdvanSys 9x0UW[D], 3940U[2,3]W SCSI
-ahc*	at pci? dev ? function ?	# Adaptec [23]94x, aic78x0 SCSI
-ahd*	at pci? dev ? function ?	# Adaptec aic790x SCSI
-bha*	at pci? dev ? function ?	# BusLogic 9xx SCSI
-dpt*	at pci? dev ? function ?	# DPT SmartCache/SmartRAID
-iha*	at pci? dev ? function ?	# Initio INIC-940/950 SCSI
-isp*	at pci? dev ? function ?	# Qlogic ISP [12]0x0 SCSI/FibreChannel
-mfi*	at pci? dev ? function ?	# LSI MegaRAID SAS
-mfii*	at pci? dev ? function ?	# LSI MegaRAID SAS (Fusion and newer)
-mly*	at pci? dev ? function ?	# Mylex AcceleRAID and eXtremeRAID
-mpt*	at pci? dev ? function ?	# LSILogic 9x9 and 53c1030 (Fusion-MPT)
-mpii*	at pci? dev ? function ?	# LSI Logic Fusion-MPT II
-njs*	at pci? dev ? function ?	# Workbit NinjaSCSI-32
-pcscp*	at pci? dev ? function ?	# AMD 53c974 PCscsi-PCI SCSI
-siop*	at pci? dev ? function ?	# Symbios 53c8xx SCSI
-esiop*	at pci? dev ? function ?	# Symbios 53c875 and newer SCSI
+#adv*	at pci? dev ? function ?	# AdvanSys 1200[A,B], 9xx[U,UA] SCSI
+#adw*	at pci? dev ? function ?	# AdvanSys 9x0UW[D], 3940U[2,3]W SCSI
+#ahc*	at pci? dev ? function ?	# Adaptec [23]94x, aic78x0 SCSI
+#ahd*	at pci? dev ? function ?	# Adaptec aic790x SCSI
+#bha*	at pci? dev ? function ?	# BusLogic 9xx SCSI
+#dpt*	at pci? dev ? function ?	# DPT SmartCache/SmartRAID
+#iha*	at pci? dev ? function ?	# Initio INIC-940/950 SCSI
+#isp*	at pci? dev ? function ?	# Qlogic ISP [12]0x0 SCSI/FibreChannel
+#mfi*	at pci? dev ? function ?	# LSI MegaRAID SAS
+#mfii*	at pci? dev ? function ?	# LSI MegaRAID SAS (Fusion and newer)
+#mly*	at pci? dev ? function ?	# Mylex AcceleRAID and eXtremeRAID
+#mpt*	at pci? dev ? function ?	# LSILogic 9x9 and 53c1030 (Fusion-MPT)
+#mpii*	at pci? dev ? function ?	# LSI Logic Fusion-MPT II
+#njs*	at pci? dev ? function ?	# Workbit NinjaSCSI-32
+#pcscp*	at pci? dev ? function ?	# AMD 53c974 PCscsi-PCI SCSI
+#siop*	at pci? dev ? function ?	# Symbios 53c8xx SCSI
+#esiop*	at pci? dev ? function ?	# Symbios 53c875 and newer SCSI
 #options 	SIOP_SYMLED		# drive the act. LED in software
-trm*	at pci? dev ? function ?	# Tekram DC-395U/UW/F, DC-315/U SCSI
+#trm*	at pci? dev ? function ?	# Tekram DC-395U/UW/F, DC-315/U SCSI
 
 # PCMCIA SCSI controllers
-aic*	at pcmcia? function ?		# Adaptec APA-1460 SCSI
-esp*	at pcmcia? function ?		# Qlogic ESP406/FAS408 SCSI
-spc*	at pcmcia? function ?		# Fujitsu MB87030/MB89352 SCSI
+#aic*	at pcmcia? function ?		# Adaptec APA-1460 SCSI
+#esp*	at pcmcia? function ?		# Qlogic ESP406/FAS408 SCSI
+#spc*	at pcmcia? function ?		# Fujitsu MB87030/MB89352 SCSI
 
 # CardBus SCSI cards
-adv*	at cardbus? function ?	# AdvanSys 1200[A,B], 9xx[U,UA] SCSI
-ahc*	at cardbus? function ?	# Adaptec ADP-1480
-njs*	at cardbus? function ?	# Workbit NinjaSCSI-32
+#adv*	at cardbus? function ?	# AdvanSys 1200[A,B], 9xx[U,UA] SCSI
+#ahc*	at cardbus? function ?	# Adaptec ADP-1480
+#njs*	at cardbus? function ?	# Workbit NinjaSCSI-32
 
 # SCSI bus support
 scsibus* at scsi?
@@ -641,10 +642,10 @@ scsibus* at scsi?
 sd*	at scsibus? target ? lun ?	# SCSI disk drives
 st*	at scsibus? target ? lun ?	# SCSI tape drives
 cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
-ch*	at scsibus? target ? lun ?	# SCSI autochangers
-ses*	at scsibus? target ? lun ?	# SCSI Enclosure Services devices
-ss*	at scsibus? target ? lun ?	# SCSI scanners
-uk*	at scsibus? target ? lun ?	# SCSI unknown
+#ch*	at scsibus? target ? lun ?	# SCSI autochangers
+#ses*	at scsibus? target ? lun ?	# SCSI Enclosure Services devices
+#ss*	at scsibus? target ? lun ?	# SCSI scanners
+#uk*	at scsibus? target ? lun ?	# SCSI unknown
 
 
 # RAID controllers and devices
@@ -676,7 +677,7 @@ icpsp*	at icp? unit ?			# SCSI pass-thro
 pciide* at pci? dev ? function ? flags 0x0000	# GENERIC pciide driver
 acardide* at pci? dev ? function ?	# Acard IDE controllers
 aceride* at pci? dev ? function ?	# Acer Lab IDE controllers
-ahcisata* at pci? dev ? function ?	# AHCI SATA controllers
+#ahcisata* at pci? dev ? function ?	# AHCI SATA controllers
 artsata* at pci? dev ? function ?	# Intel i31244 SATA controller
 cmdide* at pci? dev ? function ?	# CMD tech IDE controllers
 cypide* at pci? dev ? function ?	# Cypress IDE controllers
@@ -690,8 +691,8 @@ optiide* at pci? dev ? function ?	# Opti
 piixide* at pci? dev ? function ?	# Intel IDE controllers
 pdcide* at pci? dev ? function ?	# Promise IDE controllers
 pdcsata* at pci? dev ? function ?	# Promise SATA150 controllers
-satalink* at pci? dev ? function ?	# SiI SATALink controllers
-siisata* at pci? dev ? function ?	# SiI SteelVine controllers
+#satalink* at pci? dev ? function ?	# SiI SATALink controllers
+#siisata* at pci? dev ? function ?	# SiI SteelVine controllers
 siside* at pci? dev ? function ?	# SiS IDE controllers
 slide*	at pci? dev ? function ?	# Symphony Labs IDE controllers
 svwsata* at pci? dev ? function ?	# ServerWorks SATA controllers
@@ -746,8 +747,8 @@ uk*	at atapibus? drive ? flags 0x0000	# 
 
 
 # NVM Express controllers and devices
-nvme*	at pci? dev ? function ?
-ld*	at nvme? nsid ?
+#nvme*	at pci? dev ? function ?
+#ld*	at nvme? nsid ?
 
 
 # Miscellaneous mass storage devices
@@ -770,10 +771,10 @@ ath*	at pci? dev ? function ?	# Atheros 
 athn*	at pci? dev ? function ?	# Atheros AR9k (802.11a/g/n)
 atw*	at pci? dev ? function ?	# ADMtek ADM8211 (802.11)
 bce*	at pci? dev ? function ?	# Broadcom 440x 10/100 Ethernet
-bge*	at pci? dev ? function ?	# Broadcom 570x gigabit Ethernet
+#bge*	at pci? dev ? function ?	# Broadcom 570x gigabit Ethernet
 bnx*	at pci? dev ? function ?	# Broadcom NetXtremeII gigabit Ethernet
 bwi*	at pci? dev ? function ?	# Broadcom BCM43xx wireless
-bwfm*	at pci? dev ? function ?	# Broadcom FullMAC
+#bwfm*	at pci? dev ? function ?	# Broadcom FullMAC
 dge*	at pci? dev ? function ?	# Intel 82597 10GbE LR
 ep*	at pci? dev ? function ?	# 3Com 3c59x
 epic*	at pci? dev ? function ?	# SMC EPIC/100 Ethernet
@@ -785,28 +786,28 @@ fxp*	at pci? dev ? function ?	# Intel Et
 gsip*	at pci? dev ? function ?	# NS83820 Gigabit Ethernet
 ipw*	at pci? dev ? function ?	# Intel PRO/Wireless 2100
 iwi*	at pci? dev ? function ?	# Intel PRO/Wireless 2200BG
-iwm*	at pci? dev ? function ?	# Intel Centrino 7260
-iwn*	at pci? dev ? function ?	# Intel PRO/Wireless 4965AGN
-ixg*	at pci? dev ? function ?	# Intel 8259x 10 gigabit
-ixv*	at pci? dev ? function ?	# Intel 8259x 10G virtual function
+#iwm*	at pci? dev ? function ?	# Intel Centrino 7260
+#iwn*	at pci? dev ? function ?	# Intel PRO/Wireless 4965AGN
+#ixg*	at pci? dev ? function ?	# Intel 8259x 10 gigabit
+#ixv*	at pci? dev ? function ?	# Intel 8259x 10G virtual function
 jme*	at pci? dev ? function ?	# JMicron JMC2[56]0 ethernet
 hme*	at pci? dev ? function ?	# Sun Microelectronics STP2002-STQ
 le*	at pci? dev ? function ?	# PCnet-PCI Ethernet
 lii*	at pci? dev ? function ?	# Atheros L2 Fast-Ethernet
 lmc*	at pci? dev ? function ?	# Lan Media Corp SSI/HSSI/DS3
 malo*	at pci? dev ? function ?	# Marvell Libertas Wireless
-mskc*	at pci? dev ? function ?	# Marvell Yukon 2 Gigabit Ethernet
-msk*	at mskc?			# Marvell Yukon 2 Gigabit Ethernet
+#mskc*	at pci? dev ? function ?	# Marvell Yukon 2 Gigabit Ethernet
+#msk*	at mskc?			# Marvell Yukon 2 Gigabit Ethernet
 mtd*	at pci? dev ? function ?	# Myson MTD803 3-in-1 Ethernet
 ne*	at pci? dev ? function ?	# NE2000-compatible Ethernet
 nfe*	at pci?	dev ? function ?	# NVIDIA nForce Ethernet
 ntwoc*	at pci? dev ? function ?	# Riscom/N2 PCI Sync Serial
 pcn*	at pci? dev ? function ?	# AMD PCnet-PCI Ethernet
 ral*	at pci? dev ? function ?	# Ralink Technology RT25x0 802.11a/b/g
-re*	at pci? dev ? function ?	# Realtek 8139C+/8169/8169S/8110S
+#re*	at pci? dev ? function ?	# Realtek 8139C+/8169/8169S/8110S
 rtk*	at pci? dev ? function ?	# Realtek 8129/8139
 rtw*	at pci? dev ? function ?	# Realtek 8180L (802.11)
-rtwn*	at pci? dev ? function ?	# Realtek 8188CE/8192CE 802.11b/g/n
+#rtwn*	at pci? dev ? function ?	# Realtek 8188CE/8192CE 802.11b/g/n
 sf*	at pci? dev ? function ?	# Adaptec AIC-6915 Ethernet
 sip*	at pci? dev ? function ?	# SiS 900/DP83815 Ethernet
 skc*	at pci? dev ? function ?	# SysKonnect SK9821 Gigabit Ethernet
@@ -818,11 +819,11 @@ tl*	at pci? dev ? function ?	# ThunderLA
 tlp*	at pci? dev ? function ?	# DECchip 21x4x and clones
 txp*	at pci? dev ? function ?	# 3com 3cr990
 vge*	at pci? dev ? function ?	# VIATech VT612X Gigabit Ethernet
-vmx*	at pci? dev ? function ?	# VMware VMXNET3
+#vmx*	at pci? dev ? function ?	# VMware VMXNET3
 vr*	at pci? dev ? function ?	# VIA Rhine Fast Ethernet
 wi*	at pci? dev ? function ?	# Intersil Prism Mini-PCI (802.11b)
-wm*	at pci? dev ? function ?	# Intel 82543/82544 gigabit
-wpi*	at pci? dev ? function ?	# Intel PRO/Wireless 3945ABG
+#wm*	at pci? dev ? function ?	# Intel 82543/82544 gigabit
+#wpi*	at pci? dev ? function ?	# Intel PRO/Wireless 3945ABG
 xge*	at pci? dev ? function ?	# Neterion (S2io) Xframe-I 10GbE
 
 # PCMCIA network interfaces
@@ -896,9 +897,9 @@ urlphy* at mii? phy ?			# Realtek RTL815
 # USB Controller and Devices
 
 # PCI USB controllers
-xhci*	at pci?	dev ? function ?	# eXtensible Host Controller
+#xhci*	at pci?	dev ? function ?	# eXtensible Host Controller
 					# xhci is at best experimental
-ehci*	at pci?	dev ? function ?	# Enhanced Host Controller
+#ehci*	at pci?	dev ? function ?	# Enhanced Host Controller
 ohci*	at pci?	dev ? function ?	# Open Host Controller
 uhci*	at pci?	dev ? function ?	# Universal Host Controller (Intel)
 
@@ -914,11 +915,11 @@ uhci*	at cardbus? function ?		# Universa
 slhci*	at pcmcia? function ?		# ScanLogic SL811HS
 
 # USB bus support
-usb*	at xhci?
-usb*	at ehci?
+#usb*	at xhci?
+#usb*	at ehci?
 usb*	at ohci?
-usb*	at uhci?
-usb*	at slhci?
+#usb*	at uhci?
+#usb*	at slhci?
 
 include "dev/usb/usbdevices.config"
 
@@ -962,8 +963,8 @@ opl*	at fms?
 opl*	at sv?
 
 # High Definition Audio
-hdaudio*	at pci? dev ? function ?	# High Definition Audio
-hdafg*		at hdaudiobus?
+#hdaudio*	at pci? dev ? function ?	# High Definition Audio
+#hdafg*		at hdaudiobus?
 
 # Audio support
 audio*	at audiobus?
@@ -1051,10 +1052,10 @@ btsco* at bthub?
 
 # SD/MMC controller
 sdhc*	at pci?		# SD Host Controller
-rtsx*	at pci?		# Realtek RTS5209/RTS5229 Card Reader
+#rtsx*	at pci?		# Realtek RTS5209/RTS5229 Card Reader
 sdhc*	at cardbus?	# SD Host Controller
 sdmmc*	at sdhc?	# SD/MMC bus
-sdmmc*	at rtsx?	# SD/MMC bus
+#sdmmc*	at rtsx?	# SD/MMC bus
 
 ld*	at sdmmc?
 
@@ -1064,12 +1065,12 @@ ld*	at sdmmc?
 weasel* at pci?
 
 # Virtio devices
-virtio* at pci? dev ? function ?	# Virtio PCI device
-viomb*	at virtio?			# Virtio memory balloon device
-ld*	at virtio?			# Virtio disk device
-vioif*	at virtio?			# Virtio network device
-viornd* at virtio?			# Virtio entropy device
-vioscsi* at virtio?			# Virtio SCSI device
+#virtio* at pci? dev ? function ?	# Virtio PCI device
+#viomb*	at virtio?			# Virtio memory balloon device
+#ld*	at virtio?			# Virtio disk device
+#vioif*	at virtio?			# Virtio network device
+#viornd* at virtio?			# Virtio entropy device
+#vioscsi* at virtio?			# Virtio SCSI device
 
 # Pull in optional local configuration
 cinclude "arch/amd64/conf/GENERIC.local"
Index: sys/arch/amd64/conf/std.amd64
===================================================================
RCS file: /cvsroot/src/sys/arch/amd64/conf/std.amd64,v
retrieving revision 1.11
diff -u -p -r1.11 std.amd64
--- sys/arch/amd64/conf/std.amd64	12 Jan 2017 05:24:36 -0000	1.11
+++ sys/arch/amd64/conf/std.amd64	4 Dec 2018 19:44:02 -0000
@@ -9,14 +9,14 @@ options 	CPU_IN_CKSUM
 options 	EXEC_ELF64	# exec ELF binaries
 options 	EXEC_SCRIPT	# exec #! scripts
 options 	MTRR
-options 	MULTIPROCESSOR
+#options 	MULTIPROCESSOR
 
 options 	CHILD_MAX=1024	# 160 is too few
 options 	OPEN_MAX=1024	# 128 is too few
 
 mainbus0 at root
 cpu* at mainbus?
-ioapic* at mainbus? apid ?
+#ioapic* at mainbus? apid ?
 
 # Atheros HAL options
 include "external/isc/atheros_hal/conf/std.ath_hal"
Index: sys/arch/x86/conf/files.x86
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/conf/files.x86,v
retrieving revision 1.103
diff -u -p -r1.103 files.x86
--- sys/arch/x86/conf/files.x86	16 Jul 2018 06:18:31 -0000	1.103
+++ sys/arch/x86/conf/files.x86	4 Dec 2018 19:44:02 -0000
@@ -127,7 +127,7 @@ file 	arch/x86/x86/mpbios.c		mpbios
 file 	arch/x86/x86/mp.c		acpi | mpbios
 
 # MP configuration using ACPI
-file 	arch/x86/x86/mpacpi.c		acpi
+file 	arch/x86/x86/mpacpi.c		acpi needs-flag
 
 file	arch/x86/acpi/acpi_pdc.c	acpi
 file	arch/x86/acpi/acpi_wakeup.c	acpi
@@ -152,8 +152,8 @@ file	arch/x86/x86/vga_post.c		vga_post
 file	arch/x86/pci/pci_machdep.c	pci
 #file	arch/x86/pci/pci_ranges.c	pci
 file	arch/x86/pci/pci_intr_machdep.c	pci
-file	arch/x86/pci/pci_msi_machdep.c	pci
-file	arch/x86/pci/msipic.c		pci
+file	arch/x86/pci/pci_msi_machdep.c	pci & ioapic
+file	arch/x86/pci/msipic.c		pci & ioapic
 
 file	arch/x86/pci/pciide_machdep.c	pciide_common
 
Index: sys/arch/x86/include/intr.h
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/include/intr.h,v
retrieving revision 1.56
diff -u -p -r1.56 intr.h
--- sys/arch/x86/include/intr.h	24 Jun 2018 13:35:33 -0000	1.56
+++ sys/arch/x86/include/intr.h	4 Dec 2018 19:44:02 -0000
@@ -34,7 +34,9 @@
 
 #if !defined(XEN)
 #define	__HAVE_FAST_SOFTINTS
+#if !defined(NO_PREEMPTION)
 #define	__HAVE_PREEMPTION
+#endif
 #endif /*  !defined(XEN) */
 
 #ifdef _KERNEL
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018 The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 8.99.26 (GENERIC) #81: Wed Dec  5 00:47:35 IST 2018
[   1.0000000] 	sorcerer@drone:/home/sorcerer/tmp/netbsd-GENERIC-obj-amd64/home/sorcerer/src/sys/arch/amd64/compile/GENERIC
[   1.0000000] total memory = 2043 MB
[   1.0000000] avail memory = 1967 MB
[   1.0000000] cpu_rng: RDRAND
[   1.0000000] running cgd selftest aes-xts-256 aes-xts-512 done
[   1.0000030] mainbus0 (root)
[   1.0000030] cpu0 at mainbus0
[   1.0000030] cpu0: Intel(R) Core(TM) i7-3612QM CPU @ 2.10GHz, id 0x306a9
[   1.0000030] cpu0: package 0, core 0, smt 0
[   1.0000030] pci0 at mainbus0 bus 0: configuration mode 1
[   1.0000030] pchb0 at pci0 dev 0 function 0: vendor 8086 product 1237 (rev. 0x02)
[   1.0000030] pcib0 at pci0 dev 1 function 0: vendor 8086 product 7000 (rev. 0x00)
[   1.0000030] piixide0 at pci0 dev 1 function 1: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00)
[   1.0000030] piixide0: primary channel interrupting at irq 14
[   1.0000030] atabus0 at piixide0 channel 0
[   1.0000030] piixide0: secondary channel interrupting at irq 15
[   1.0000030] atabus1 at piixide0 channel 1
[   1.0000030] piixpm0 at pci0 dev 1 function 3: vendor 8086 product 7113 (rev. 0x01)
[   1.0046880] piixpm0: 24-bit timer
[   1.0046880] piixpm0: SMBus disabled
[   1.0046880] vga0 at pci0 dev 2 function 0: vendor 1013 product 00b8 (rev. 0x00)
[   1.0046880] wsdisplay0 at vga0 kbdmux 1
[   1.0046880] drm at vga0 not configured
[   1.0046880] vendor 5853 product 0001 (undefined, subclass 0x80, revision 0x01) at pci0 dev 3 function 0 not configured
[   1.0046880] isa0 at pcib0
[   1.0046880] lpt0 at isa0 port 0x378-0x37b irq 7
[   1.0046880] com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
[   1.0046880] com0: console
[   1.0046880] pckbc0 at isa0 port 0x60-0x64
[   1.0046880] pckbd0 at pckbc0 (kbd slot)
[   1.0046880] pckbc0: using irq 1 for kbd slot
[   1.0046880] wskbd0 at pckbd0 mux 1
[   1.0046880] pms0 at pckbc0 (aux slot)
[   1.0046880] pckbc0: using irq 12 for aux slot
[   1.0046880] wsmouse0 at pms0 mux 0
[   1.0046880] attimer0 at isa0 port 0x40-0x43
[   1.0046880] pcppi0 at isa0 port 0x61
[   1.0046880] spkr0 at pcppi0: PC Speaker
[   1.0046880] wsbell at spkr0 not configured
[   1.0046880] midi0 at pcppi0: PC speaker
[   1.0046880] sysbeep0 at pcppi0
[   1.0046880] fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
[   1.0046880] attimer0: attached to pcppi0
[   4.4995134] wd0 at atabus0 drive 0
[   4.5195841] wd0: <QEMU HARDDISK>
[   4.5396015] wd0: 8192 MB, 16644 cyl, 16 head, 63 sec, 512 bytes/sect x 16777216 sectors
[   4.5742405] atapibus0 at atabus1: 2 targets
[   4.5994934] cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00003, 0.10.2> cdrom removable
[   4.6394982] boot device: wd0
[   4.6553505] root on wd0a dumps on wd0b
[   4.6702728] root file system type: ffs
[   4.6903307] kern.module.path=/stand/amd64/8.99.26/modules
[   4.7136954] clock: unknown CMOS layout
Created tmpfs /dev (1622016 byte, 3136 inodes)
Tue Dec  4 20:03:09 UTC 2018


Home | Main Index | Thread Index | Old Index