NOTES revision 181905
1111314Snyan# 2111314Snyan# NOTES -- Lines that can be cut/pasted into kernel and hints configs. 3111314Snyan# 4111314Snyan# This file contains machine dependent kernel configuration notes. For 5111314Snyan# machine independent notes, look in /sys/conf/NOTES. 6111314Snyan# 7111314Snyan# $FreeBSD: head/sys/pc98/conf/NOTES 181905 2008-08-20 08:31:58Z ed $ 8111314Snyan# 9111314Snyan 10125234Snyan# 11127520Snyan# We want LINT to cover profiling as well. 12111314Snyanprofile 2 13111314Snyan 14111314Snyan 15111314Snyan##################################################################### 16111314Snyan# SMP OPTIONS: 17111314Snyan# 18122755Snyan# The apic device enables the use of the I/O APIC for interrupt delivery. 19122755Snyan# The apic device can be used in both UP and SMP kernels, but is required 20122755Snyan# for SMP kernels. Thus, the apic device is not strictly an SMP option, 21122755Snyan# but it is a prerequisite for SMP. 22111314Snyan# 23111314Snyan 24111314Snyan# Mandatory: 25122056Snyandevice apic # I/O apic 26124795Snyan 27142783Snyan# 28142783Snyan# Watchdog routines. 29142783Snyan# 30142783Snyanoptions MP_WATCHDOG 31142783Snyan 32145743Snyan# Debugging options. 33145743Snyan# 34151634Sjhboptions STOP_NMI # Stop CPUS using NMI instead of IPI 35145743Snyan 36145743Snyan 37111314Snyan 38111314Snyan##################################################################### 39111314Snyan# CPU OPTIONS 40111314Snyan 41111314Snyan# 42111314Snyan# You must specify at least one CPU (the one you intend to run on); 43111314Snyan# deleting the specification for CPUs you don't need to use may make 44111314Snyan# parts of the system run faster. 45111314Snyan# 46111314Snyancpu I486_CPU 47111314Snyancpu I586_CPU # aka Pentium(tm) 48111314Snyancpu I686_CPU # aka Pentium Pro(tm) 49111314Snyan 50111314Snyan# 51111314Snyan# Options for CPU features. 52111314Snyan# 53124795Snyan# CPU_BLUELIGHTNING_3X enables triple-clock mode on IBM Blue Lightning 54124795Snyan# CPU if CPU supports it. The default is double-clock mode on 55124795Snyan# BlueLightning CPU box. 56124795Snyan# 57111314Snyan# CPU_BLUELIGHTNING_FPU_OP_CACHE enables FPU operand cache on IBM 58111314Snyan# BlueLightning CPU. It works only with Cyrix FPU, and this option 59111314Snyan# should not be used with Intel FPU. 60111314Snyan# 61111314Snyan# CPU_BTB_EN enables branch target buffer on Cyrix 5x86 (NOTE 1). 62111314Snyan# 63111314Snyan# CPU_CYRIX_NO_LOCK enables weak locking for the entire address space 64111314Snyan# of Cyrix 6x86 and 6x86MX CPUs by setting the NO_LOCK bit of CCR1. 65111314Snyan# Otherwise, the NO_LOCK bit of CCR1 is cleared. (NOTE 3) 66111314Snyan# 67124795Snyan# CPU_DIRECT_MAPPED_CACHE sets L1 cache of Cyrix 486DLC CPU in direct 68124795Snyan# mapped mode. Default is 2-way set associative mode. 69124795Snyan# 70127520Snyan# CPU_DISABLE_5X86_LSSER disables load store serialize (i.e., enables 71111314Snyan# reorder). This option should not be used if you use memory mapped 72111314Snyan# I/O device(s). 73111314Snyan# 74125234Snyan# CPU_DISABLE_CMPXCHG disables the CMPXCHG instruction on > i386 IA32 75137526Snyan# machines. VmWare 3.x seems to emulate this instruction poorly, causing 76137526Snyan# the guest OS to run very slowly. This problem appears to be fixed in 77137526Snyan# VmWare 4.x, at least in version 4.5.2, so that enabling this option with 78137526Snyan# VmWare 4.x will result in locking operations to be 20-30 times slower. 79137526Snyan# Enabling this with an SMP kernel will cause the kernel to be unusable. 80124795Snyan# 81127520Snyan# CPU_DISABLE_SSE explicitly prevents I686_CPU from turning on SSE. 82124795Snyan# 83111314Snyan# CPU_FASTER_5X86_FPU enables faster FPU exception handler. 84111314Snyan# 85111314Snyan# CPU_I486_ON_386 enables CPU cache on i486 based CPU upgrade products 86111314Snyan# for i386 machines. 87111314Snyan# 88111314Snyan# CPU_IORT defines I/O clock delay time (NOTE 1). Default values of 89111314Snyan# I/O clock delay time on Cyrix 5x86 and 6x86 are 0 and 7,respectively 90111314Snyan# (no clock delay). 91111314Snyan# 92125234Snyan# CPU_L2_LATENCY specifies the L2 cache latency value. This option is used 93111314Snyan# only when CPU_PPRO2CELERON is defined and Mendocino Celeron is detected. 94111314Snyan# The default value is 5. 95111314Snyan# 96111314Snyan# CPU_LOOP_EN prevents flushing the prefetch buffer if the destination 97111314Snyan# of a jump is already present in the prefetch buffer on Cyrix 5x86(NOTE 98111314Snyan# 1). 99111314Snyan# 100111314Snyan# CPU_PPRO2CELERON enables L2 cache of Mendocino Celeron CPUs. This option 101111314Snyan# is useful when you use Socket 8 to Socket 370 converter, because most Pentium 102111314Snyan# Pro BIOSs do not enable L2 cache of Mendocino Celeron CPUs. 103111314Snyan# 104111314Snyan# CPU_RSTK_EN enables return stack on Cyrix 5x86 (NOTE 1). 105111314Snyan# 106111314Snyan# CPU_SUSP_HLT enables suspend on HALT. If this option is set, CPU 107111314Snyan# enters suspend mode following execution of HALT instruction. 108111314Snyan# 109111314Snyan# CPU_UPGRADE_HW_CACHE eliminates unneeded cache flush instruction(s). 110111314Snyan# 111111314Snyan# CPU_WT_ALLOC enables write allocation on Cyrix 6x86/6x86MX and AMD 112125234Snyan# K5/K6/K6-2 CPUs. 113111314Snyan# 114111314Snyan# CYRIX_CACHE_WORKS enables CPU cache on Cyrix 486 CPUs with cache 115111314Snyan# flush at hold state. 116111314Snyan# 117111314Snyan# CYRIX_CACHE_REALLY_WORKS enables (1) CPU cache on Cyrix 486 CPUs 118111314Snyan# without cache flush at hold state, and (2) write-back CPU cache on 119111314Snyan# Cyrix 6x86 whose revision < 2.7 (NOTE 2). 120111314Snyan# 121111314Snyan# NO_F00F_HACK disables the hack that prevents Pentiums (and ONLY 122111314Snyan# Pentiums) from locking up when a LOCK CMPXCHG8B instruction is 123111314Snyan# executed. This option is only needed if I586_CPU is also defined, 124111314Snyan# and should be included for any non-Pentium CPU that defines it. 125111314Snyan# 126111314Snyan# NO_MEMORY_HOLE is an optimisation for systems with AMD K6 processors 127111314Snyan# which indicates that the 15-16MB range is *definitely* not being 128111314Snyan# occupied by an ISA memory hole. 129111314Snyan# 130111314Snyan# NOTE 1: The options, CPU_BTB_EN, CPU_LOOP_EN, CPU_IORT, 131111314Snyan# CPU_LOOP_EN and CPU_RSTK_EN should not be used because of CPU bugs. 132111314Snyan# These options may crash your system. 133111314Snyan# 134111314Snyan# NOTE 2: If CYRIX_CACHE_REALLY_WORKS is not set, CPU cache is enabled 135111314Snyan# in write-through mode when revision < 2.7. If revision of Cyrix 136111314Snyan# 6x86 >= 2.7, CPU cache is always enabled in write-back mode. 137111314Snyan# 138111314Snyan# NOTE 3: This option may cause failures for software that requires 139111314Snyan# locked cycles in order to operate correctly. 140111314Snyan# 141124795Snyanoptions CPU_BLUELIGHTNING_3X 142111314Snyanoptions CPU_BLUELIGHTNING_FPU_OP_CACHE 143111314Snyanoptions CPU_BTB_EN 144111314Snyanoptions CPU_DIRECT_MAPPED_CACHE 145111314Snyanoptions CPU_DISABLE_5X86_LSSER 146124795Snyanoptions CPU_DISABLE_CMPXCHG 147124795Snyan#options CPU_DISABLE_SSE 148111314Snyanoptions CPU_FASTER_5X86_FPU 149111314Snyanoptions CPU_I486_ON_386 150111314Snyanoptions CPU_IORT 151111314Snyanoptions CPU_L2_LATENCY=5 152111314Snyanoptions CPU_LOOP_EN 153111314Snyanoptions CPU_PPRO2CELERON 154111314Snyanoptions CPU_RSTK_EN 155111314Snyanoptions CPU_SUSP_HLT 156111314Snyanoptions CPU_UPGRADE_HW_CACHE 157111314Snyanoptions CPU_WT_ALLOC 158111314Snyanoptions CYRIX_CACHE_WORKS 159111314Snyanoptions CYRIX_CACHE_REALLY_WORKS 160111314Snyan#options NO_F00F_HACK 161111314Snyan 162111314Snyan# Debug options 163124795Snyanoptions NPX_DEBUG # enable npx debugging 164111314Snyan 165111314Snyan# 166111314Snyan# PERFMON causes the driver for Pentium/Pentium Pro performance counters 167111314Snyan# to be compiled. See perfmon(4) for more information. 168111314Snyan# 169111314Snyanoptions PERFMON 170111314Snyan 171111314Snyan 172111314Snyan##################################################################### 173111314Snyan# NETWORKING OPTIONS 174111314Snyan 175111314Snyan# 176111314Snyan# DEVICE_POLLING adds support for mixed interrupt-polling handling 177111314Snyan# of network device drivers, which has significant benefits in terms 178111314Snyan# of robustness to overloads and responsivity, as well as permitting 179111314Snyan# accurate scheduling of the CPU time between kernel network processing 180124795Snyan# and other activities. The drawback is a moderate (up to 1/HZ seconds) 181111314Snyan# potential increase in response times. 182111314Snyan# It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING 183111314Snyan# to achieve smoother behaviour. 184151051Sglebius# Additionally, you can enable/disable polling at runtime with help of 185151051Sglebius# the ifconfig(8) utility, and select the CPU fraction reserved to 186151051Sglebius# userland with the sysctl variable kern.polling.user_frac 187151051Sglebius# (default 50, range 0..100). 188111314Snyan# 189124408Snyan# Not all device drivers support this mode of operation at the time of 190124408Snyan# this writing. See polling(4) for more details. 191111314Snyan 192111314Snyanoptions DEVICE_POLLING 193111314Snyan 194177586Sjkim# BPF_JITTER adds support for BPF just-in-time compiler. 195177586Sjkim 196177586Sjkimoptions BPF_JITTER 197177586Sjkim 198111314Snyan 199111314Snyan##################################################################### 200111314Snyan# MISCELLANEOUS DEVICES AND OPTIONS 201111314Snyan 202160813Smarcel# 203160813Smarcel# sio: serial ports (see sio(4)), including support for various 204163494Simp# PC Card devices, such as Modem and NICs 205160813Smarcel# 206181905Sed#device sio 207160813Smarcelhint.sio.0.at="isa" 208160813Smarcelhint.sio.0.port="0x3F8" 209160813Smarcelhint.sio.0.flags="0x10" 210160813Smarcelhint.sio.0.irq="4" 211160813Smarcel 212160813Smarcel# `flags' specific to sio(4). 213160813Smarcel# 0x10 enable console support for this unit. Other console flags 214160813Smarcel# (if applicable) are ignored unless this is set. Enabling 215160813Smarcel# console support does not make the unit the preferred console. 216160813Smarcel# Boot with -h or set boot_serial=YES in the loader. For sio(4) 217160813Smarcel# specifically, the 0x20 flag can also be set (see above). 218160813Smarcel# Currently, at most one unit can have console support; the 219160813Smarcel# first one (in config file order) with this flag set is 220160813Smarcel# preferred. Setting this flag for sio0 gives the old behaviour. 221160813Smarcel# 0x20 force this unit to be the console (unless there is another 222160813Smarcel# higher priority console). This replaces the COMCONSOLE option. 223160813Smarcel# 0x40 reserve this unit for low level console operations. Do not 224160813Smarcel# access the device in any normal way. 225160813Smarcel# 0x80 use this port for serial line gdb support in ddb. Also known 226160813Smarcel# as debug port. 227160813Smarcel# PnP `flags' 228160813Smarcel# 0x1 disable probing of this device. Used to prevent your modem 229160813Smarcel# from being attached as a PnP modem. 230160813Smarcel# Other flags for sio that aren't documented in the man page. 231160813Smarcel# 0x20000 enable hardware RTS/CTS and larger FIFOs. Only works for 232160813Smarcel# ST16650A-compatible UARTs. 233160813Smarcel 234160813Smarcel# Options for sio: 235160813Smarceloptions COM_ESP # Code for Hayes ESP. 236160813Smarceloptions COM_MULTIPORT # Code for some cards with shared IRQs. 237160813Smarceloptions CONSPEED=115200 # Speed for serial console 238160813Smarcel # (default 9600). 239160813Smarcel 240111314Snyandevice speaker #Play IBM BASIC-style noises out your speaker 241111314Snyanhint.speaker.0.at="isa" 242111314Snyanhint.speaker.0.port="0x35" 243124795Snyandevice gzip #Exec gzipped a.out's. REQUIRES COMPAT_AOUT! 244111314Snyandevice apm_saver # Requires APM 245111314Snyan 246111314Snyan 247111314Snyan##################################################################### 248111314Snyan# HARDWARE BUS CONFIGURATION 249111314Snyan 250111314Snyan# 251111314Snyan# ISA bus 252111314Snyan# 253111314Snyandevice isa 254111314Snyan 255111314Snyan# 256111314Snyan# Options for `isa': 257111314Snyan# 258111314Snyan# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A 259111314Snyan# interrupt controller. This saves about 0.7-1.25 usec for each interrupt. 260111314Snyan# This option breaks suspend/resume on some portables. 261111314Snyan# 262111314Snyan# MAXMEM specifies the amount of RAM on the machine; if this is not 263111314Snyan# specified, FreeBSD will first read the amount of memory from the CMOS 264111314Snyan# RAM, so the amount of memory will initially be limited to 64MB or 16MB 265111314Snyan# depending on the BIOS. If the BIOS reports 64MB, a memory probe will 266111314Snyan# then attempt to detect the installed amount of RAM. If this probe 267111314Snyan# fails to detect >64MB RAM you will have to use the MAXMEM option. 268111314Snyan# The amount is in kilobytes, so for a machine with 128MB of RAM, it would 269111314Snyan# be 131072 (128 * 1024). 270111314Snyan# 271111314Snyan# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to 272111314Snyan# reset the CPU for reboot. This is needed on some systems with broken 273111314Snyan# keyboard controllers. 274111314Snyan 275111314Snyanoptions AUTO_EOI_1 276111314Snyan 277111314Snyanoptions MAXMEM=(128*1024) 278111314Snyan#options BROKEN_KEYBOARD_RESET 279111314Snyanoptions EPSON_BOUNCEDMA 280111314Snyanoptions EPSON_MEMWIN 281111314Snyan 282111314Snyan# 283111314Snyan# PCI bus & PCI options: 284111314Snyan# 285111314Snyandevice pci 286111314Snyan 287111314Snyan# 288111314Snyan# AGP GART support 289111314Snyandevice agp 290111314Snyan 291111314Snyan 292111314Snyan##################################################################### 293111314Snyan# HARDWARE DEVICE CONFIGURATION 294111314Snyan 295111314Snyan# PC98 keyboard 296111314Snyandevice pckbd 297111314Snyanhint.pckbd.0.at="isa" 298111314Snyanhint.pckbd.0.port="0x041" 299111314Snyanhint.pckbd.0.irq="1" 300111314Snyan 301111314Snyan# GDC screen 302111314Snyandevice gdc 303111314Snyanhint.gdc.0.at="isa" 304111314Snyanoptions LINE30 305111314Snyan 306111314Snyan# 307131815Snyan# The Numeric Processing eXtension driver. This is non-optional. 308111314Snyandevice npx 309111314Snyan 310111314Snyan# 311111314Snyan# `flags' for npx0: 312111314Snyan# 0x01 don't use the npx registers to optimize bcopy. 313111314Snyan# 0x02 don't use the npx registers to optimize bzero. 314111314Snyan# 0x04 don't use the npx registers to optimize copyin or copyout. 315111314Snyan# The npx registers are normally used to optimize copying and zeroing when 316111314Snyan# all of the following conditions are satisfied: 317111314Snyan# I586_CPU is an option 318111314Snyan# the cpu is an i586 (perhaps not a Pentium) 319111314Snyan# the probe for npx0 succeeds 320111314Snyan# INT 16 exception handling works. 321111314Snyan# Then copying and zeroing using the npx registers is normally 30-100% faster. 322111314Snyan# The flags can be used to control cases where it doesn't work or is slower. 323140371Sru# Setting them at boot time using hints works right (the optimizations 324111314Snyan# are not used until later in the bootstrap when npx0 is attached). 325111314Snyan# Flag 0x08 automatically disables the i586 optimized routines. 326111314Snyan# 327111314Snyan 328111314Snyan# 329111314Snyan# Optional devices: 330111314Snyan# 331111314Snyan 332124795Snyan# 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support. This will create 333124795Snyan# the /dev/3dfx0 device to work with glide implementations. This should get 334124795Snyan# linked to /dev/3dfx and /dev/voodoo. Note that this is not the same as 335111314Snyan# the tdfx DRI module from XFree86 and is completely unrelated. 336111314Snyan# 337111314Snyan# To enable Linuxulator support, one must also include COMPAT_LINUX in the 338156272Snyan# config as well. The other option is to load both as modules. 339111314Snyan 340126708Snyandevice tdfx # Enable 3Dfx Voodoo support 341156272Snyandevice tdfx_linux # Enable Linuxulator support 342111314Snyan 343145183Snyan# Direct Rendering modules for 3D acceleration. 344145183Snyandevice drm # DRM core module required by DRM drivers 345145183Snyandevice mach64drm # ATI Rage Pro, Rage Mobility P/M, Rage XL 346145183Snyandevice mgadrm # AGP Matrox G200, G400, G450, G550 347145183Snyandevice r128drm # ATI Rage 128 348148235Snyandevice radeondrm # ATI Radeon 349152952Snyandevice savagedrm # S3 Savage3D, Savage4 350145183Snyandevice sisdrm # SiS 300/305, 540, 630 351145183Snyandevice tdfxdrm # 3dfx Voodoo 3/4/5 and Banshee 352145183Snyanoptions DRM_DEBUG # Include debug printfs (slow) 353111314Snyan 354111314Snyan# 355111314Snyan# Bus mouse 356111314Snyan# 357111314Snyandevice mse 358111314Snyanhint.mse.0.at="isa" 359111314Snyanhint.mse.0.port="0x7fd9" 360111314Snyanhint.mse.0.irq="13" 361111314Snyan 362111314Snyan# 363111314Snyan# Network interfaces: 364111314Snyan# 365111314Snyan 366111314Snyan# ar: Arnet SYNC/570i hdlc sync 2/4 port V.35/X.21 serial driver 367111314Snyan# (requires sppp) 368158357Snyan# ath: Atheros a/b/g WiFi adapters (requires ath_hal and wlan) 369155215Snyan# ce: Cronyx Tau-PCI/32 sync single/dual port G.703/E1 serial adaptor 370155215Snyan# with 32 HDLC subchannels (requires sppp (default), or NETGRAPH if 371155215Snyan# NETGRAPH_CRONYX is configured) 372129384Snyan# cp: Cronyx Tau-PCI sync single/dual/four port 373129384Snyan# V.35/RS-232/RS-530/RS-449/X.21/G.703/E1/E3/T3/STS-1 374129384Snyan# serial adaptor (requires sppp (default), or NETGRAPH if 375129384Snyan# NETGRAPH_CRONYX is configured) 376153581Simp# cs: IBM Etherjet and other Crystal Semi CS89x0-based adapters and pccard 377111314Snyan# ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503 378150555Simp# HP PC Lan+, various PC Card devices 379111314Snyan# (requires miibus) 380111314Snyan# ie: AT&T StarLAN 10 and EN100; 3Com 3C507; unknown NI5210; 381111314Snyan# Intel EtherExpress 382159549Sjhb# ral: Ralink Technology IEEE 802.11 wireless adapter 383111314Snyan# sr: RISCom/N2 hdlc sync 1/2 port V.35/X.21 serial driver (requires sppp) 384159549Sjhb# ural: Ralink Technology RT2500USB IEEE 802.11 wireless adapter 385111314Snyan 386111314Snyan# Order for ISA/EISA devices is important here 387111314Snyan 388111314Snyandevice ar 389155215Snyandevice ce 390129384Snyandevice cp 391153581Simpdevice cs 392111314Snyandevice ed 393111314Snyanhint.ed.0.at="isa" 394111314Snyanhint.ed.0.port="0x280" 395111314Snyanhint.ed.0.irq="5" 396111314Snyanhint.ed.0.maddr="0xd8000" 397112840Smdodddevice ie # Hints only required for Starlan 398112840Smdoddhint.ie.2.at="isa" 399112840Smdoddhint.ie.2.port="0x300" 400112840Smdoddhint.ie.2.irq="5" 401112840Smdoddhint.ie.2.maddr="0xd0000" 402158712Smarius# Hint for the PC98-only C-NET(98)S C-bus front-end of le(4). 403158712Smariushint.le.0.at="isa" 404158712Smariushint.le.0.port="0x03d0" 405158712Smariushint.le.0.irq="6" 406159549Sjhbdevice ral 407111314Snyandevice snc 408111314Snyanhint.snc.0.at="isa" 409111314Snyanhint.snc.0.port="0x888" 410111314Snyanhint.snc.0.irq="6" 411111314Snyanhint.snc.0.maddr="0xc0000" 412111314Snyandevice sr 413159549Sjhbdevice ural 414111314Snyan 415158357Snyandevice ath 416158357Snyandevice ath_hal # Atheros HAL (includes binary component) 417158357Snyan#device ath_rate_amrr # AMRR rate control for ath driver 418158357Snyan#device ath_rate_onoe # Onoe rate control for ath driver 419158357Snyandevice ath_rate_sample # SampleRate rate control for the ath driver 420158357Snyan#device wlan # 802.11 layer 421158357Snyan 422125234Snyan# 423111314Snyan# SCSI host adapters: 424125234Snyan# 425111314Snyan# ct: WD33C93[ABC] based SCSI host adapters. 426111314Snyan# ncv: NCR 53C500 based SCSI host adapters. 427111314Snyan# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters. 428111314Snyan# stg: TMC 18C30, 18C50 based SCSI host adapters. 429111314Snyan 430111314Snyandevice ct 431111314Snyanhint.ct.0.at="isa" 432126708Snyandevice ncv 433126708Snyandevice nsp 434126708Snyandevice stg 435111314Snyan 436111314Snyan# 437117918Snyan# SafeNet crypto driver: can be moved to the MI NOTES as soon as 438117918Snyan# it's tested on a big-endian machine 439117918Snyan# 440117918Snyandevice safe # SafeNet 1141 441142783Snyanoptions SAFE_DEBUG # enable debugging support: hw.safe.debug 442142783Snyanoptions SAFE_RNDTEST # enable rndtest support 443117918Snyan 444117918Snyan##################################################################### 445117918Snyan 446117918Snyan# 447111314Snyan# Miscellaneous hardware: 448111314Snyan# 449111314Snyan# apm: Laptop Advanced Power Management (experimental) 450111314Snyan# pmtimer: Timer device driver for power management events (APM or ACPI) 451111314Snyan 452111314Snyan# Notes on APM 453111314Snyan# The flags takes the following meaning for apm0: 454111314Snyan# 0x0020 Statclock is broken. 455111314Snyan 456111314Snyandevice apm 457111314Snyanhint.apm.0.flags="0x20" 458111314Snyandevice canbus 459111314Snyandevice canbepm 460124795Snyandevice olpt 461124795Snyanhint.olpt.0.at="isa" 462124795Snyanhint.olpt.0.port="0x040" 463128221Simpdevice pmc 464128221Simphint.pmc.0.at="isa" 465128221Simphint.pmc.0.port="0x8f0" 466128221Simpdevice pmtimer # Adjust system timer at wakeup time 467111314Snyan 468111314Snyan# 469111314Snyan# Laptop/Notebook options: 470111314Snyan# 471111314Snyan# See also: 472111314Snyan# apm under `Miscellaneous hardware' 473111314Snyan# above. 474111314Snyan 475111314Snyan# For older notebooks that signal a powerfail condition (external 476111314Snyan# power supply dropped, or battery state low) by issuing an NMI: 477111314Snyan 478111314Snyanoptions POWERFAIL_NMI # make it beep instead of panicing 479111314Snyan 480111314Snyan# 481111314Snyan# Set the number of PV entries per process. Increasing this can 482124795Snyan# stop panics related to heavy use of shared memory. However, that can 483111314Snyan# (combined with large amounts of physical memory) cause panics at 484111314Snyan# boot time due the kernel running out of VM space. 485111314Snyan# 486111314Snyan# If you're tweaking this, you might also want to increase the sysctls 487111314Snyan# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target". 488111314Snyan# 489111314Snyan# The value below is the one more than the default. 490111314Snyan# 491111314Snyanoptions PMAP_SHPGPERPROC=201 492111314Snyan 493111314Snyan# 494111314Snyan# Change the size of the kernel virtual address space. Due to 495111314Snyan# constraints in loader(8) on i386, this must be a multiple of 4. 496111314Snyan# 256 = 1 GB of kernel address space. Increasing this also causes 497111314Snyan# a reduction of the address space in user processes. 512 splits 498111314Snyan# the 4GB cpu address space in half (2GB user, 2GB kernel). 499111314Snyan# 500111314Snyanoptions KVA_PAGES=260 501111314Snyan 502111314Snyan 503111314Snyan##################################################################### 504111314Snyan# ABI Emulation 505111314Snyan 506111314Snyan# Enable iBCS2 runtime support for SCO and ISC binaries 507111314Snyanoptions IBCS2 508111314Snyan 509111314Snyan# Emulate spx device for client side of SVR3 local X interface 510111314Snyanoptions SPX_HACK 511111314Snyan 512111314Snyan# Enable Linux ABI emulation 513111314Snyanoptions COMPAT_LINUX 514111314Snyan 515111314Snyan# Enable i386 a.out binary support 516111314Snyanoptions COMPAT_AOUT 517111314Snyan 518111314Snyan# Enable the linux-like proc filesystem support (requires COMPAT_LINUX 519111314Snyan# and PSEUDOFS) 520111314Snyanoptions LINPROCFS 521111314Snyan 522158381Sambrisko# Enable the linux-like sys filesystem support (requires COMPAT_LINUX 523158381Sambrisko# and PSEUDOFS) 524158381Sambriskooptions LINSYSFS 525158381Sambrisko 526111314Snyan# 527111314Snyan# SysVR4 ABI emulation 528111314Snyan# 529111314Snyan# The svr4 ABI emulator can be statically compiled into the kernel or loaded as 530125234Snyan# a KLD module. 531125234Snyan# The STREAMS network emulation code can also be compiled statically or as a 532111314Snyan# module. If loaded as a module, it must be loaded before the svr4 module 533111314Snyan# (the /usr/sbin/svr4 script does this for you). If compiling statically, 534111314Snyan# the `streams' device must be configured into any kernel which also 535125234Snyan# specifies COMPAT_SVR4. It is possible to have a statically-configured 536111314Snyan# STREAMS device and a dynamically loadable svr4 emulator; the /usr/sbin/svr4 537111314Snyan# script understands that it doesn't need to load the `streams' module under 538111314Snyan# those circumstances. 539111314Snyan# Caveat: At this time, `options KTRACE' is required for the svr4 emulator 540125234Snyan# (whether static or dynamic). 541125234Snyan# 542111314Snyanoptions COMPAT_SVR4 # build emulator statically 543111314Snyanoptions DEBUG_SVR4 # enable verbose debugging 544111314Snyandevice streams # STREAMS network driver (required for svr4). 545111314Snyan 546111314Snyan 547111314Snyan##################################################################### 548111314Snyan# VM OPTIONS 549111314Snyan 550111314Snyan# Disable the 4 MByte page PSE CPU feature. The PSE feature allows the 551130596Snyan# kernel to use 4 MByte pages to map the kernel instead of 4k pages. 552111314Snyan# This saves on the amount of memory needed for page tables needed to 553111314Snyan# map the kernel. You should only disable this feature as a temporary 554111314Snyan# workaround if you are having problems with it enabled. 555111314Snyan# 556111314Snyan#options DISABLE_PSE 557111314Snyan 558111314Snyan# Disable the global pages PGE CPU feature. The PGE feature allows pages 559111314Snyan# to be marked with the PG_G bit. TLB entries for these pages are not 560111314Snyan# flushed from the cache when %cr3 is reloaded. This can make context 561111314Snyan# switches less expensive. You should only disable this feature as a 562111314Snyan# temporary workaround if you are having problems with it enabled. 563111314Snyan# 564111314Snyan#options DISABLE_PG_G 565111314Snyan 566111314Snyan# KSTACK_PAGES is the number of memory pages to assign to the kernel 567111314Snyan# stack of each thread. 568111314Snyan 569111314Snyanoptions KSTACK_PAGES=3 570111314Snyan 571111314Snyan##################################################################### 572111314Snyan 573111314Snyan# More undocumented options for linting. 574111314Snyan# Note that documenting these are not considered an affront. 575111314Snyan 576111314Snyanoptions FB_INSTALL_CDEV # install a CDEV entry in /dev 577111314Snyan 578111314Snyanoptions I586_PMC_GUPROF=0x70000 579111314Snyanoptions KBDIO_DEBUG=2 580111314Snyanoptions KBD_MAXRETRY=4 581111314Snyanoptions KBD_MAXWAIT=6 582111314Snyanoptions KBD_RESETDELAY=201 583111314Snyan 584111314Snyanoptions TIMER_FREQ=((14318182+6)/12) 585111314Snyan 586111314Snyanoptions VM_KMEM_SIZE 587111314Snyanoptions VM_KMEM_SIZE_MAX 588111314Snyanoptions VM_KMEM_SIZE_SCALE 589111314Snyan 590111500Sobrien 591111500Sobrien##################################################################### 592111500Sobrien# Devices we don't want to deal with 593111500Sobrien 594116382Snyannodevice bt 595116382Snyannodevice adw 596111500Sobriennodevice aha 597116382Snyannodevice ahb 598116382Snyannodevice ahd 599116382Snyannodevice mpt 600116382Snyannodevice trm 601111500Sobriennodevice wds 602111500Sobriennodevice dpt 603111500Sobriennodevice ciss 604111500Sobriennodevice iir 605111500Sobriennodevice mly 606111500Sobriennodevice ida # Compaq Smart RAID 607111500Sobriennodevice mlx # Mylex DAC960 608111500Sobriennodevice amr # AMI MegaRAID 609111500Sobriennodevice twe # 3ware ATA RAID 610125086Snyannodevice ataraid 611116382Snyannodevice cm 612116382Snyannodevice ex 613116382Snyannodevice fea 614116382Snyannodevice intpm 615116382Snyannodevice alpm 616116382Snyannodevice ichsmb 617116382Snyannodevice viapm 618116382Snyannodevice amdpm 619153643Snyannodevice amdsmb 620116382Snyannodevice nfpm 621153643Snyannodevice nfsmb 622111582Sru 623111582Sru 624111582Sru##################################################################### 625111582Sru# Options we don't want to deal with 626111582Sru 627116382Snyannooption AHD_DEBUG 628116382Snyannooption AHD_DEBUG_OPTS 629116382Snyannooption AHD_REG_PRETTY_PRINT 630116382Snyannooption ADW_ALLOW_MEMIO 631111582Srunooption DPT_LOST_IRQ 632111582Srunooption DPT_RESET_HBA 633111582Srunooption DPT_TIMEOUT_FACTOR 634116382Snyannooption AAC_DEBUG 635111582Sru 636111582Sru 637111582Sru##################################################################### 638111582Sru# Make options we don't want to deal with 639