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: releng/11.0/sys/pc98/conf/NOTES 298824 2016-04-29 23:53:55Z jhb $ 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 33111314Snyan 34111314Snyan##################################################################### 35111314Snyan# CPU OPTIONS 36111314Snyan 37111314Snyan# 38111314Snyan# You must specify at least one CPU (the one you intend to run on); 39111314Snyan# deleting the specification for CPUs you don't need to use may make 40111314Snyan# parts of the system run faster. 41111314Snyan# 42111314Snyancpu I486_CPU 43111314Snyancpu I586_CPU # aka Pentium(tm) 44111314Snyancpu I686_CPU # aka Pentium Pro(tm) 45111314Snyan 46111314Snyan# 47111314Snyan# Options for CPU features. 48111314Snyan# 49124795Snyan# CPU_BLUELIGHTNING_3X enables triple-clock mode on IBM Blue Lightning 50124795Snyan# CPU if CPU supports it. The default is double-clock mode on 51124795Snyan# BlueLightning CPU box. 52124795Snyan# 53111314Snyan# CPU_BLUELIGHTNING_FPU_OP_CACHE enables FPU operand cache on IBM 54111314Snyan# BlueLightning CPU. It works only with Cyrix FPU, and this option 55111314Snyan# should not be used with Intel FPU. 56111314Snyan# 57111314Snyan# CPU_BTB_EN enables branch target buffer on Cyrix 5x86 (NOTE 1). 58111314Snyan# 59111314Snyan# CPU_CYRIX_NO_LOCK enables weak locking for the entire address space 60111314Snyan# of Cyrix 6x86 and 6x86MX CPUs by setting the NO_LOCK bit of CCR1. 61111314Snyan# Otherwise, the NO_LOCK bit of CCR1 is cleared. (NOTE 3) 62111314Snyan# 63124795Snyan# CPU_DIRECT_MAPPED_CACHE sets L1 cache of Cyrix 486DLC CPU in direct 64124795Snyan# mapped mode. Default is 2-way set associative mode. 65124795Snyan# 66127520Snyan# CPU_DISABLE_5X86_LSSER disables load store serialize (i.e., enables 67111314Snyan# reorder). This option should not be used if you use memory mapped 68111314Snyan# I/O device(s). 69111314Snyan# 70125234Snyan# CPU_DISABLE_CMPXCHG disables the CMPXCHG instruction on > i386 IA32 71137526Snyan# machines. VmWare 3.x seems to emulate this instruction poorly, causing 72137526Snyan# the guest OS to run very slowly. This problem appears to be fixed in 73137526Snyan# VmWare 4.x, at least in version 4.5.2, so that enabling this option with 74137526Snyan# VmWare 4.x will result in locking operations to be 20-30 times slower. 75137526Snyan# Enabling this with an SMP kernel will cause the kernel to be unusable. 76124795Snyan# 77127520Snyan# CPU_DISABLE_SSE explicitly prevents I686_CPU from turning on SSE. 78124795Snyan# 79111314Snyan# CPU_FASTER_5X86_FPU enables faster FPU exception handler. 80111314Snyan# 81111314Snyan# CPU_I486_ON_386 enables CPU cache on i486 based CPU upgrade products 82111314Snyan# for i386 machines. 83111314Snyan# 84111314Snyan# CPU_IORT defines I/O clock delay time (NOTE 1). Default values of 85111314Snyan# I/O clock delay time on Cyrix 5x86 and 6x86 are 0 and 7,respectively 86111314Snyan# (no clock delay). 87111314Snyan# 88125234Snyan# CPU_L2_LATENCY specifies the L2 cache latency value. This option is used 89111314Snyan# only when CPU_PPRO2CELERON is defined and Mendocino Celeron is detected. 90111314Snyan# The default value is 5. 91111314Snyan# 92111314Snyan# CPU_LOOP_EN prevents flushing the prefetch buffer if the destination 93111314Snyan# of a jump is already present in the prefetch buffer on Cyrix 5x86(NOTE 94111314Snyan# 1). 95111314Snyan# 96111314Snyan# CPU_PPRO2CELERON enables L2 cache of Mendocino Celeron CPUs. This option 97111314Snyan# is useful when you use Socket 8 to Socket 370 converter, because most Pentium 98111314Snyan# Pro BIOSs do not enable L2 cache of Mendocino Celeron CPUs. 99111314Snyan# 100111314Snyan# CPU_RSTK_EN enables return stack on Cyrix 5x86 (NOTE 1). 101111314Snyan# 102111314Snyan# CPU_SUSP_HLT enables suspend on HALT. If this option is set, CPU 103111314Snyan# enters suspend mode following execution of HALT instruction. 104111314Snyan# 105111314Snyan# CPU_UPGRADE_HW_CACHE eliminates unneeded cache flush instruction(s). 106111314Snyan# 107111314Snyan# CPU_WT_ALLOC enables write allocation on Cyrix 6x86/6x86MX and AMD 108125234Snyan# K5/K6/K6-2 CPUs. 109111314Snyan# 110111314Snyan# CYRIX_CACHE_WORKS enables CPU cache on Cyrix 486 CPUs with cache 111111314Snyan# flush at hold state. 112111314Snyan# 113111314Snyan# CYRIX_CACHE_REALLY_WORKS enables (1) CPU cache on Cyrix 486 CPUs 114111314Snyan# without cache flush at hold state, and (2) write-back CPU cache on 115111314Snyan# Cyrix 6x86 whose revision < 2.7 (NOTE 2). 116111314Snyan# 117111314Snyan# NO_F00F_HACK disables the hack that prevents Pentiums (and ONLY 118111314Snyan# Pentiums) from locking up when a LOCK CMPXCHG8B instruction is 119111314Snyan# executed. This option is only needed if I586_CPU is also defined, 120111314Snyan# and should be included for any non-Pentium CPU that defines it. 121111314Snyan# 122111314Snyan# NO_MEMORY_HOLE is an optimisation for systems with AMD K6 processors 123111314Snyan# which indicates that the 15-16MB range is *definitely* not being 124111314Snyan# occupied by an ISA memory hole. 125111314Snyan# 126111314Snyan# NOTE 1: The options, CPU_BTB_EN, CPU_LOOP_EN, CPU_IORT, 127111314Snyan# CPU_LOOP_EN and CPU_RSTK_EN should not be used because of CPU bugs. 128111314Snyan# These options may crash your system. 129111314Snyan# 130111314Snyan# NOTE 2: If CYRIX_CACHE_REALLY_WORKS is not set, CPU cache is enabled 131111314Snyan# in write-through mode when revision < 2.7. If revision of Cyrix 132111314Snyan# 6x86 >= 2.7, CPU cache is always enabled in write-back mode. 133111314Snyan# 134111314Snyan# NOTE 3: This option may cause failures for software that requires 135111314Snyan# locked cycles in order to operate correctly. 136111314Snyan# 137124795Snyanoptions CPU_BLUELIGHTNING_3X 138111314Snyanoptions CPU_BLUELIGHTNING_FPU_OP_CACHE 139111314Snyanoptions CPU_BTB_EN 140111314Snyanoptions CPU_DIRECT_MAPPED_CACHE 141111314Snyanoptions CPU_DISABLE_5X86_LSSER 142124795Snyanoptions CPU_DISABLE_CMPXCHG 143124795Snyan#options CPU_DISABLE_SSE 144111314Snyanoptions CPU_FASTER_5X86_FPU 145111314Snyanoptions CPU_I486_ON_386 146111314Snyanoptions CPU_IORT 147111314Snyanoptions CPU_L2_LATENCY=5 148111314Snyanoptions CPU_LOOP_EN 149111314Snyanoptions CPU_PPRO2CELERON 150111314Snyanoptions CPU_RSTK_EN 151111314Snyanoptions CPU_SUSP_HLT 152111314Snyanoptions CPU_UPGRADE_HW_CACHE 153111314Snyanoptions CPU_WT_ALLOC 154111314Snyanoptions CYRIX_CACHE_WORKS 155111314Snyanoptions CYRIX_CACHE_REALLY_WORKS 156111314Snyan#options NO_F00F_HACK 157111314Snyan 158111314Snyan# Debug options 159124795Snyanoptions NPX_DEBUG # enable npx debugging 160111314Snyan 161111314Snyan# 162111314Snyan# PERFMON causes the driver for Pentium/Pentium Pro performance counters 163111314Snyan# to be compiled. See perfmon(4) for more information. 164111314Snyan# 165111314Snyanoptions PERFMON 166111314Snyan 167111314Snyan 168111314Snyan##################################################################### 169111314Snyan# NETWORKING OPTIONS 170111314Snyan 171111314Snyan# 172111314Snyan# DEVICE_POLLING adds support for mixed interrupt-polling handling 173111314Snyan# of network device drivers, which has significant benefits in terms 174111314Snyan# of robustness to overloads and responsivity, as well as permitting 175111314Snyan# accurate scheduling of the CPU time between kernel network processing 176124795Snyan# and other activities. The drawback is a moderate (up to 1/HZ seconds) 177111314Snyan# potential increase in response times. 178111314Snyan# It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING 179111314Snyan# to achieve smoother behaviour. 180151051Sglebius# Additionally, you can enable/disable polling at runtime with help of 181151051Sglebius# the ifconfig(8) utility, and select the CPU fraction reserved to 182151051Sglebius# userland with the sysctl variable kern.polling.user_frac 183151051Sglebius# (default 50, range 0..100). 184111314Snyan# 185124408Snyan# Not all device drivers support this mode of operation at the time of 186124408Snyan# this writing. See polling(4) for more details. 187111314Snyan 188111314Snyanoptions DEVICE_POLLING 189111314Snyan 190177586Sjkim# BPF_JITTER adds support for BPF just-in-time compiler. 191177586Sjkim 192191954Skuriyamaoptions BPF_JITTER 193177586Sjkim 194111314Snyan 195111314Snyan##################################################################### 196111314Snyan# MISCELLANEOUS DEVICES AND OPTIONS 197111314Snyan 198160813Smarcel# 199160813Smarcel# sio: serial ports (see sio(4)), including support for various 200163494Simp# PC Card devices, such as Modem and NICs 201160813Smarcel# 202181905Sed#device sio 203160813Smarcelhint.sio.0.at="isa" 204160813Smarcelhint.sio.0.port="0x3F8" 205160813Smarcelhint.sio.0.flags="0x10" 206160813Smarcelhint.sio.0.irq="4" 207160813Smarcel 208160813Smarcel# `flags' specific to sio(4). 209160813Smarcel# 0x10 enable console support for this unit. Other console flags 210160813Smarcel# (if applicable) are ignored unless this is set. Enabling 211160813Smarcel# console support does not make the unit the preferred console. 212160813Smarcel# Boot with -h or set boot_serial=YES in the loader. For sio(4) 213160813Smarcel# specifically, the 0x20 flag can also be set (see above). 214160813Smarcel# Currently, at most one unit can have console support; the 215160813Smarcel# first one (in config file order) with this flag set is 216160813Smarcel# preferred. Setting this flag for sio0 gives the old behaviour. 217160813Smarcel# 0x20 force this unit to be the console (unless there is another 218160813Smarcel# higher priority console). This replaces the COMCONSOLE option. 219160813Smarcel# 0x40 reserve this unit for low level console operations. Do not 220160813Smarcel# access the device in any normal way. 221160813Smarcel# 0x80 use this port for serial line gdb support in ddb. Also known 222160813Smarcel# as debug port. 223160813Smarcel# PnP `flags' 224160813Smarcel# 0x1 disable probing of this device. Used to prevent your modem 225160813Smarcel# from being attached as a PnP modem. 226160813Smarcel# Other flags for sio that aren't documented in the man page. 227160813Smarcel# 0x20000 enable hardware RTS/CTS and larger FIFOs. Only works for 228160813Smarcel# ST16650A-compatible UARTs. 229160813Smarcel 230160813Smarcel# Options for sio: 231160813Smarceloptions COM_ESP # Code for Hayes ESP. 232160813Smarceloptions COM_MULTIPORT # Code for some cards with shared IRQs. 233160813Smarceloptions CONSPEED=115200 # Speed for serial console 234160813Smarcel # (default 9600). 235160813Smarcel 236111314Snyandevice speaker #Play IBM BASIC-style noises out your speaker 237111314Snyanhint.speaker.0.at="isa" 238111314Snyanhint.speaker.0.port="0x35" 239124795Snyandevice gzip #Exec gzipped a.out's. REQUIRES COMPAT_AOUT! 240111314Snyandevice apm_saver # Requires APM 241111314Snyan 242111314Snyan 243111314Snyan##################################################################### 244111314Snyan# HARDWARE BUS CONFIGURATION 245111314Snyan 246111314Snyan# 247111314Snyan# ISA bus 248111314Snyan# 249111314Snyandevice isa 250111314Snyan 251111314Snyan# 252111314Snyan# Options for `isa': 253111314Snyan# 254111314Snyan# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A 255111314Snyan# interrupt controller. This saves about 0.7-1.25 usec for each interrupt. 256111314Snyan# This option breaks suspend/resume on some portables. 257111314Snyan# 258111314Snyan# MAXMEM specifies the amount of RAM on the machine; if this is not 259111314Snyan# specified, FreeBSD will first read the amount of memory from the CMOS 260111314Snyan# RAM, so the amount of memory will initially be limited to 64MB or 16MB 261111314Snyan# depending on the BIOS. If the BIOS reports 64MB, a memory probe will 262111314Snyan# then attempt to detect the installed amount of RAM. If this probe 263111314Snyan# fails to detect >64MB RAM you will have to use the MAXMEM option. 264111314Snyan# The amount is in kilobytes, so for a machine with 128MB of RAM, it would 265111314Snyan# be 131072 (128 * 1024). 266111314Snyan# 267111314Snyan# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to 268111314Snyan# reset the CPU for reboot. This is needed on some systems with broken 269111314Snyan# keyboard controllers. 270188257Swkoszek# 271188307Swkoszek# EPSON_BOUNCEDMA was to use a bounce buffer to upper 15MB, but it's 272188307Swkoszek# broken now. 273188307Swkoszek# 274188307Swkoszek# EPSON_MEMWIN disables 15-16MB chunk, and enables EPSON memory window. 275188307Swkoszek# 276111314Snyan 277111314Snyanoptions AUTO_EOI_1 278111314Snyan 279111314Snyanoptions MAXMEM=(128*1024) 280111314Snyan#options BROKEN_KEYBOARD_RESET 281111314Snyanoptions EPSON_BOUNCEDMA 282111314Snyanoptions EPSON_MEMWIN 283111314Snyan 284111314Snyan# 285111314Snyan# AGP GART support 286111314Snyandevice agp 287111314Snyan 288188247Swkoszek# AGP debugging. 289191954Skuriyamaoptions AGP_DEBUG 290188247Swkoszek 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 366155215Snyan# ce: Cronyx Tau-PCI/32 sync single/dual port G.703/E1 serial adaptor 367155215Snyan# with 32 HDLC subchannels (requires sppp (default), or NETGRAPH if 368155215Snyan# NETGRAPH_CRONYX is configured) 369129384Snyan# cp: Cronyx Tau-PCI sync single/dual/four port 370129384Snyan# V.35/RS-232/RS-530/RS-449/X.21/G.703/E1/E3/T3/STS-1 371129384Snyan# serial adaptor (requires sppp (default), or NETGRAPH if 372129384Snyan# NETGRAPH_CRONYX is configured) 373153581Simp# cs: IBM Etherjet and other Crystal Semi CS89x0-based adapters and pccard 374111314Snyan# ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503 375150555Simp# HP PC Lan+, various PC Card devices 376111314Snyan# (requires miibus) 377111314Snyan# ie: AT&T StarLAN 10 and EN100; 3Com 3C507; unknown NI5210; 378111314Snyan# Intel EtherExpress 379188257Swkoszek# le: AMD Am7900 LANCE and Am79C9xx ILACC/PCnet Ethernet interface driver 380182912Sjhb# sbni: Granch SBNI12-xx ISA and PCI adapters 381188257Swkoszek# snc: National Semiconductor DP8393X SONIC Ethernet adapter driver 382111314Snyan 383111314Snyan# Order for ISA/EISA devices is important here 384111314Snyan 385155215Snyandevice ce 386129384Snyandevice cp 387153581Simpdevice cs 388111314Snyandevice ed 389111314Snyanhint.ed.0.at="isa" 390111314Snyanhint.ed.0.port="0x280" 391111314Snyanhint.ed.0.irq="5" 392111314Snyanhint.ed.0.maddr="0xd8000" 393112840Smdodddevice ie # Hints only required for Starlan 394112840Smdoddhint.ie.2.at="isa" 395112840Smdoddhint.ie.2.port="0x300" 396112840Smdoddhint.ie.2.irq="5" 397112840Smdoddhint.ie.2.maddr="0xd0000" 398188257Swkoszek#device le 399158712Smarius# Hint for the PC98-only C-NET(98)S C-bus front-end of le(4). 400158712Smariushint.le.0.at="isa" 401158712Smariushint.le.0.port="0x03d0" 402158712Smariushint.le.0.irq="6" 403182912Sjhbdevice sbni 404182912Sjhbhint.sbni.0.at="isa" 405182912Sjhbhint.sbni.0.port="0x210" 406182912Sjhbhint.sbni.0.irq="0xefdead" 407182912Sjhbhint.sbni.0.flags="0" 408111314Snyandevice snc 409111314Snyanhint.snc.0.at="isa" 410111314Snyanhint.snc.0.port="0x888" 411111314Snyanhint.snc.0.irq="6" 412111314Snyanhint.snc.0.maddr="0xc0000" 413111314Snyan 414125234Snyan# 415111314Snyan# SCSI host adapters: 416125234Snyan# 417111314Snyan# ct: WD33C93[ABC] based SCSI host adapters. 418111314Snyan# ncv: NCR 53C500 based SCSI host adapters. 419111314Snyan# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters. 420111314Snyan# stg: TMC 18C30, 18C50 based SCSI host adapters. 421111314Snyan 422111314Snyandevice ct 423111314Snyanhint.ct.0.at="isa" 424126708Snyandevice ncv 425126708Snyandevice nsp 426126708Snyandevice stg 427111314Snyan 428111314Snyan# 429117918Snyan# SafeNet crypto driver: can be moved to the MI NOTES as soon as 430117918Snyan# it's tested on a big-endian machine 431117918Snyan# 432117918Snyandevice safe # SafeNet 1141 433142783Snyanoptions SAFE_DEBUG # enable debugging support: hw.safe.debug 434142783Snyanoptions SAFE_RNDTEST # enable rndtest support 435117918Snyan 436117918Snyan##################################################################### 437117918Snyan 438117918Snyan# 439111314Snyan# Miscellaneous hardware: 440111314Snyan# 441111314Snyan# apm: Laptop Advanced Power Management (experimental) 442188257Swkoszek# canbus: CanBe I/O Bus 443188257Swkoszek# canbepm: CanBe Power Management Controller 444188257Swkoszek# olpt: XXX 445188257Swkoszek# pmc: Power Management Controller of NEC PC-98Note 446111314Snyan# pmtimer: Timer device driver for power management events (APM or ACPI) 447188257Swkoszek# Adjusts system timer at wakeup time 448188257Swkoszek# 449111314Snyan# Notes on APM 450111314Snyan# The flags takes the following meaning for apm0: 451111314Snyan# 0x0020 Statclock is broken. 452111314Snyan 453111314Snyandevice apm 454111314Snyanhint.apm.0.flags="0x20" 455111314Snyandevice canbus 456111314Snyandevice canbepm 457124795Snyandevice olpt 458124795Snyanhint.olpt.0.at="isa" 459124795Snyanhint.olpt.0.port="0x040" 460128221Simpdevice pmc 461128221Simphint.pmc.0.at="isa" 462128221Simphint.pmc.0.port="0x8f0" 463188257Swkoszekdevice pmtimer 464111314Snyan 465111314Snyan# 466111314Snyan# Laptop/Notebook options: 467111314Snyan# 468111314Snyan# See also: 469111314Snyan# apm under `Miscellaneous hardware' 470111314Snyan# above. 471111314Snyan 472111314Snyan# For older notebooks that signal a powerfail condition (external 473111314Snyan# power supply dropped, or battery state low) by issuing an NMI: 474111314Snyan 475111314Snyanoptions POWERFAIL_NMI # make it beep instead of panicing 476111314Snyan 477111314Snyan# 478111314Snyan# Set the number of PV entries per process. Increasing this can 479124795Snyan# stop panics related to heavy use of shared memory. However, that can 480111314Snyan# (combined with large amounts of physical memory) cause panics at 481111314Snyan# boot time due the kernel running out of VM space. 482111314Snyan# 483111314Snyan# If you're tweaking this, you might also want to increase the sysctls 484111314Snyan# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target". 485111314Snyan# 486111314Snyan# The value below is the one more than the default. 487111314Snyan# 488111314Snyanoptions PMAP_SHPGPERPROC=201 489111314Snyan 490111314Snyan# 491111314Snyan# Change the size of the kernel virtual address space. Due to 492111314Snyan# constraints in loader(8) on i386, this must be a multiple of 4. 493111314Snyan# 256 = 1 GB of kernel address space. Increasing this also causes 494111314Snyan# a reduction of the address space in user processes. 512 splits 495111314Snyan# the 4GB cpu address space in half (2GB user, 2GB kernel). 496111314Snyan# 497111314Snyanoptions KVA_PAGES=260 498111314Snyan 499111314Snyan 500111314Snyan##################################################################### 501111314Snyan# ABI Emulation 502111314Snyan 503111314Snyan# Enable iBCS2 runtime support for SCO and ISC binaries 504291419Skib#options IBCS2 505111314Snyan 506111314Snyan# Emulate spx device for client side of SVR3 local X interface 507111314Snyanoptions SPX_HACK 508111314Snyan 509111314Snyan# Enable Linux ABI emulation 510111314Snyanoptions COMPAT_LINUX 511111314Snyan 512111314Snyan# Enable i386 a.out binary support 513111314Snyanoptions COMPAT_AOUT 514111314Snyan 515111314Snyan# Enable the linux-like proc filesystem support (requires COMPAT_LINUX 516111314Snyan# and PSEUDOFS) 517111314Snyanoptions LINPROCFS 518111314Snyan 519158381Sambrisko# Enable the linux-like sys filesystem support (requires COMPAT_LINUX 520158381Sambrisko# and PSEUDOFS) 521158381Sambriskooptions LINSYSFS 522158381Sambrisko 523111314Snyan# 524111314Snyan# SysVR4 ABI emulation 525111314Snyan# 526111314Snyan# The svr4 ABI emulator can be statically compiled into the kernel or loaded as 527125234Snyan# a KLD module. 528125234Snyan# The STREAMS network emulation code can also be compiled statically or as a 529111314Snyan# module. If loaded as a module, it must be loaded before the svr4 module 530111314Snyan# (the /usr/sbin/svr4 script does this for you). If compiling statically, 531111314Snyan# the `streams' device must be configured into any kernel which also 532125234Snyan# specifies COMPAT_SVR4. It is possible to have a statically-configured 533111314Snyan# STREAMS device and a dynamically loadable svr4 emulator; the /usr/sbin/svr4 534111314Snyan# script understands that it doesn't need to load the `streams' module under 535111314Snyan# those circumstances. 536111314Snyan# Caveat: At this time, `options KTRACE' is required for the svr4 emulator 537125234Snyan# (whether static or dynamic). 538125234Snyan# 539111314Snyanoptions COMPAT_SVR4 # build emulator statically 540111314Snyanoptions DEBUG_SVR4 # enable verbose debugging 541111314Snyandevice streams # STREAMS network driver (required for svr4). 542111314Snyan 543111314Snyan 544111314Snyan##################################################################### 545111314Snyan# VM OPTIONS 546111314Snyan 547111314Snyan# Disable the 4 MByte page PSE CPU feature. The PSE feature allows the 548130596Snyan# kernel to use 4 MByte pages to map the kernel instead of 4k pages. 549111314Snyan# This saves on the amount of memory needed for page tables needed to 550111314Snyan# map the kernel. You should only disable this feature as a temporary 551111314Snyan# workaround if you are having problems with it enabled. 552111314Snyan# 553111314Snyan#options DISABLE_PSE 554111314Snyan 555111314Snyan# Disable the global pages PGE CPU feature. The PGE feature allows pages 556111314Snyan# to be marked with the PG_G bit. TLB entries for these pages are not 557111314Snyan# flushed from the cache when %cr3 is reloaded. This can make context 558111314Snyan# switches less expensive. You should only disable this feature as a 559111314Snyan# temporary workaround if you are having problems with it enabled. 560111314Snyan# 561111314Snyan#options DISABLE_PG_G 562111314Snyan 563111314Snyan# KSTACK_PAGES is the number of memory pages to assign to the kernel 564111314Snyan# stack of each thread. 565111314Snyan 566111314Snyanoptions KSTACK_PAGES=3 567111314Snyan 568111314Snyan##################################################################### 569111314Snyan 570111314Snyan# More undocumented options for linting. 571111314Snyan# Note that documenting these are not considered an affront. 572111314Snyan 573111314Snyanoptions FB_INSTALL_CDEV # install a CDEV entry in /dev 574111314Snyan 575111314Snyanoptions I586_PMC_GUPROF=0x70000 576111314Snyanoptions KBDIO_DEBUG=2 577111314Snyanoptions KBD_MAXRETRY=4 578111314Snyanoptions KBD_MAXWAIT=6 579111314Snyanoptions KBD_RESETDELAY=201 580111314Snyan 581111314Snyanoptions TIMER_FREQ=((14318182+6)/12) 582111314Snyan 583111314Snyanoptions VM_KMEM_SIZE 584111314Snyanoptions VM_KMEM_SIZE_MAX 585111314Snyanoptions VM_KMEM_SIZE_SCALE 586111314Snyan 587111500Sobrien 588111500Sobrien##################################################################### 589111500Sobrien# Devices we don't want to deal with 590111500Sobrien 591116382Snyannodevice bt 592116382Snyannodevice adw 593111500Sobriennodevice aha 594116382Snyannodevice ahb 595116382Snyannodevice ahd 596116382Snyannodevice mpt 597116382Snyannodevice trm 598111500Sobriennodevice wds 599111500Sobriennodevice dpt 600111500Sobriennodevice ciss 601111500Sobriennodevice iir 602111500Sobriennodevice mly 603111500Sobriennodevice ida # Compaq Smart RAID 604111500Sobriennodevice mlx # Mylex DAC960 605111500Sobriennodevice amr # AMI MegaRAID 606111500Sobriennodevice twe # 3ware ATA RAID 607116382Snyannodevice cm 608116382Snyannodevice ex 609116382Snyannodevice fea 610116382Snyannodevice intpm 611116382Snyannodevice alpm 612116382Snyannodevice ichsmb 613116382Snyannodevice viapm 614116382Snyannodevice amdpm 615153643Snyannodevice amdsmb 616116382Snyannodevice nfpm 617153643Snyannodevice nfsmb 618111582Sru 619111582Sru 620111582Sru##################################################################### 621111582Sru# Options we don't want to deal with 622111582Sru 623116382Snyannooption AHD_DEBUG 624116382Snyannooption AHD_DEBUG_OPTS 625116382Snyannooption AHD_REG_PRETTY_PRINT 626116382Snyannooption ADW_ALLOW_MEMIO 627111582Srunooption DPT_LOST_IRQ 628111582Srunooption DPT_RESET_HBA 629111582Srunooption DPT_TIMEOUT_FACTOR 630116382Snyannooption AAC_DEBUG 631111582Sru 632111582Sru 633111582Sru##################################################################### 634111582Sru# Make options we don't want to deal with 635