xref: /freebsd/sys/amd64/conf/GENERIC (revision edf8578117e8844e02c0121147f45e4609b30680)
1#
2# GENERIC -- Generic kernel configuration file for FreeBSD/amd64
3#
4# For more information on this file, please read the config(5) manual page,
5# and/or the handbook section on Kernel Configuration Files:
6#
7#    https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config
8#
9# The handbook is also available locally in /usr/share/doc/handbook
10# if you've installed the doc distribution, otherwise always see the
11# FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the
12# latest information.
13#
14# An exhaustive list of options and more detailed explanations of the
15# device lines is also present in the ../../conf/NOTES and NOTES files.
16# If you are in doubt as to the purpose or necessity of a line, check first
17# in NOTES.
18#
19
20cpu		HAMMER
21ident		GENERIC
22
23makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
24makeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
25
26options 	SCHED_ULE		# ULE scheduler
27options 	NUMA			# Non-Uniform Memory Architecture support
28options 	PREEMPTION		# Enable kernel thread preemption
29options 	VIMAGE			# Subsystem virtualization, e.g. VNET
30options 	INET			# InterNETworking
31options 	INET6			# IPv6 communications protocols
32options 	IPSEC_SUPPORT		# Allow kldload of ipsec and tcpmd5
33options 	ROUTE_MPATH		# Multipath routing support
34options 	FIB_ALGO		# Modular fib lookups
35options 	TCP_OFFLOAD		# TCP offload
36options 	TCP_BLACKBOX		# Enhanced TCP event logging
37options 	TCP_HHOOK		# hhook(9) framework for TCP
38options 	TCP_RFC7413		# TCP Fast Open
39options 	SCTP_SUPPORT		# Allow kldload of SCTP
40options 	KERN_TLS		# TLS transmit & receive offload
41options 	FFS			# Berkeley Fast Filesystem
42options 	SOFTUPDATES		# Enable FFS soft updates support
43options 	UFS_ACL			# Support for access control lists
44options 	UFS_DIRHASH		# Improve performance on big directories
45options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
46options 	QUOTA			# Enable disk quotas for UFS
47options 	MD_ROOT			# MD is a potential root device
48options 	NFSCL			# Network Filesystem Client
49options 	NFSD			# Network Filesystem Server
50options 	NFSLOCKD		# Network Lock Manager
51options 	NFS_ROOT		# NFS usable as /, requires NFSCL
52options 	MSDOSFS			# MSDOS Filesystem
53options 	CD9660			# ISO 9660 Filesystem
54options 	PROCFS			# Process filesystem (requires PSEUDOFS)
55options 	PSEUDOFS		# Pseudo-filesystem framework
56options 	TMPFS			# Efficient memory filesystem
57options 	GEOM_RAID		# Soft RAID functionality.
58options 	GEOM_LABEL		# Provides labelization
59options 	EFIRT			# EFI Runtime Services support
60options 	COMPAT_FREEBSD32	# Compatible with i386 binaries
61options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
62options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
63options 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
64options 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
65options 	COMPAT_FREEBSD9		# Compatible with FreeBSD9
66options 	COMPAT_FREEBSD10	# Compatible with FreeBSD10
67options 	COMPAT_FREEBSD11	# Compatible with FreeBSD11
68options 	COMPAT_FREEBSD12	# Compatible with FreeBSD12
69options 	COMPAT_FREEBSD13	# Compatible with FreeBSD13
70options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
71options 	KTRACE			# ktrace(1) support
72options 	STACK			# stack(9) support
73options 	SYSVSHM			# SYSV-style shared memory
74options 	SYSVMSG			# SYSV-style message queues
75options 	SYSVSEM			# SYSV-style semaphores
76options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
77options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
78options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
79options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
80options 	AUDIT			# Security event auditing
81options 	CAPABILITY_MODE		# Capsicum capability mode
82options 	CAPABILITIES		# Capsicum capabilities
83options 	MAC			# TrustedBSD MAC Framework
84options 	KDTRACE_FRAME		# Ensure frames are compiled in
85options 	KDTRACE_HOOKS		# Kernel DTrace hooks
86options 	DDB_CTF			# Kernel ELF linker loads CTF data
87options 	INCLUDE_CONFIG_FILE	# Include this file in kernel
88options 	RACCT			# Resource accounting framework
89options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
90options 	RCTL			# Resource limits
91
92# Debugging support.  Always need this:
93options 	KDB			# Enable kernel debugger support.
94options 	KDB_TRACE		# Print a stack trace for a panic.
95# For full debugger support use (turn off in stable branch):
96options 	BUF_TRACKING		# Track buffer history
97options 	DDB			# Support DDB.
98options 	FULL_BUF_TRACKING	# Track more buffer history
99options 	GDB			# Support remote GDB.
100options 	DEADLKRES		# Enable the deadlock resolver
101options 	INVARIANTS		# Enable calls of extra sanity checking
102options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
103options 	QUEUE_MACRO_DEBUG_TRASH	# Trash queue(2) internal pointers on invalidation
104options 	WITNESS			# Enable checks to detect deadlocks and cycles
105options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
106options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
107options 	VERBOSE_SYSINIT=0	# Support debug.verbose_sysinit, off by default
108
109# Kernel Sanitizers
110#options 	COVERAGE		# Generic kernel coverage. Used by KCOV
111#options 	KCOV			# Kernel Coverage Sanitizer
112# Warning: KUBSAN can result in a kernel too large for loader to load
113#options 	KUBSAN			# Kernel Undefined Behavior Sanitizer
114#options 	KCSAN			# Kernel Concurrency Sanitizer
115
116# Kernel dump features.
117options 	EKCD			# Support for encrypted kernel dumps
118options 	GZIO			# gzip-compressed kernel and user dumps
119options 	ZSTDIO			# zstd-compressed kernel and user dumps
120options 	DEBUGNET		# debugnet networking
121options 	NETDUMP			# netdump(4) client support
122options 	NETGDB			# netgdb(4) client support
123
124# Make an SMP-capable kernel by default
125options 	SMP			# Symmetric MultiProcessor Kernel
126
127# CPU frequency control
128device		cpufreq
129
130# Bus support.
131device		acpi
132device		smbios
133options 	IOMMU
134device		pci
135options 	PCI_HP			# PCI-Express native HotPlug
136options 	PCI_IOV			# PCI SR-IOV support
137
138options 	COMPAT_LINUXKPI
139
140# Enable support for the kernel PLL to use an external PPS signal,
141# under supervision of [x]ntpd(8)
142# More info in ntpd documentation: http://www.eecis.udel.edu/~ntp
143
144options 	PPS_SYNC
145
146# Floppy drives
147device		fdc
148
149# ATA controllers
150device		ahci			# AHCI-compatible SATA controllers
151device		ata			# Legacy ATA/SATA controllers
152device		mvs			# Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA
153device		siis			# SiliconImage SiI3124/SiI3132/SiI3531 SATA
154
155# SCSI Controllers
156device		ahc			# AHA2940 and onboard AIC7xxx devices
157device		ahd			# AHA39320/29320 and onboard AIC79xx devices
158device		hptiop			# Highpoint RocketRaid 3xxx series
159device		isp			# Qlogic family
160#device		ispfw			# Firmware for QLogic HBAs- normally a module
161device		mpt			# LSI-Logic MPT-Fusion
162device		mps			# LSI-Logic MPT-Fusion 2
163device		mpr			# LSI-Logic MPT-Fusion 3
164device		sym			# NCR/Symbios Logic
165device		isci			# Intel C600 SAS controller
166device		ocs_fc			# Emulex FC adapters
167device		pvscsi			# VMware PVSCSI
168
169# ATA/SCSI peripherals
170device		scbus			# SCSI bus (required for ATA/SCSI)
171device		ch			# SCSI media changers
172device		da			# Direct Access (disks)
173device		sa			# Sequential Access (tape etc)
174device		cd			# CD
175device		pass			# Passthrough device (direct ATA/SCSI access)
176device		ses			# Enclosure Services (SES and SAF-TE)
177#device		ctl			# CAM Target Layer
178
179# RAID controllers interfaced to the SCSI subsystem
180device		arcmsr			# Areca SATA II RAID
181device		ciss			# Compaq Smart RAID 5*
182device		ips			# IBM (Adaptec) ServeRAID
183device		smartpqi		# Microsemi smartpqi driver
184device		tws			# LSI 3ware 9750 SATA+SAS 6Gb/s RAID controller
185
186# RAID controllers
187device		aac			# Adaptec FSA RAID
188device		aacp			# SCSI passthrough for aac (requires CAM)
189device		aacraid			# Adaptec by PMC RAID
190device		ida			# Compaq Smart RAID
191device		mfi			# LSI MegaRAID SAS
192device		mlx			# Mylex DAC960 family
193device		mrsas			# LSI/Avago MegaRAID SAS/SATA, 6Gb/s and 12Gb/s
194#XXX pointer/int warnings
195#device		pst			# Promise Supertrak SX6000
196
197# NVM Express (NVMe) support
198device		nvme			# base NVMe driver
199device		nvd			# expose NVMe namespaces as disks, depends on nvme
200
201# Intel Volume Management Device (VMD) support
202device		vmd
203
204# atkbdc0 controls both the keyboard and the PS/2 mouse
205device		atkbdc			# AT keyboard controller
206device		atkbd			# AT keyboard
207device		psm			# PS/2 mouse
208
209device		kbdmux			# keyboard multiplexer
210
211# syscons is the legacy console driver, resembling an SCO console
212device		vga			# VGA video card driver
213device		splash			# Splash screen and screen saver support
214device		sc
215options 	SC_PIXEL_MODE		# add support for the raster text mode
216
217# vt is the default video console driver
218device		vt
219device		vt_vga
220device		vt_efifb
221device		vt_vbefb
222
223device		agp			# support several AGP chipsets
224
225# CardBus bridge support
226device		cbb			# CardBus (yenta) bridge
227device		cardbus			# CardBus (32-bit) bus
228
229# Serial (COM) ports
230device		uart			# Generic UART driver
231
232# Parallel port
233device		ppc
234device		ppbus			# Parallel port bus (required)
235device		lpt			# Printer
236device		ppi			# Parallel port interface device
237#device		vpo			# Requires scbus and da
238
239device		puc			# Multi I/O cards and multi-channel UARTs
240
241# PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure
242device		iflib
243device		em			# Intel PRO/1000 Gigabit Ethernet Family
244device		igc			# Intel I225 2.5G Ethernet
245device		ix			# Intel PRO/10GbE PCIE PF Ethernet
246device		ixv			# Intel PRO/10GbE PCIE VF Ethernet
247device		ixl			# Intel 700 Series Physical Function
248device		iavf			# Intel Adaptive Virtual Function
249device		ice			# Intel 800 Series Physical Function
250device		vmx			# VMware VMXNET3 Ethernet
251device		axp			# AMD EPYC integrated NIC (requires miibus)
252
253# PCI Ethernet NICs.
254device		bxe			# Broadcom NetXtreme II BCM5771X/BCM578XX 10GbE
255device		le			# AMD Am7900 LANCE and Am79C9xx PCnet
256device		ti			# Alteon Networks Tigon I/II gigabit Ethernet
257
258# Nvidia/Mellanox Connect-X 4 and later, Ethernet only
259#  o requires COMPAT_LINUXKPI and xz(4)
260#  o mlx5ib requires ibcore infra and is not included by default
261device		mlx5			# Base driver
262device		mlxfw			# Firmware update
263device		mlx5en			# Ethernet driver
264
265# PCI Ethernet NICs that use the common MII bus controller code.
266# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
267device		miibus			# MII bus support
268device		ae			# Attansic/Atheros L2 FastEthernet
269device		age			# Attansic/Atheros L1 Gigabit Ethernet
270device		alc			# Atheros AR8131/AR8132 Ethernet
271device		ale			# Atheros AR8121/AR8113/AR8114 Ethernet
272device		bce			# Broadcom BCM5706/BCM5708 Gigabit Ethernet
273device		bfe			# Broadcom BCM440x 10/100 Ethernet
274device		bge			# Broadcom BCM570xx Gigabit Ethernet
275device		cas			# Sun Cassini/Cassini+ and NS DP83065 Saturn
276device		dc			# DEC/Intel 21143 and various workalikes
277device		et			# Agere ET1310 10/100/Gigabit Ethernet
278device		fxp			# Intel EtherExpress PRO/100B (82557, 82558)
279device		gem			# Sun GEM/Sun ERI/Apple GMAC
280device		jme			# JMicron JMC250 Gigabit/JMC260 Fast Ethernet
281device		lge			# Level 1 LXT1001 gigabit Ethernet
282device		msk			# Marvell/SysKonnect Yukon II Gigabit Ethernet
283device		nfe			# nVidia nForce MCP on-board Ethernet
284device		nge			# NatSemi DP83820 gigabit Ethernet
285device		re			# RealTek 8139C+/8169/8169S/8110S
286device		rl			# RealTek 8129/8139
287device		sge			# Silicon Integrated Systems SiS190/191
288device		sis			# Silicon Integrated Systems SiS 900/SiS 7016
289device		sk			# SysKonnect SK-984x & SK-982x gigabit Ethernet
290device		ste			# Sundance ST201 (D-Link DFE-550TX)
291device		stge			# Sundance/Tamarack TC9021 gigabit Ethernet
292device		vge			# VIA VT612x gigabit Ethernet
293device		vr			# VIA Rhine, Rhine II
294device		xl			# 3Com 3c90x (``Boomerang'', ``Cyclone'')
295
296# Wireless NIC cards
297device		wlan			# 802.11 support
298options 	IEEE80211_DEBUG		# enable debug msgs
299options 	IEEE80211_SUPPORT_MESH	# enable 802.11s draft support
300device		wlan_wep		# 802.11 WEP support
301device		wlan_ccmp		# 802.11 CCMP support
302device		wlan_tkip		# 802.11 TKIP support
303device		wlan_amrr		# AMRR transmit rate control algorithm
304device		ath			# Atheros CardBus/PCI NICs
305device		ath_hal			# Atheros CardBus/PCI chip support
306options 	AH_AR5416_INTERRUPT_MITIGATION # AR5416 interrupt mitigation
307options 	ATH_ENABLE_11N		# Enable 802.11n support for AR5416 and later
308device		ath_rate_sample		# SampleRate tx rate control for ath
309#device		bwi			# Broadcom BCM430x/BCM431x wireless NICs.
310#device		bwn			# Broadcom BCM43xx wireless NICs.
311device		ipw			# Intel 2100 wireless NICs.
312device		iwi			# Intel 2200BG/2225BG/2915ABG wireless NICs.
313device		iwn			# Intel 4965/1000/5000/6000 wireless NICs.
314device		malo			# Marvell Libertas wireless NICs.
315device		mwl			# Marvell 88W8363 802.11n wireless NICs.
316device		ral			# Ralink Technology RT2500 wireless NICs.
317device		wpi			# Intel 3945ABG wireless NICs.
318
319# Pseudo devices.
320device		crypto			# core crypto support
321device		aesni			# AES-NI OpenCrypto module
322device		loop			# Network loopback
323device		padlock_rng		# VIA Padlock RNG
324device		rdrand_rng		# Intel Bull Mountain RNG
325device		ether			# Ethernet support
326device		vlan			# 802.1Q VLAN support
327device		tuntap			# Packet tunnel.
328device		md			# Memory "disks"
329device		gif			# IPv6 and IPv4 tunneling
330device		firmware		# firmware assist module
331device		xz			# lzma decompression
332
333# The `bpf' device enables the Berkeley Packet Filter.
334# Be aware of the administrative consequences of enabling this!
335# Note that 'bpf' is required for DHCP.
336device		bpf			# Berkeley packet filter
337
338# USB support
339options 	USB_DEBUG		# enable debug msgs
340device		uhci			# UHCI PCI->USB interface
341device		ohci			# OHCI PCI->USB interface
342device		ehci			# EHCI PCI->USB interface (USB 2.0)
343device		xhci			# XHCI PCI->USB interface (USB 3.0)
344device		usb			# USB Bus (required)
345device		ukbd			# Keyboard
346device		umass			# Disks/Mass storage - Requires scbus and da
347
348# Sound support
349device		sound			# Generic sound driver (required)
350device		snd_cmi			# CMedia CMI8338/CMI8738
351device		snd_csa			# Crystal Semiconductor CS461x/428x
352device		snd_emu10kx		# Creative SoundBlaster Live! and Audigy
353device		snd_es137x		# Ensoniq AudioPCI ES137x
354device		snd_hda			# Intel High Definition Audio
355device		snd_ich			# Intel, NVidia and other ICH AC'97 Audio
356device		snd_via8233		# VIA VT8233x Audio
357
358# MMC/SD
359device		mmc			# MMC/SD bus
360device		mmcsd			# MMC/SD memory card
361device		sdhci			# Generic PCI SD Host Controller
362
363# VirtIO support
364device		virtio			# Generic VirtIO bus (required)
365device		virtio_pci		# VirtIO PCI device
366device		vtnet			# VirtIO Ethernet device
367device		virtio_blk		# VirtIO Block device
368device		virtio_scsi		# VirtIO SCSI device
369device		virtio_balloon		# VirtIO Memory Balloon device
370
371# Linux KVM paravirtualization support
372device		kvm_clock		# KVM paravirtual clock driver
373
374# HyperV drivers and enhancement support
375device		hyperv			# HyperV drivers
376
377# Xen HVM Guest Optimizations
378# NOTE: XENHVM depends on xenpci and xentimer.
379# They must be added or removed together.
380options 	XENHVM			# Xen HVM kernel infrastructure
381device		xenefi			# Xen EFI timer device
382device		xenpci			# Xen HVM Hypervisor services driver
383device		xentimer		# Xen x86 PV timer device
384
385# Netmap provides direct access to TX/RX rings on supported NICs
386device		netmap			# netmap(4) support
387
388# evdev interface
389options 	EVDEV_SUPPORT		# evdev support in legacy drivers
390device		evdev			# input event device support
391device		uinput			# install /dev/uinput cdev
392
393# HID support
394options 	HID_DEBUG		# enable debug msgs
395device		hid			# Generic HID support
396options 	IICHID_SAMPLING		# Workaround missing GPIO INTR support
397