xref: /freebsd/sys/amd64/conf/NOTES (revision c9504239e8e891292b751f9c498dc3b03234004b)
1#
2# NOTES -- Lines that can be cut/pasted into kernel and hints configs.
3#
4# This file contains machine dependent kernel configuration notes.  For
5# machine independent notes, look in /sys/conf/NOTES.
6#
7# $FreeBSD$
8#
9
10#
11# We want LINT to cover profiling as well.
12profile         2
13
14#
15# Enable the kernel DTrace hooks which are required to load the DTrace
16# kernel modules.
17#
18options 	KDTRACE_HOOKS
19
20# DTrace core
21# NOTE: introduces CDDL-licensed components into the kernel
22#device		dtrace
23
24# DTrace modules
25#device		dtrace_profile
26#device		dtrace_sdt
27#device		dtrace_fbt
28#device		dtrace_systrace
29#device		dtrace_prototype
30#device		dtnfscl
31#device		dtmalloc
32
33# Alternatively include all the DTrace modules
34#device		dtraceall
35
36
37#####################################################################
38# SMP OPTIONS:
39#
40# Notes:
41#
42# IPI_PREEMPTION instructs the kernel to preempt threads running on other
43#	  CPUS if needed.  Relies on the PREEMPTION option
44
45# Optional:
46options 	IPI_PREEMPTION
47device		atpic			# Optional legacy pic support
48device		mptable			# Optional MPSPEC mptable support
49
50#
51# Watchdog routines.
52#
53options 	MP_WATCHDOG
54
55# Debugging options.
56#
57options 	COUNT_XINVLTLB_HITS	# Counters for TLB events
58options 	COUNT_IPIS		# Per-CPU IPI interrupt counters
59
60
61
62#####################################################################
63# CPU OPTIONS
64
65#
66# You must specify at least one CPU (the one you intend to run on);
67# deleting the specification for CPUs you don't need to use may make
68# parts of the system run faster.
69#
70cpu		HAMMER			# aka K8, aka Opteron & Athlon64
71
72#
73# Options for CPU features.
74#
75
76
77#####################################################################
78# NETWORKING OPTIONS
79
80#
81# DEVICE_POLLING adds support for mixed interrupt-polling handling
82# of network device drivers, which has significant benefits in terms
83# of robustness to overloads and responsivity, as well as permitting
84# accurate scheduling of the CPU time between kernel network processing
85# and other activities.  The drawback is a moderate (up to 1/HZ seconds)
86# potential increase in response times.
87# It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING
88# to achieve smoother behaviour.
89# Additionally, you can enable/disable polling at runtime with help of
90# the ifconfig(8) utility, and select the CPU fraction reserved to
91# userland with the sysctl variable kern.polling.user_frac
92# (default 50, range 0..100).
93#
94# Not all device drivers support this mode of operation at the time of
95# this writing.  See polling(4) for more details.
96
97options 	DEVICE_POLLING
98
99# BPF_JITTER adds support for BPF just-in-time compiler.
100
101options 	BPF_JITTER
102
103# OpenFabrics Enterprise Distribution (Infiniband).
104options 	OFED
105options 	OFED_DEBUG_INIT
106
107# Sockets Direct Protocol
108options 	SDP
109options 	SDP_DEBUG
110
111# IP over Infiniband
112options 	IPOIB
113options 	IPOIB_DEBUG
114options 	IPOIB_CM
115
116
117#####################################################################
118# CLOCK OPTIONS
119
120# Provide read/write access to the memory in the clock chip.
121device		nvram		# Access to rtc cmos via /dev/nvram
122
123
124#####################################################################
125# MISCELLANEOUS DEVICES AND OPTIONS
126
127device		speaker		#Play IBM BASIC-style noises out your speaker
128hint.speaker.0.at="isa"
129hint.speaker.0.port="0x61"
130device		gzip		#Exec gzipped a.out's.  REQUIRES COMPAT_AOUT!
131
132
133#####################################################################
134# HARDWARE BUS CONFIGURATION
135
136#
137# ISA bus
138#
139device		isa
140
141#
142# Options for `isa':
143#
144# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A
145# interrupt controller.  This saves about 0.7-1.25 usec for each interrupt.
146# This option breaks suspend/resume on some portables.
147#
148# AUTO_EOI_2 enables the `automatic EOI' feature for the slave 8259A
149# interrupt controller.  This saves about 0.7-1.25 usec for each interrupt.
150# Automatic EOI is documented not to work for for the slave with the
151# original i8259A, but it works for some clones and some integrated
152# versions.
153#
154# MAXMEM specifies the amount of RAM on the machine; if this is not
155# specified, FreeBSD will first read the amount of memory from the CMOS
156# RAM, so the amount of memory will initially be limited to 64MB or 16MB
157# depending on the BIOS.  If the BIOS reports 64MB, a memory probe will
158# then attempt to detect the installed amount of RAM.  If this probe
159# fails to detect >64MB RAM you will have to use the MAXMEM option.
160# The amount is in kilobytes, so for a machine with 128MB of RAM, it would
161# be 131072 (128 * 1024).
162#
163# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to
164# reset the CPU for reboot.  This is needed on some systems with broken
165# keyboard controllers.
166
167options 	AUTO_EOI_1
168#options 	AUTO_EOI_2
169
170options 	MAXMEM=(128*1024)
171#options 	BROKEN_KEYBOARD_RESET
172
173#
174# AGP GART support
175device		agp
176
177#
178# AGP debugging.
179#
180options 	AGP_DEBUG
181
182
183#####################################################################
184# HARDWARE DEVICE CONFIGURATION
185
186# To include support for VGA VESA video modes
187options 	VESA
188
189# Turn on extra debugging checks and output for VESA support.
190options 	VESA_DEBUG
191
192device		dpms		# DPMS suspend & resume via VESA BIOS
193
194# x86 real mode BIOS emulator, required by atkbdc/dpms/vesa
195options 	X86BIOS
196
197#
198# Optional devices:
199#
200
201# PS/2 mouse
202device		psm
203hint.psm.0.at="atkbdc"
204hint.psm.0.irq="12"
205
206# Options for psm:
207options 	PSM_HOOKRESUME		#hook the system resume event, useful
208					#for some laptops
209options 	PSM_RESETAFTERSUSPEND	#reset the device at the resume event
210
211# The keyboard controller; it controls the keyboard and the PS/2 mouse.
212device		atkbdc
213hint.atkbdc.0.at="isa"
214hint.atkbdc.0.port="0x060"
215
216# The AT keyboard
217device		atkbd
218hint.atkbd.0.at="atkbdc"
219hint.atkbd.0.irq="1"
220
221# Options for atkbd:
222options 	ATKBD_DFLT_KEYMAP	# specify the built-in keymap
223makeoptions	ATKBD_DFLT_KEYMAP=fr.dvorak
224
225# `flags' for atkbd:
226#       0x01    Force detection of keyboard, else we always assume a keyboard
227#       0x02    Don't reset keyboard, useful for some newer ThinkPads
228#	0x03	Force detection and avoid reset, might help with certain
229#		dockingstations
230#       0x04    Old-style (XT) keyboard support, useful for older ThinkPads
231
232# Video card driver for VGA adapters.
233device		vga
234hint.vga.0.at="isa"
235
236# Options for vga:
237# Try the following option if the mouse pointer is not drawn correctly
238# or font does not seem to be loaded properly.  May cause flicker on
239# some systems.
240options 	VGA_ALT_SEQACCESS
241
242# If you can dispense with some vga driver features, you may want to
243# use the following options to save some memory.
244#options 	VGA_NO_FONT_LOADING	# don't save/load font
245#options 	VGA_NO_MODE_CHANGE	# don't change video modes
246
247# Older video cards may require this option for proper operation.
248options 	VGA_SLOW_IOACCESS	# do byte-wide i/o's to TS and GDC regs
249
250# The following option probably won't work with the LCD displays.
251options 	VGA_WIDTH90		# support 90 column modes
252
253# Debugging.
254options 	VGA_DEBUG
255
256# vt(4) drivers.
257device		vt_vga		# VGA
258device		vt_efifb	# EFI framebuffer
259
260# Linear framebuffer driver for S3 VESA 1.2 cards. Works on top of VESA.
261device		s3pci
262
263# 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support.  This will create
264# the /dev/3dfx0 device to work with glide implementations.  This should get
265# linked to /dev/3dfx and /dev/voodoo.  Note that this is not the same as
266# the tdfx DRI module from XFree86 and is completely unrelated.
267#
268# To enable Linuxulator support, one must also include COMPAT_LINUX in the
269# config as well.  The other option is to load both as modules.
270
271device		tdfx			# Enable 3Dfx Voodoo support
272#XXX#device 	tdfx_linux		# Enable Linuxulator support
273
274#
275# ACPI support using the Intel ACPI Component Architecture reference
276# implementation.
277#
278# ACPI_DEBUG enables the use of the debug.acpi.level and debug.acpi.layer
279# kernel environment variables to select initial debugging levels for the
280# Intel ACPICA code.  (Note that the Intel code must also have USE_DEBUGGER
281# defined when it is built).
282
283device		acpi
284options 	ACPI_DEBUG
285
286# The cpufreq(4) driver provides support for non-ACPI CPU frequency control
287device		cpufreq
288
289# Direct Rendering modules for 3D acceleration.
290device		drm		# DRM core module required by DRM drivers
291device		mach64drm	# ATI Rage Pro, Rage Mobility P/M, Rage XL
292device		mgadrm		# AGP Matrox G200, G400, G450, G550
293device		r128drm		# ATI Rage 128
294device		savagedrm	# S3 Savage3D, Savage4
295device		sisdrm		# SiS 300/305, 540, 630
296device		tdfxdrm		# 3dfx Voodoo 3/4/5 and Banshee
297device		viadrm		# VIA
298options 	DRM_DEBUG	# Include debug printfs (slow)
299
300#
301# Network interfaces:
302#
303
304# bxe:  Broadcom NetXtreme II (BCM5771X/BCM578XX) PCIe 10Gb Ethernet
305#       adapters.
306# ed:   Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503
307#       HP PC Lan+, various PC Card devices
308#       (requires miibus)
309# ipw:	Intel PRO/Wireless 2100 IEEE 802.11 adapter
310#	Requires the ipw firmware module
311# iwi:	Intel PRO/Wireless 2200BG/2225BG/2915ABG IEEE 802.11 adapters
312#	Requires the iwi firmware module
313# iwn:	Intel Wireless WiFi Link 1000/105/135/2000/4965/5000/6000/6050 abgn
314#	802.11 network adapters
315#	Requires the iwn firmware module
316# mthca: Mellanox HCA InfiniBand
317# mlx4ib: Mellanox ConnectX HCA InfiniBand
318# mlx4en: Mellanox ConnectX HCA Ethernet
319# nfe:	nVidia nForce MCP on-board Ethernet Networking (BSD open source)
320# sfxge: Solarflare SFC9000 family 10Gb Ethernet adapters
321# vmx:	VMware VMXNET3 Ethernet (BSD open source)
322# wpi:	Intel 3945ABG Wireless LAN controller
323#	Requires the wpi firmware module
324
325device		bxe		# Broadcom NetXtreme II BCM5771X/BCM578XX 10GbE
326device		ed		# NE[12]000, SMC Ultra, 3c503, DS8390 cards
327options 	ED_3C503
328options 	ED_HPP
329options 	ED_SIC
330device		ipw		# Intel 2100 wireless NICs.
331device		iwi		# Intel 2200BG/2225BG/2915ABG wireless NICs.
332device		iwn		# Intel 4965/1000/5000/6000 wireless NICs.
333device		ixl		# Intel 700 Series Physical Function
334device		iavf		# Intel Adaptive Virtual Function
335device  	mthca		# Mellanox HCA InfiniBand
336device  	mlx4		# Shared code module between IB and Ethernet
337device  	mlx4ib		# Mellanox ConnectX HCA InfiniBand
338device  	mlx4en		# Mellanox ConnectX HCA Ethernet
339device		nfe		# nVidia nForce MCP on-board Ethernet
340device		sfxge		# Solarflare SFC9000 10Gb Ethernet
341device		vmx		# VMware VMXNET3 Ethernet
342device		wpi		# Intel 3945ABG wireless NICs.
343
344# IEEE 802.11 adapter firmware modules
345
346# Intel PRO/Wireless 2100 firmware:
347#   ipwfw:		BSS/IBSS/monitor mode firmware
348#   ipwbssfw:		BSS mode firmware
349#   ipwibssfw:		IBSS mode firmware
350#   ipwmonitorfw:	Monitor mode firmware
351# Intel PRO/Wireless 2200BG/2225BG/2915ABG firmware:
352#   iwifw:		BSS/IBSS/monitor mode firmware
353#   iwibssfw:		BSS mode firmware
354#   iwiibssfw:		IBSS mode firmware
355#   iwimonitorfw:	Monitor mode firmware
356# Intel Wireless WiFi Link 4965/1000/5000/6000 series firmware:
357#   iwnfw:		Single module to support all devices
358#   iwn1000fw:		Specific module for the 1000 only
359#   iwn105fw:		Specific module for the 105 only
360#   iwn135fw:		Specific module for the 135 only
361#   iwn2000fw:		Specific module for the 2000 only
362#   iwn2030fw:		Specific module for the 2030 only
363#   iwn4965fw:		Specific module for the 4965 only
364#   iwn5000fw:		Specific module for the 5000 only
365#   iwn5150fw:		Specific module for the 5150 only
366#   iwn6000fw:		Specific module for the 6000 only
367#   iwn6000g2afw:	Specific module for the 6000g2a only
368#   iwn6000g2bfw:	Specific module for the 6000g2b only
369#   iwn6050fw:		Specific module for the 6050 only
370# wpifw:	Intel 3945ABG Wireless LAN Controller firmware
371
372device		iwifw
373device		iwibssfw
374device		iwiibssfw
375device		iwimonitorfw
376device		ipwfw
377device		ipwbssfw
378device		ipwibssfw
379device		ipwmonitorfw
380device		iwnfw
381device		iwn1000fw
382device		iwn105fw
383device		iwn135fw
384device		iwn2000fw
385device		iwn2030fw
386device		iwn4965fw
387device		iwn5000fw
388device		iwn5150fw
389device		iwn6000fw
390device		iwn6000g2afw
391device		iwn6000g2bfw
392device		iwn6050fw
393device		wpifw
394
395#
396# Non-Transparent Bridge (NTB) drivers
397#
398device		if_ntb		# Virtual NTB network interface
399device		ntb_transport	# NTB packet transport driver
400device		ntb		# NTB hardware interface
401device		ntb_hw_intel	# Intel NTB hardware driver
402device		ntb_hw_plx	# PLX NTB hardware driver
403
404#
405#XXX this stores pointers in a 32bit field that is defined by the hardware
406#device	pst
407
408#
409# Areca 11xx and 12xx series of SATA II RAID controllers.
410# CAM is required.
411#
412device		arcmsr		# Areca SATA II RAID
413
414#
415# Microsemi smartpqi controllers.
416# These controllers have a SCSI-like interface, and require the
417# CAM infrastructure.
418#
419device		smartpqi
420
421#
422# 3ware 9000 series PATA/SATA RAID controller driver and options.
423# The driver is implemented as a SIM, and so, needs the CAM infrastructure.
424#
425options 	TWA_DEBUG		# 0-10; 10 prints the most messages.
426device		twa			# 3ware 9000 series PATA/SATA RAID
427
428#
429# SCSI host adapters:
430#
431# ncv: NCR 53C500 based SCSI host adapters.
432# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters.
433# stg: TMC 18C30, 18C50 based SCSI host adapters.
434
435device		ncv
436device		nsp
437device		stg
438
439#
440# Adaptec FSA RAID controllers, including integrated DELL controllers,
441# the Dell PERC 2/QC and the HP NetRAID-4M
442device		aac
443device		aacp	# SCSI Passthrough interface (optional, CAM required)
444
445#
446# Adaptec by PMC RAID controllers, Series 6/7/8 and upcoming families
447device		aacraid		# Container interface, CAM required
448
449#
450# Highpoint RocketRAID 27xx.
451device		hpt27xx
452
453#
454# Highpoint RocketRAID 182x.
455device		hptmv
456
457#
458# Highpoint DC7280 and R750.
459device		hptnr
460
461#
462# Highpoint RocketRAID.  Supports RR172x, RR222x, RR2240, RR232x, RR2340,
463# RR2210, RR174x, RR2522, RR231x, RR230x.
464device		hptrr
465
466#
467# Highpoint RocketRaid 3xxx series SATA RAID
468device		hptiop
469
470#
471# IBM (now Adaptec) ServeRAID controllers
472device		ips
473
474#
475# Intel integrated Memory Controller (iMC) SMBus controller
476#	Sandybridge-Xeon, Ivybridge-Xeon, Haswell-Xeon, Broadwell-Xeon
477device		imcsmb
478
479#
480# Intel C600 (Patsburg) integrated SAS controller
481device		isci
482options 	ISCI_LOGGING	# enable debugging in isci HAL
483
484#
485# NVM Express (NVMe) support
486device         nvme    # base NVMe driver
487device         nvd     # expose NVMe namespaces as disks, depends on nvme
488
489#
490# PMC-Sierra SAS/SATA controller
491device		pmspcv
492
493#
494# SafeNet crypto driver: can be moved to the MI NOTES as soon as
495# it's tested on a big-endian machine
496#
497device		safe		# SafeNet 1141
498options 	SAFE_DEBUG	# enable debugging support: hw.safe.debug
499options 	SAFE_RNDTEST	# enable rndtest support
500
501#
502# VirtIO support
503#
504# The virtio entry provides a generic bus for use by the device drivers.
505# It must be combined with an interface that communicates with the host.
506# Multiple such interfaces are defined by the VirtIO specification. FreeBSD
507# only has support for PCI. Therefore, virtio_pci must be statically
508# compiled in or loaded as a module for the device drivers to function.
509#
510device		virtio		# Generic VirtIO bus (required)
511device		virtio_pci	# VirtIO PCI Interface
512device		vtnet		# VirtIO Ethernet device
513device		virtio_blk	# VirtIO Block device
514device		virtio_scsi	# VirtIO SCSI device
515device		virtio_balloon	# VirtIO Memory Balloon device
516device		virtio_random	# VirtIO Entropy device
517device		virtio_console	# VirtIO Console device
518
519# Microsoft Hyper-V enhancement support
520device 		hyperv		# HyperV drivers
521
522# Xen HVM Guest Optimizations
523options 	XENHVM		# Xen HVM kernel infrastructure
524device 		xenpci		# Xen HVM Hypervisor services driver
525
526#####################################################################
527
528#
529# Miscellaneous hardware:
530#
531# ipmi: Intelligent Platform Management Interface
532# pbio: Parallel (8255 PPI) basic I/O (mode 0) port (e.g. Advantech PCL-724)
533# smbios: DMI/SMBIOS entry point
534# vpd: Vital Product Data kernel interface
535# asmc: Apple System Management Controller
536# si: Specialix International SI/XIO or SX intelligent serial card
537# tpm: Trusted Platform Module
538
539# Notes on the Specialix SI/XIO driver:
540#  The host card is memory, not IO mapped.
541#  The Rev 1 host cards use a 64K chunk, on a 32K boundary.
542#  The Rev 2 host cards use a 32K chunk, on a 32K boundary.
543#  The cards can use an IRQ of 11, 12 or 15.
544
545device		ipmi
546device		pbio
547hint.pbio.0.at="isa"
548hint.pbio.0.port="0x360"
549device		smbios
550device		vpd
551device		asmc
552device		tpm
553device		padlock_rng	# VIA Padlock RNG
554device		rdrand_rng	# Intel Bull Mountain RNG
555device		aesni		# AES-NI OpenCrypto module
556device		ioat		# Intel I/OAT DMA engine
557
558#
559# Laptop/Notebook options:
560#
561
562
563#
564# I2C Bus
565#
566
567#
568# Hardware watchdog timers:
569#
570# ichwd: Intel ICH watchdog timer
571# amdsbwd: AMD SB7xx watchdog timer
572# viawd: VIA south bridge watchdog timer
573# wbwd: Winbond watchdog timer
574#
575device		ichwd
576device		amdsbwd
577device		viawd
578device		wbwd
579
580#
581# Temperature sensors:
582#
583# coretemp: on-die sensor on Intel Core and newer CPUs
584# amdtemp: on-die sensor on AMD K8/K10/K11 CPUs
585#
586device		coretemp
587device		amdtemp
588
589#
590# CPU control pseudo-device. Provides access to MSRs, CPUID info and
591# microcode update feature.
592#
593device		cpuctl
594
595#
596# System Management Bus (SMB)
597#
598options 	ENABLE_ALART		# Control alarm on Intel intpm driver
599
600#
601# AMD System Management Network (SMN)
602#
603device		amdsmn
604
605#
606# Number of initial kernel page table pages used for early bootstrap.
607# This number should include enough pages to map the kernel and any
608# modules or other data loaded with the kernel by the loader.  Each
609# page table page maps 2MB.
610#
611options 	NKPT=31
612
613# EFI Runtime Services support
614options 	EFIRT
615
616
617#####################################################################
618# ABI Emulation
619
620#XXX keep these here for now and reactivate when support for emulating
621#XXX these 32 bit binaries is added.
622
623# Enable 32-bit runtime support for FreeBSD/i386 binaries.
624options 	COMPAT_FREEBSD32
625
626# Enable iBCS2 runtime support for SCO and ISC binaries
627#XXX#options 	IBCS2
628
629# Emulate spx device for client side of SVR3 local X interface
630#XXX#options 	SPX_HACK
631
632# Enable (32-bit) a.out binary support
633options 	COMPAT_AOUT
634
635# Enable 32-bit runtime support for CloudABI binaries.
636options 	COMPAT_CLOUDABI32
637
638# Enable 64-bit runtime support for CloudABI binaries.
639options 	COMPAT_CLOUDABI64
640
641# Enable Linux ABI emulation
642#XXX#options 	COMPAT_LINUX
643
644# Enable 32-bit Linux ABI emulation (requires COMPAT_FREEBSD32).
645options 	COMPAT_LINUX32
646
647# Enable the linux-like proc filesystem support (requires COMPAT_LINUX32
648# and PSEUDOFS)
649options 	LINPROCFS
650
651#Enable the linux-like sys filesystem support (requires COMPAT_LINUX32
652# and PSEUDOFS)
653options 	LINSYSFS
654
655#####################################################################
656# VM OPTIONS
657
658# KSTACK_PAGES is the number of memory pages to assign to the kernel
659# stack of each thread.
660
661options 	KSTACK_PAGES=5
662
663# Enable detailed accounting by the PV entry allocator.
664
665options 	PV_STATS
666
667#####################################################################
668
669# More undocumented options for linting.
670# Note that documenting these are not considered an affront.
671
672options 	FB_INSTALL_CDEV		# install a CDEV entry in /dev
673
674options 	KBDIO_DEBUG=2
675options 	KBD_MAXRETRY=4
676options 	KBD_MAXWAIT=6
677options 	KBD_RESETDELAY=201
678
679options 	PSM_DEBUG=1
680
681options 	TIMER_FREQ=((14318182+6)/12)
682
683options 	VM_KMEM_SIZE
684options 	VM_KMEM_SIZE_MAX
685options 	VM_KMEM_SIZE_SCALE
686
687# Enable NDIS binary driver support
688options 	NDISAPI
689device		ndis
690