]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/amd64/conf/NOTES
This commit was generated by cvs2svn to compensate for changes in r171366,
[FreeBSD/FreeBSD.git] / sys / amd64 / conf / NOTES
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.
12 profile         2
13
14 \f
15 #####################################################################
16 # SMP OPTIONS:
17 #
18 # Notes:
19 #
20 # IPI_PREEMPTION instructs the kernel to preempt threads running on other
21 #         CPUS if needed.  Relies on the PREEMPTION option
22
23 # Optional:
24 options         IPI_PREEMPTION
25 device          atpic                   # Optional legacy pic support
26 device          mptable                 # Optional MPSPEC mptable support
27
28 #
29 # Watchdog routines.
30 #
31 options         MP_WATCHDOG
32
33
34 # Debugging options.
35 #
36 options         STOP_NMI                # Stop CPUS using NMI instead of IPI
37
38
39 \f
40 #####################################################################
41 # CPU OPTIONS
42
43 #
44 # You must specify at least one CPU (the one you intend to run on);
45 # deleting the specification for CPUs you don't need to use may make
46 # parts of the system run faster.
47 #
48 cpu             HAMMER                  # aka K8, aka Opteron & Athlon64
49
50 #
51 # Options for CPU features.
52 #
53
54 #
55 # PERFMON causes the driver for Pentium/Pentium Pro performance counters
56 # to be compiled.  See perfmon(4) for more information.
57 #
58 #XXX#options    PERFMON
59
60 \f
61 #####################################################################
62 # NETWORKING OPTIONS
63
64 #
65 # DEVICE_POLLING adds support for mixed interrupt-polling handling
66 # of network device drivers, which has significant benefits in terms
67 # of robustness to overloads and responsivity, as well as permitting
68 # accurate scheduling of the CPU time between kernel network processing
69 # and other activities.  The drawback is a moderate (up to 1/HZ seconds)
70 # potential increase in response times.
71 # It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING
72 # to achieve smoother behaviour.
73 # Additionally, you can enable/disable polling at runtime with help of
74 # the ifconfig(8) utility, and select the CPU fraction reserved to
75 # userland with the sysctl variable kern.polling.user_frac
76 # (default 50, range 0..100).
77 #
78 # Not all device drivers support this mode of operation at the time of
79 # this writing.  See polling(4) for more details.
80
81 options         DEVICE_POLLING
82
83 \f
84 #####################################################################
85 # CLOCK OPTIONS
86
87 # The following options are used for debugging clock behavior only, and
88 # should not be used for production systems.
89
90 # CLK_CALIBRATION_LOOP causes clock calibration to be run in a loop at
91 # startup until the user presses a key.  (The i8254 clock is always
92 # calibrated relative to the RTC (mc146818a) and this option causes the
93 # calibration to be repeated.)
94 options         CLK_CALIBRATION_LOOP
95
96 # CLK_USE_I8254_CALIBRATION causes the calibrated frequency of the i8254
97 # clock to actually be used.
98 options         CLK_USE_I8254_CALIBRATION
99
100 \f
101 #####################################################################
102 # MISCELLANEOUS DEVICES AND OPTIONS
103
104
105 # sio: serial ports (see sio(4)), including support for various
106 #      PC Card devices, such as Modem and NICs
107 #
108 device          sio
109 hint.sio.0.at="isa"
110 hint.sio.0.port="0x3F8"
111 hint.sio.0.flags="0x10"
112 hint.sio.0.irq="4"
113
114 # `flags' specific to sio(4).
115 #       0x10    enable console support for this unit.  Other console flags
116 #               (if applicable) are ignored unless this is set.  Enabling
117 #               console support does not make the unit the preferred console.
118 #               Boot with -h or set boot_serial=YES in the loader.  For sio(4)
119 #               specifically, the 0x20 flag can also be set (see above).
120 #               Currently, at most one unit can have console support; the
121 #               first one (in config file order) with this flag set is
122 #               preferred.  Setting this flag for sio0 gives the old behaviour.
123 #       0x20    force this unit to be the console (unless there is another
124 #               higher priority console).  This replaces the COMCONSOLE option.
125 #       0x40    reserve this unit for low level console operations.  Do not
126 #               access the device in any normal way.
127 #       0x80    use this port for serial line gdb support in ddb.  Also known
128 #               as debug port.
129 # PnP `flags'
130 #       0x1     disable probing of this device.  Used to prevent your modem
131 #               from being attached as a PnP modem.
132 # Other flags for sio that aren't documented in the man page.
133 #       0x20000 enable hardware RTS/CTS and larger FIFOs.  Only works for
134 #               ST16650A-compatible UARTs.
135
136 # Options for sio:
137 options         COM_ESP                 # Code for Hayes ESP.
138 options         COM_MULTIPORT           # Code for some cards with shared IRQs.
139 options         CONSPEED=115200         # Speed for serial console
140                                         # (default 9600).
141
142 device          speaker         #Play IBM BASIC-style noises out your speaker
143 hint.speaker.0.at="isa"
144 hint.speaker.0.port="0x61"
145 device          gzip            #Exec gzipped a.out's.  REQUIRES COMPAT_AOUT!
146
147 \f
148 #####################################################################
149 # HARDWARE BUS CONFIGURATION
150
151 #
152 # ISA bus
153 #
154 device          isa
155
156 #
157 # Options for `isa':
158 #
159 # AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A
160 # interrupt controller.  This saves about 0.7-1.25 usec for each interrupt.
161 # This option breaks suspend/resume on some portables.
162 #
163 # AUTO_EOI_2 enables the `automatic EOI' feature for the slave 8259A
164 # interrupt controller.  This saves about 0.7-1.25 usec for each interrupt.
165 # Automatic EOI is documented not to work for for the slave with the
166 # original i8259A, but it works for some clones and some integrated
167 # versions.
168 #
169 # MAXMEM specifies the amount of RAM on the machine; if this is not
170 # specified, FreeBSD will first read the amount of memory from the CMOS
171 # RAM, so the amount of memory will initially be limited to 64MB or 16MB
172 # depending on the BIOS.  If the BIOS reports 64MB, a memory probe will
173 # then attempt to detect the installed amount of RAM.  If this probe
174 # fails to detect >64MB RAM you will have to use the MAXMEM option.
175 # The amount is in kilobytes, so for a machine with 128MB of RAM, it would
176 # be 131072 (128 * 1024).
177 #
178 # BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to
179 # reset the CPU for reboot.  This is needed on some systems with broken
180 # keyboard controllers.
181
182 options         AUTO_EOI_1
183 #options        AUTO_EOI_2
184
185 options         MAXMEM=(128*1024)
186 #options        BROKEN_KEYBOARD_RESET
187
188 #
189 # PCI bus & PCI options:
190 #
191 device          pci
192
193 #
194 # AGP GART support
195 device          agp
196
197 \f
198 #####################################################################
199 # HARDWARE DEVICE CONFIGURATION
200
201 #
202 # Optional devices:
203 #
204
205 # PS/2 mouse
206 device          psm
207 hint.psm.0.at="atkbdc"
208 hint.psm.0.irq="12"
209
210 # Options for psm:
211 options         PSM_HOOKRESUME          #hook the system resume event, useful
212                                         #for some laptops
213 options         PSM_RESETAFTERSUSPEND   #reset the device at the resume event
214
215 # The keyboard controller; it controls the keyboard and the PS/2 mouse.
216 device          atkbdc
217 hint.atkbdc.0.at="isa"
218 hint.atkbdc.0.port="0x060"
219
220 # The AT keyboard
221 device          atkbd
222 hint.atkbd.0.at="atkbdc"
223 hint.atkbd.0.irq="1"
224
225 # Options for atkbd:
226 options         ATKBD_DFLT_KEYMAP       # specify the built-in keymap
227 makeoptions     ATKBD_DFLT_KEYMAP=jp.106
228
229 # `flags' for atkbd:
230 #       0x01    Force detection of keyboard, else we always assume a keyboard
231 #       0x02    Don't reset keyboard, useful for some newer ThinkPads
232 #       0x03    Force detection and avoid reset, might help with certain
233 #               dockingstations
234 #       0x04    Old-style (XT) keyboard support, useful for older ThinkPads
235
236 # Video card driver for VGA adapters.
237 device          vga
238 hint.vga.0.at="isa"
239
240 # Options for vga:
241 # Try the following option if the mouse pointer is not drawn correctly
242 # or font does not seem to be loaded properly.  May cause flicker on
243 # some systems.
244 options         VGA_ALT_SEQACCESS
245
246 # If you can dispense with some vga driver features, you may want to
247 # use the following options to save some memory.
248 #options        VGA_NO_FONT_LOADING     # don't save/load font
249 #options        VGA_NO_MODE_CHANGE      # don't change video modes
250
251 # Older video cards may require this option for proper operation.
252 options         VGA_SLOW_IOACCESS       # do byte-wide i/o's to TS and GDC regs
253
254 # The following option probably won't work with the LCD displays.
255 options         VGA_WIDTH90             # support 90 column modes
256
257 # Debugging.
258 options         VGA_DEBUG
259
260 # 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support.  This will create
261 # the /dev/3dfx0 device to work with glide implementations.  This should get
262 # linked to /dev/3dfx and /dev/voodoo.  Note that this is not the same as
263 # the tdfx DRI module from XFree86 and is completely unrelated.
264 #
265 # To enable Linuxulator support, one must also include COMPAT_LINUX in the
266 # config as well.  The other option is to load both as modules.
267
268 device          tdfx                    # Enable 3Dfx Voodoo support
269 #XXX#device     tdfx_linux              # Enable Linuxulator support
270
271 #
272 # ACPI support using the Intel ACPI Component Architecture reference
273 # implementation.
274 #
275 # ACPI_DEBUG enables the use of the debug.acpi.level and debug.acpi.layer
276 # kernel environment variables to select initial debugging levels for the
277 # Intel ACPICA code.  (Note that the Intel code must also have USE_DEBUGGER
278 # defined when it is built).
279 #
280 # ACPI_NO_SEMAPHORES makes the AcpiOs*Semaphore routines a no-op.
281
282 device          acpi
283 options         ACPI_DEBUG
284 #!options       ACPI_NO_SEMAPHORES
285
286 # The cpufreq(4) driver provides support for non-ACPI CPU frequency control
287 device          cpufreq
288
289 # Direct Rendering modules for 3D acceleration.
290 device          drm             # DRM core module required by DRM drivers
291 device          i915drm         # Intel i830 through i915
292 device          mach64drm       # ATI Rage Pro, Rage Mobility P/M, Rage XL
293 device          mgadrm          # AGP Matrox G200, G400, G450, G550
294 device          r128drm         # ATI Rage 128
295 device          radeondrm       # ATI Radeon
296 device          savagedrm       # S3 Savage3D, Savage4
297 device          sisdrm          # SiS 300/305, 540, 630
298 device          tdfxdrm         # 3dfx Voodoo 3/4/5 and Banshee
299 options         DRM_DEBUG       # Include debug printfs (slow)
300
301 #
302 # Network interfaces:
303 #
304
305 # ath:  Atheros a/b/g WiFi adapters (requires ath_hal and wlan)
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 # iwi:  Intel PRO/Wireless 2200BG/2225BG/2915ABG IEEE 802.11 adapters
311 # nfe:  nVidia nForce MCP on-board Ethernet Networking (BSD open source)
312 # nve:  nVidia nForce MCP on-board Ethernet Networking
313 # ral:  Ralink Technology IEEE 802.11 wireless adapter
314 # ural: Ralink Technology RT2500USB IEEE 802.11 wireless adapter
315
316 device          ed
317 options         ED_3C503
318 options         ED_HPP
319 options         ED_SIC
320 device          iwi
321 device          ipw
322 device          nfe             # nVidia nForce MCP on-board Ethernet Networking
323 device          nve             # nVidia nForce MCP on-board Ethernet Networking
324 device          ral
325 device          ural
326
327 device          ath
328 device          ath_hal         # Atheros HAL (includes binary component)
329 #device         ath_rate_amrr   # AMRR rate control for ath driver
330 #device         ath_rate_onoe   # Onoe rate control for ath driver
331 device          ath_rate_sample # SampleRate rate control for the ath driver
332 #device         wlan            # 802.11 layer
333
334 #
335 #XXX this stores pointers in a 32bit field that is defined by the hardware
336 #device pst
337
338 #
339 # Areca 11xx and 12xx series of SATA II RAID controllers.
340 # CAM is required.
341 #
342 device          arcmsr          # Areca SATA II RAID
343
344 #
345 # 3ware 9000 series PATA/SATA RAID controller driver and options.
346 # The driver is implemented as a SIM, and so, needs the CAM infrastructure.
347 #
348 options         TWA_DEBUG               # 0-10; 10 prints the most messages.
349 options         TWA_FLASH_FIRMWARE      # firmware image bundled when defined.
350 device          twa                     # 3ware 9000 series PATA/SATA RAID
351
352 #
353 # SCSI host adapters:
354 #
355 # ncv: NCR 53C500 based SCSI host adapters.
356 # nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters.
357 # stg: TMC 18C30, 18C50 based SCSI host adapters.
358
359 device          ncv
360 device          nsp
361 device          stg
362
363 #
364 # Adaptec FSA RAID controllers, including integrated DELL controllers,
365 # the Dell PERC 2/QC and the HP NetRAID-4M
366 device          aac
367 device          aacp    # SCSI Passthrough interface (optional, CAM required)
368
369 #
370 # Highpoint RocketRAID 182x.  This is really just software RAID on a
371 # Marvell SATA chip.
372 device          hptmv
373
374 #
375 # Highpoint RocketRAID 232x.  This is software RAID but with hardware
376 # acceleration assistance for RAID_5.
377 device          rr232x
378
379 #
380 # Highpoint RocketRaid 3xxx series SATA RAID
381 device          hptiop
382
383 #
384 # IBM (now Adaptec) ServeRAID controllers
385 device          ips
386
387 #
388 # SafeNet crypto driver: can be moved to the MI NOTES as soon as
389 # it's tested on a big-endian machine
390 #
391 device          safe            # SafeNet 1141
392 options         SAFE_DEBUG      # enable debugging support: hw.safe.debug
393 options         SAFE_RNDTEST    # enable rndtest support
394
395 #####################################################################
396
397 #
398 # Miscellaneous hardware:
399 #
400 # ipmi: Intelligent Platform Management Interface
401 # smbios: DMI/SMBIOS entry point
402 # vpd: Vital Product Data kernel interface
403 # cy: Cyclades serial driver
404 # digi: Digiboard driver
405
406 # Notes on the Specialix SI/XIO driver:
407 #  The host card is memory, not IO mapped.
408 #  The Rev 1 host cards use a 64K chunk, on a 32K boundary.
409 #  The Rev 2 host cards use a 32K chunk, on a 32K boundary.
410 #  The cards can use an IRQ of 11, 12 or 15.
411
412 device          cy
413 options         CY_PCI_FASTINTR         # Use with cy_pci unless irq is shared
414 device          digi
415 # BIOS & FEP/OS components of device digi.
416 device          digi_CX
417 device          digi_CX_PCI
418 device          digi_EPCX
419 device          digi_EPCX_PCI
420 device          digi_Xe
421 device          digi_Xem
422 device          digi_Xr
423 device          ipmi
424 # Parallel (8255 PPI) basic I/O (mode 0) port (e.g. Advantech PCL-724)
425 device          pbio
426 hint.pbio.0.at="isa"
427 hint.pbio.0.port="0x360"
428 device          smbios
429 device          vpd
430 # HOT1 Xilinx 6200 card (http://www.vcc.com/)
431 device          xrpu
432
433 #
434 # Laptop/Notebook options:
435 #
436
437
438 #
439 # I2C Bus
440 #
441
442 #
443 # Hardware watchdog timers:
444 #
445 # ichwd: Intel ICH watchdog timer
446 #
447 device          ichwd
448
449 #---------------------------------------------------------------------------
450 # ISDN4BSD
451 #
452 # See /usr/share/examples/isdn/ROADMAP for an introduction to isdn4bsd.
453 #
454 # i4b passive ISDN cards support contains the following hardware drivers:
455 #
456 #       isic  - Siemens/Infineon ISDN ISAC/HSCX/IPAC chipset driver
457 #       iwic  - Winbond W6692 PCI bus ISDN S/T interface controller
458 #       ifpi  - AVM Fritz!Card PCI driver
459 #       ifpi2  - AVM Fritz!Card PCI version 2 driver
460 #       itjc  - Siemens ISAC / TJNet Tiger300/320 chipset
461 #
462 # i4b active ISDN cards support contains the following hardware drivers:
463 #
464 #       iavc  - AVM B1 PCI, AVM B1 ISA, AVM T1
465 #
466 # Note that the ``options'' (if given) and ``device'' lines must BOTH
467 # be uncommented to enable support for a given card !
468 #
469 # In addition to a hardware driver (and probably an option) the mandatory
470 # ISDN protocol stack devices and the mandatory support device must be
471 # enabled as well as one or more devices from the optional devices section.
472 #
473 #---------------------------------------------------------------------------
474 #       isic driver (Siemens/Infineon chipsets)
475 #
476 #XXX#device     isic
477 #
478 # PCI bus Cards:
479 # --------------
480 #
481 # ELSA MicroLink ISDN/PCI (same as ELSA QuickStep 1000pro PCI)
482 options         ELSA_QS1PCI
483 #
484 #---------------------------------------------------------------------------
485 #       ifpi2 driver for AVM Fritz!Card PCI version 2
486 #
487 # AVM Fritz!Card PCI version 2
488 #XXX#device     ifpi2
489 #
490 #---------------------------------------------------------------------------
491 #       iwic driver for Winbond W6692 chipset
492 #
493 # ASUSCOM P-IN100-ST-D (and other Winbond W6692 based cards)
494 #XXX#device     iwic
495 #
496 #---------------------------------------------------------------------------
497 #       itjc driver for Siemens ISAC / TJNet Tiger300/320 chipset
498 #
499 # Traverse Technologies NETjet-S
500 # Teles PCI-TJ
501 #XXX#device     itjc
502 #
503 #---------------------------------------------------------------------------
504 #       iavc driver (AVM active cards, needs i4bcapi driver!)
505 #
506 #XXX#device     iavc
507 #
508 #---------------------------------------------------------------------------
509 #       ISDN Protocol Stack - mandatory for all hardware drivers
510 #
511 # Q.921 / layer 2 - i4b passive cards D channel handling
512 #XXX#device     i4bq921
513 #
514 # Q.931 / layer 3 - i4b passive cards D channel handling
515 #XXX#device     i4bq931
516 #
517 # layer 4 - i4b common passive and active card handling
518 #XXX#device     i4b
519 #
520 #---------------------------------------------------------------------------
521 #       ISDN devices - mandatory for all hardware drivers
522 #
523 # userland driver to do ISDN tracing (for passive cards only)
524 #XXX#device     i4btrc
525 #XXX#options    NI4BTRC=4
526 #
527 # userland driver to control the whole thing
528 #XXX#device     i4bctl
529 #
530 #---------------------------------------------------------------------------
531 #       ISDN devices - optional
532 #
533 # userland driver for access to raw B channel
534 #XXX#device     i4brbch
535 #XXX#options    NI4BRBCH=4
536 #
537 # userland driver for telephony
538 #XXX#device     i4btel
539 #XXX#options    NI4BTEL=2
540 #
541 # network driver for IP over raw HDLC ISDN
542 #XXX#device     i4bipr
543 #XXX#options    NI4BIPR=4
544 # enable VJ header compression detection for ipr i/f
545 #XXX#options    IPR_VJ
546 # enable logging of the first n IP packets to isdnd (n=32 here)
547 #XXX#options    IPR_LOG=32
548 #
549 # network driver for sync PPP over ISDN; requires an equivalent
550 # number of sppp device to be configured
551 #XXX#device     i4bisppp
552 #XXX#options    NI4BISPPP=4
553 #
554 # B-channel interface to the netgraph subsystem
555 #XXX#device     i4bing
556 #XXX#options    NI4BING=2
557 #
558 # CAPI driver needed for active ISDN cards (see iavc driver above)
559 #XXX#device     i4bcapi
560 #
561 #---------------------------------------------------------------------------
562
563 #
564 # System Management Bus (SMB)
565 #
566 options         ENABLE_ALART            # Control alarm on Intel intpm driver
567
568 #
569 # Set the number of PV entries per process.  Increasing this can
570 # stop panics related to heavy use of shared memory.  However, that can
571 # (combined with large amounts of physical memory) cause panics at
572 # boot time due the kernel running out of VM space.
573 #
574 # If you're tweaking this, you might also want to increase the sysctls
575 # "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
576 #
577 # The value below is the one more than the default.
578 #
579 options         PMAP_SHPGPERPROC=201
580
581 \f
582 #####################################################################
583 # ABI Emulation
584
585 #XXX keep these here for now and reactivate when support for emulating
586 #XXX these 32 bit binaries is added.
587
588 # Enable 32-bit runtime support for FreeBSD/i386 binaries.
589 options         COMPAT_IA32
590
591 # Enable iBCS2 runtime support for SCO and ISC binaries
592 #XXX#options    IBCS2
593
594 # Emulate spx device for client side of SVR3 local X interface
595 #XXX#options    SPX_HACK
596
597 # Enable Linux ABI emulation
598 #XXX#options    COMPAT_LINUX
599
600 # Enable 32-bit Linux ABI emulation (requires COMPAT_43 and COMPAT_IA32)
601 options         COMPAT_LINUX32
602
603 # Enable the linux-like proc filesystem support (requires COMPAT_LINUX32
604 # and PSEUDOFS)
605 options         LINPROCFS
606
607 #Enable the linux-like sys filesystem support (requires COMPAT_LINUX32
608 # and PSEUDOFS)
609 options         LINSYSFS
610
611 #
612 # SysVR4 ABI emulation
613 #
614 # The svr4 ABI emulator can be statically compiled into the kernel or loaded as
615 # a KLD module.
616 # The STREAMS network emulation code can also be compiled statically or as a
617 # module.  If loaded as a module, it must be loaded before the svr4 module
618 # (the /usr/sbin/svr4 script does this for you).  If compiling statically,
619 # the `streams' device must be configured into any kernel which also
620 # specifies COMPAT_SVR4.  It is possible to have a statically-configured
621 # STREAMS device and a dynamically loadable svr4 emulator;  the /usr/sbin/svr4
622 # script understands that it doesn't need to load the `streams' module under
623 # those circumstances.
624 # Caveat:  At this time, `options KTRACE' is required for the svr4 emulator
625 # (whether static or dynamic).
626 #
627 #XXX#options    COMPAT_SVR4     # build emulator statically
628 #XXX#options    DEBUG_SVR4      # enable verbose debugging
629 #XXX#device     streams         # STREAMS network driver (required for svr4).
630
631 \f
632 #####################################################################
633 # VM OPTIONS
634
635 # KSTACK_PAGES is the number of memory pages to assign to the kernel
636 # stack of each thread.
637
638 options         KSTACK_PAGES=3
639
640 #####################################################################
641
642 # More undocumented options for linting.
643 # Note that documenting these are not considered an affront.
644
645 options         FB_INSTALL_CDEV         # install a CDEV entry in /dev
646
647 options         KBDIO_DEBUG=2
648 options         KBD_MAXRETRY=4
649 options         KBD_MAXWAIT=6
650 options         KBD_RESETDELAY=201
651
652 options         PSM_DEBUG=1
653
654 options         TIMER_FREQ=((14318182+6)/12)
655
656 options         VM_KMEM_SIZE
657 options         VM_KMEM_SIZE_MAX
658 options         VM_KMEM_SIZE_SCALE
659
660 # Enable NDIS binary driver support
661 options         NDISAPI
662 device          ndis