NOTES revision 185522
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: head/sys/pc98/conf/NOTES 185522 2008-12-01 16:53:01Z sam $
8#
9
10#
11# We want LINT to cover profiling as well.
12profile         2
13
14
15#####################################################################
16# SMP OPTIONS:
17#
18# The apic device enables the use of the I/O APIC for interrupt delivery.
19# The apic device can be used in both UP and SMP kernels, but is required
20# for SMP kernels.  Thus, the apic device is not strictly an SMP option,
21# but it is a prerequisite for SMP.
22#
23
24# Mandatory:
25device		apic			# I/O apic
26
27#
28# Watchdog routines.
29#
30options 	MP_WATCHDOG
31
32# Debugging options.
33#
34options		STOP_NMI		# Stop CPUS using NMI instead of IPI
35
36
37
38#####################################################################
39# CPU OPTIONS
40
41#
42# You must specify at least one CPU (the one you intend to run on);
43# deleting the specification for CPUs you don't need to use may make
44# parts of the system run faster.
45#
46cpu		I486_CPU
47cpu		I586_CPU		# aka Pentium(tm)
48cpu		I686_CPU		# aka Pentium Pro(tm)
49
50#
51# Options for CPU features.
52#
53# CPU_BLUELIGHTNING_3X enables triple-clock mode on IBM Blue Lightning
54# CPU if CPU supports it.  The default is double-clock mode on
55# BlueLightning CPU box.
56#
57# CPU_BLUELIGHTNING_FPU_OP_CACHE enables FPU operand cache on IBM
58# BlueLightning CPU.  It works only with Cyrix FPU, and this option
59# should not be used with Intel FPU.
60#
61# CPU_BTB_EN enables branch target buffer on Cyrix 5x86 (NOTE 1).
62#
63# CPU_CYRIX_NO_LOCK enables weak locking for the entire address space
64# of Cyrix 6x86 and 6x86MX CPUs by setting the NO_LOCK bit of CCR1.
65# Otherwise, the NO_LOCK bit of CCR1 is cleared.  (NOTE 3)
66#
67# CPU_DIRECT_MAPPED_CACHE sets L1 cache of Cyrix 486DLC CPU in direct
68# mapped mode.  Default is 2-way set associative mode.
69#
70# CPU_DISABLE_5X86_LSSER disables load store serialize (i.e., enables
71# reorder).  This option should not be used if you use memory mapped
72# I/O device(s).
73#
74# CPU_DISABLE_CMPXCHG disables the CMPXCHG instruction on > i386 IA32
75# machines.  VmWare 3.x seems to emulate this instruction poorly, causing
76# the guest OS to run very slowly.  This problem appears to be fixed in
77# VmWare 4.x, at least in version 4.5.2, so that enabling this option with
78# VmWare 4.x will result in locking operations to be 20-30 times slower.
79# Enabling this with an SMP kernel will cause the kernel to be unusable.
80#
81# CPU_DISABLE_SSE explicitly prevents I686_CPU from turning on SSE.
82#
83# CPU_FASTER_5X86_FPU enables faster FPU exception handler.
84#
85# CPU_I486_ON_386 enables CPU cache on i486 based CPU upgrade products
86# for i386 machines.
87#
88# CPU_IORT defines I/O clock delay time (NOTE 1).  Default values of
89# I/O clock delay time on Cyrix 5x86 and 6x86 are 0 and 7,respectively
90# (no clock delay).
91#
92# CPU_L2_LATENCY specifies the L2 cache latency value.  This option is used
93# only when CPU_PPRO2CELERON is defined and Mendocino Celeron is detected.
94# The default value is 5.
95#
96# CPU_LOOP_EN prevents flushing the prefetch buffer if the destination
97# of a jump is already present in the prefetch buffer on Cyrix 5x86(NOTE
98# 1).
99#
100# CPU_PPRO2CELERON enables L2 cache of Mendocino Celeron CPUs.  This option
101# is useful when you use Socket 8 to Socket 370 converter, because most Pentium
102# Pro BIOSs do not enable L2 cache of Mendocino Celeron CPUs.
103#
104# CPU_RSTK_EN enables return stack on Cyrix 5x86 (NOTE 1).
105#
106# CPU_SUSP_HLT enables suspend on HALT.  If this option is set, CPU
107# enters suspend mode following execution of HALT instruction.
108#
109# CPU_UPGRADE_HW_CACHE eliminates unneeded cache flush instruction(s).
110#
111# CPU_WT_ALLOC enables write allocation on Cyrix 6x86/6x86MX and AMD
112# K5/K6/K6-2 CPUs.
113#
114# CYRIX_CACHE_WORKS enables CPU cache on Cyrix 486 CPUs with cache
115# flush at hold state.
116#
117# CYRIX_CACHE_REALLY_WORKS enables (1) CPU cache on Cyrix 486 CPUs
118# without cache flush at hold state, and (2) write-back CPU cache on
119# Cyrix 6x86 whose revision < 2.7 (NOTE 2).
120#
121# NO_F00F_HACK disables the hack that prevents Pentiums (and ONLY
122# Pentiums) from locking up when a LOCK CMPXCHG8B instruction is
123# executed.  This option is only needed if I586_CPU is also defined,
124# and should be included for any non-Pentium CPU that defines it.
125#
126# NO_MEMORY_HOLE is an optimisation for systems with AMD K6 processors
127# which indicates that the 15-16MB range is *definitely* not being
128# occupied by an ISA memory hole.
129#
130# NOTE 1: The options, CPU_BTB_EN, CPU_LOOP_EN, CPU_IORT,
131# CPU_LOOP_EN and CPU_RSTK_EN should not be used because of CPU bugs.
132# These options may crash your system.
133#
134# NOTE 2: If CYRIX_CACHE_REALLY_WORKS is not set, CPU cache is enabled
135# in write-through mode when revision < 2.7.  If revision of Cyrix
136# 6x86 >= 2.7, CPU cache is always enabled in write-back mode.
137#
138# NOTE 3: This option may cause failures for software that requires
139# locked cycles in order to operate correctly.
140#
141options 	CPU_BLUELIGHTNING_3X
142options 	CPU_BLUELIGHTNING_FPU_OP_CACHE
143options 	CPU_BTB_EN
144options 	CPU_DIRECT_MAPPED_CACHE
145options 	CPU_DISABLE_5X86_LSSER
146options 	CPU_DISABLE_CMPXCHG
147#options 	CPU_DISABLE_SSE
148options 	CPU_FASTER_5X86_FPU
149options 	CPU_I486_ON_386
150options 	CPU_IORT
151options 	CPU_L2_LATENCY=5
152options 	CPU_LOOP_EN
153options 	CPU_PPRO2CELERON
154options 	CPU_RSTK_EN
155options 	CPU_SUSP_HLT
156options 	CPU_UPGRADE_HW_CACHE
157options 	CPU_WT_ALLOC
158options 	CYRIX_CACHE_WORKS
159options 	CYRIX_CACHE_REALLY_WORKS
160#options 	NO_F00F_HACK
161
162# Debug options
163options 	NPX_DEBUG	# enable npx debugging
164
165#
166# PERFMON causes the driver for Pentium/Pentium Pro performance counters
167# to be compiled.  See perfmon(4) for more information.
168#
169options 	PERFMON
170
171
172#####################################################################
173# NETWORKING OPTIONS
174
175#
176# DEVICE_POLLING adds support for mixed interrupt-polling handling
177# of network device drivers, which has significant benefits in terms
178# of robustness to overloads and responsivity, as well as permitting
179# accurate scheduling of the CPU time between kernel network processing
180# and other activities.  The drawback is a moderate (up to 1/HZ seconds)
181# potential increase in response times.
182# It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING
183# to achieve smoother behaviour.
184# Additionally, you can enable/disable polling at runtime with help of
185# the ifconfig(8) utility, and select the CPU fraction reserved to
186# userland with the sysctl variable kern.polling.user_frac
187# (default 50, range 0..100).
188#
189# Not all device drivers support this mode of operation at the time of
190# this writing.  See polling(4) for more details.
191
192options 	DEVICE_POLLING
193
194# BPF_JITTER adds support for BPF just-in-time compiler.
195
196options		BPF_JITTER
197
198
199#####################################################################
200# MISCELLANEOUS DEVICES AND OPTIONS
201
202# 
203# sio: serial ports (see sio(4)), including support for various
204#      PC Card devices, such as Modem and NICs
205#
206#device		sio
207hint.sio.0.at="isa"
208hint.sio.0.port="0x3F8"
209hint.sio.0.flags="0x10"
210hint.sio.0.irq="4"
211
212# `flags' specific to sio(4).
213#	0x10	enable console support for this unit.  Other console flags
214#		(if applicable) are ignored unless this is set.  Enabling
215#		console support does not make the unit the preferred console.
216#		Boot with -h or set boot_serial=YES in the loader.  For sio(4)
217#		specifically, the 0x20 flag can also be set (see above).
218#		Currently, at most one unit can have console support; the
219#		first one (in config file order) with this flag set is
220#		preferred.  Setting this flag for sio0 gives the old behaviour.
221#	0x20	force this unit to be the console (unless there is another
222#		higher priority console).  This replaces the COMCONSOLE option.
223#	0x40	reserve this unit for low level console operations.  Do not
224#		access the device in any normal way.
225#	0x80	use this port for serial line gdb support in ddb.  Also known
226#		as debug port.
227# PnP `flags'
228#	0x1	disable probing of this device.  Used to prevent your modem
229#		from being attached as a PnP modem.
230# Other flags for sio that aren't documented in the man page.
231#	0x20000	enable hardware RTS/CTS and larger FIFOs.  Only works for
232#		ST16650A-compatible UARTs.
233
234# Options for sio:
235options 	COM_ESP			# Code for Hayes ESP.
236options 	COM_MULTIPORT		# Code for some cards with shared IRQs.
237options 	CONSPEED=115200		# Speed for serial console
238					# (default 9600).
239
240device		speaker		#Play IBM BASIC-style noises out your speaker
241hint.speaker.0.at="isa"
242hint.speaker.0.port="0x35"
243device		gzip		#Exec gzipped a.out's.  REQUIRES COMPAT_AOUT!
244device		apm_saver	# Requires APM
245
246
247#####################################################################
248# HARDWARE BUS CONFIGURATION
249
250#
251# ISA bus
252#
253device		isa
254
255#
256# Options for `isa':
257#
258# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A
259# interrupt controller.  This saves about 0.7-1.25 usec for each interrupt.
260# This option breaks suspend/resume on some portables.
261#
262# MAXMEM specifies the amount of RAM on the machine; if this is not
263# specified, FreeBSD will first read the amount of memory from the CMOS
264# RAM, so the amount of memory will initially be limited to 64MB or 16MB
265# depending on the BIOS.  If the BIOS reports 64MB, a memory probe will
266# then attempt to detect the installed amount of RAM.  If this probe
267# fails to detect >64MB RAM you will have to use the MAXMEM option.
268# The amount is in kilobytes, so for a machine with 128MB of RAM, it would
269# be 131072 (128 * 1024).
270#
271# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to
272# reset the CPU for reboot.  This is needed on some systems with broken
273# keyboard controllers.
274
275options 	AUTO_EOI_1
276
277options 	MAXMEM=(128*1024)
278#options 	BROKEN_KEYBOARD_RESET
279options 	EPSON_BOUNCEDMA
280options 	EPSON_MEMWIN
281
282#
283# PCI bus & PCI options:
284#
285device		pci
286
287#
288# AGP GART support
289device		agp
290
291
292#####################################################################
293# HARDWARE DEVICE CONFIGURATION
294
295# PC98 keyboard
296device		pckbd
297hint.pckbd.0.at="isa"
298hint.pckbd.0.port="0x041"
299hint.pckbd.0.irq="1"
300
301# GDC screen
302device		gdc
303hint.gdc.0.at="isa"
304options 	LINE30
305
306#
307# The Numeric Processing eXtension driver.  This is non-optional.
308device		npx
309
310#
311# `flags' for npx0:
312#	0x01	don't use the npx registers to optimize bcopy.
313#	0x02	don't use the npx registers to optimize bzero.
314#	0x04	don't use the npx registers to optimize copyin or copyout.
315# The npx registers are normally used to optimize copying and zeroing when
316# all of the following conditions are satisfied:
317#	I586_CPU is an option
318#	the cpu is an i586 (perhaps not a Pentium)
319#	the probe for npx0 succeeds
320#	INT 16 exception handling works.
321# Then copying and zeroing using the npx registers is normally 30-100% faster.
322# The flags can be used to control cases where it doesn't work or is slower.
323# Setting them at boot time using hints works right (the optimizations
324# are not used until later in the bootstrap when npx0 is attached).
325# Flag 0x08 automatically disables the i586 optimized routines.
326#
327
328#
329# Optional devices:
330#
331
332# 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support.  This will create
333# the /dev/3dfx0 device to work with glide implementations.  This should get
334# linked to /dev/3dfx and /dev/voodoo.  Note that this is not the same as
335# the tdfx DRI module from XFree86 and is completely unrelated.
336#
337# To enable Linuxulator support, one must also include COMPAT_LINUX in the
338# config as well.  The other option is to load both as modules.
339
340device		tdfx			# Enable 3Dfx Voodoo support
341device		tdfx_linux		# Enable Linuxulator support
342
343# Direct Rendering modules for 3D acceleration.
344device		drm		# DRM core module required by DRM drivers
345device		mach64drm	# ATI Rage Pro, Rage Mobility P/M, Rage XL
346device		mgadrm		# AGP Matrox G200, G400, G450, G550
347device		r128drm		# ATI Rage 128
348device		radeondrm	# ATI Radeon
349device		savagedrm	# S3 Savage3D, Savage4
350device		sisdrm		# SiS 300/305, 540, 630
351device		tdfxdrm		# 3dfx Voodoo 3/4/5 and Banshee
352options 	DRM_DEBUG	# Include debug printfs (slow)
353
354#
355# Bus mouse
356#
357device		mse
358hint.mse.0.at="isa"
359hint.mse.0.port="0x7fd9"
360hint.mse.0.irq="13"
361
362#
363# Network interfaces:
364#
365
366# ar:   Arnet SYNC/570i hdlc sync 2/4 port V.35/X.21 serial driver
367#       (requires sppp)
368# ath:  Atheros a/b/g WiFi adapters (requires ath_hal and wlan)
369# ce:   Cronyx Tau-PCI/32 sync single/dual port G.703/E1 serial adaptor
370#       with 32 HDLC subchannels (requires sppp (default), or NETGRAPH if
371#       NETGRAPH_CRONYX is configured)
372# cp:   Cronyx Tau-PCI sync single/dual/four port
373#       V.35/RS-232/RS-530/RS-449/X.21/G.703/E1/E3/T3/STS-1
374#       serial adaptor (requires sppp (default), or NETGRAPH if
375#       NETGRAPH_CRONYX is configured)
376# cs:   IBM Etherjet and other Crystal Semi CS89x0-based adapters and pccard
377# ed:   Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503
378#       HP PC Lan+, various PC Card devices
379#       (requires miibus)
380# ie:   AT&T StarLAN 10 and EN100; 3Com 3C507; unknown NI5210;
381#       Intel EtherExpress
382# ral:	Ralink Technology IEEE 802.11 wireless adapter
383# sbni: Granch SBNI12-xx ISA and PCI adapters
384# sr:   RISCom/N2 hdlc sync 1/2 port V.35/X.21 serial driver (requires sppp)
385# ural:	Ralink Technology RT2500USB IEEE 802.11 wireless adapter
386
387# Order for ISA/EISA devices is important here
388
389device		ar
390device		ce
391device		cp
392device		cs
393device		ed
394hint.ed.0.at="isa"
395hint.ed.0.port="0x280"
396hint.ed.0.irq="5"
397hint.ed.0.maddr="0xd8000"
398device		ie			# Hints only required for Starlan
399hint.ie.2.at="isa"
400hint.ie.2.port="0x300"
401hint.ie.2.irq="5"
402hint.ie.2.maddr="0xd0000"
403# Hint for the PC98-only C-NET(98)S C-bus front-end of le(4).
404hint.le.0.at="isa"
405hint.le.0.port="0x03d0"
406hint.le.0.irq="6"
407device		ral
408device		sbni
409hint.sbni.0.at="isa"
410hint.sbni.0.port="0x210"
411hint.sbni.0.irq="0xefdead"
412hint.sbni.0.flags="0"
413device		snc
414hint.snc.0.at="isa"
415hint.snc.0.port="0x888"
416hint.snc.0.irq="6"
417hint.snc.0.maddr="0xc0000"
418device		sr
419device		ural
420
421device		ath		# Atheros pci/cardbus NIC's
422device		ath_hal		# pci/cardbus chip support
423#device		ath_ar5210	# AR5210 chips
424#device		ath_ar5211	# AR5211 chips
425#device		ath_ar5212	# AR5212 chips
426#device		ath_rf2413
427#device		ath_rf2417
428#device		ath_rf2425
429#device		ath_rf5111
430#device		ath_rf5112
431#device		ath_rf5413
432#device		ath_ar5416	# AR5416 chips
433options		AH_SUPPORT_AR5416	# enable AR5416 tx/rx descriptors
434device		ath_rate_sample	# SampleRate tx rate control for ath
435
436#
437# SCSI host adapters:
438#
439# ct: WD33C93[ABC] based SCSI host adapters.
440# ncv: NCR 53C500 based SCSI host adapters.
441# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters.
442# stg: TMC 18C30, 18C50 based SCSI host adapters.
443
444device		ct
445hint.ct.0.at="isa"
446device		ncv
447device		nsp
448device		stg
449
450#
451# SafeNet crypto driver: can be moved to the MI NOTES as soon as
452# it's tested on a big-endian machine
453#
454device		safe		# SafeNet 1141
455options 	SAFE_DEBUG	# enable debugging support: hw.safe.debug
456options 	SAFE_RNDTEST	# enable rndtest support
457
458#####################################################################
459
460#
461# Miscellaneous hardware:
462#
463# apm: Laptop Advanced Power Management (experimental)
464# pmtimer: Timer device driver for power management events (APM or ACPI)
465
466# Notes on APM
467#  The flags takes the following meaning for apm0:
468#    0x0020  Statclock is broken.
469
470device		apm
471hint.apm.0.flags="0x20"
472device		canbus
473device		canbepm
474device		olpt
475hint.olpt.0.at="isa"
476hint.olpt.0.port="0x040"
477device		pmc
478hint.pmc.0.at="isa"
479hint.pmc.0.port="0x8f0"
480device		pmtimer			# Adjust system timer at wakeup time
481
482#
483# Laptop/Notebook options:
484#
485# See also:
486#  apm under `Miscellaneous hardware'
487# above.
488
489# For older notebooks that signal a powerfail condition (external
490# power supply dropped, or battery state low) by issuing an NMI:
491
492options 	POWERFAIL_NMI	# make it beep instead of panicing
493
494#
495# Set the number of PV entries per process.  Increasing this can
496# stop panics related to heavy use of shared memory.  However, that can
497# (combined with large amounts of physical memory) cause panics at
498# boot time due the kernel running out of VM space.
499#
500# If you're tweaking this, you might also want to increase the sysctls
501# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
502#
503# The value below is the one more than the default.
504#
505options 	PMAP_SHPGPERPROC=201
506
507#
508# Change the size of the kernel virtual address space.  Due to
509# constraints in loader(8) on i386, this must be a multiple of 4.
510# 256 = 1 GB of kernel address space.  Increasing this also causes
511# a reduction of the address space in user processes.  512 splits
512# the 4GB cpu address space in half (2GB user, 2GB kernel).
513#
514options 	KVA_PAGES=260
515
516
517#####################################################################
518# ABI Emulation
519
520# Enable iBCS2 runtime support for SCO and ISC binaries
521options 	IBCS2
522
523# Emulate spx device for client side of SVR3 local X interface
524options 	SPX_HACK
525
526# Enable Linux ABI emulation
527options 	COMPAT_LINUX
528
529# Enable i386 a.out binary support
530options 	COMPAT_AOUT
531
532# Enable the linux-like proc filesystem support (requires COMPAT_LINUX
533# and PSEUDOFS)
534options 	LINPROCFS
535
536# Enable the linux-like sys filesystem support (requires COMPAT_LINUX
537# and PSEUDOFS)
538options 	LINSYSFS
539
540#
541# SysVR4 ABI emulation
542#
543# The svr4 ABI emulator can be statically compiled into the kernel or loaded as
544# a KLD module.
545# The STREAMS network emulation code can also be compiled statically or as a
546# module.  If loaded as a module, it must be loaded before the svr4 module
547# (the /usr/sbin/svr4 script does this for you).  If compiling statically,
548# the `streams' device must be configured into any kernel which also
549# specifies COMPAT_SVR4.  It is possible to have a statically-configured
550# STREAMS device and a dynamically loadable svr4 emulator;  the /usr/sbin/svr4
551# script understands that it doesn't need to load the `streams' module under
552# those circumstances.
553# Caveat:  At this time, `options KTRACE' is required for the svr4 emulator
554# (whether static or dynamic).
555#
556options 	COMPAT_SVR4	# build emulator statically
557options 	DEBUG_SVR4	# enable verbose debugging
558device		streams		# STREAMS network driver (required for svr4).
559
560
561#####################################################################
562# VM OPTIONS
563
564# Disable the 4 MByte page PSE CPU feature.  The PSE feature allows the
565# kernel to use 4 MByte pages to map the kernel instead of 4k pages.
566# This saves on the amount of memory needed for page tables needed to
567# map the kernel.  You should only disable this feature as a temporary
568# workaround if you are having problems with it enabled.
569#
570#options 	DISABLE_PSE
571
572# Disable the global pages PGE CPU feature.  The PGE feature allows pages
573# to be marked with the PG_G bit.  TLB entries for these pages are not
574# flushed from the cache when %cr3 is reloaded.  This can make context
575# switches less expensive.  You should only disable this feature as a
576# temporary workaround if you are having problems with it enabled.
577#
578#options 	DISABLE_PG_G
579
580# KSTACK_PAGES is the number of memory pages to assign to the kernel
581# stack of each thread.
582
583options 	KSTACK_PAGES=3
584
585#####################################################################
586
587# More undocumented options for linting.
588# Note that documenting these are not considered an affront.
589
590options 	FB_INSTALL_CDEV		# install a CDEV entry in /dev
591
592options 	I586_PMC_GUPROF=0x70000
593options 	KBDIO_DEBUG=2
594options 	KBD_MAXRETRY=4
595options 	KBD_MAXWAIT=6
596options 	KBD_RESETDELAY=201
597
598options 	TIMER_FREQ=((14318182+6)/12)
599
600options 	VM_KMEM_SIZE
601options 	VM_KMEM_SIZE_MAX
602options 	VM_KMEM_SIZE_SCALE
603
604
605#####################################################################
606# Devices we don't want to deal with
607
608nodevice	bt
609nodevice	adw
610nodevice	aha
611nodevice	ahb
612nodevice	ahd
613nodevice	mpt
614nodevice	trm
615nodevice	wds
616nodevice	dpt
617nodevice	ciss
618nodevice	iir
619nodevice	mly
620nodevice	ida		# Compaq Smart RAID
621nodevice	mlx		# Mylex DAC960
622nodevice	amr		# AMI MegaRAID
623nodevice	twe		# 3ware ATA RAID
624nodevice	ataraid
625nodevice	cm
626nodevice	ex
627nodevice	fea
628nodevice	intpm
629nodevice	alpm
630nodevice	ichsmb
631nodevice	viapm
632nodevice	amdpm
633nodevice	amdsmb
634nodevice	nfpm
635nodevice	nfsmb
636
637
638#####################################################################
639# Options we don't want to deal with
640
641nooption	AHD_DEBUG
642nooption	AHD_DEBUG_OPTS
643nooption	AHD_REG_PRETTY_PRINT
644nooption	ADW_ALLOW_MEMIO
645nooption	DPT_LOST_IRQ
646nooption	DPT_RESET_HBA
647nooption	DPT_TIMEOUT_FACTOR
648nooption	AAC_DEBUG
649
650
651#####################################################################
652# Make options we don't want to deal with
653