11da177e4SLinus Torvaldsmenu "Generic Driver Options" 21da177e4SLinus Torvalds 36a8d8abbSKay Sieversconfig UEVENT_HELPER_PATH 46a8d8abbSKay Sievers string "path to uevent helper" 56a8d8abbSKay Sievers depends on HOTPLUG 67934779aSKay Sievers default "" 76a8d8abbSKay Sievers help 86a8d8abbSKay Sievers Path to uevent helper program forked by the kernel for 96a8d8abbSKay Sievers every uevent. 107934779aSKay Sievers Before the switch to the netlink-based uevent source, this was 117934779aSKay Sievers used to hook hotplug scripts into kernel device events. It 127934779aSKay Sievers usually pointed to a shell script at /sbin/hotplug. 137934779aSKay Sievers This should not be used today, because usual systems create 147934779aSKay Sievers many events at bootup or device discovery in a very short time 157934779aSKay Sievers frame. One forked process per event can create so many processes 167934779aSKay Sievers that it creates a high system load, or on smaller systems 177934779aSKay Sievers it is known to create out-of-memory situations during bootup. 186a8d8abbSKay Sievers 19573c9774SMárton Németh To disable user space helper program execution at early boot 20573c9774SMárton Németh time specify an empty string here. This setting can be altered 21573c9774SMárton Németh via /proc/sys/kernel/hotplug or via /sys/kernel/uevent_helper 22573c9774SMárton Németh later at runtime. 23573c9774SMárton Németh 242b2af54aSKay Sieversconfig DEVTMPFS 254237e5fdSKay Sievers bool "Maintain a devtmpfs filesystem to mount at /dev" 26da5e4ef7SPeter Korsgaard depends on HOTPLUG 272b2af54aSKay Sievers help 28da5e4ef7SPeter Korsgaard This creates a tmpfs/ramfs filesystem instance early at bootup. 294237e5fdSKay Sievers In this filesystem, the kernel driver core maintains device 304237e5fdSKay Sievers nodes with their default names and permissions for all 314237e5fdSKay Sievers registered devices with an assigned major/minor number. 324237e5fdSKay Sievers Userspace can modify the filesystem content as needed, add 334237e5fdSKay Sievers symlinks, and apply needed permissions. 344237e5fdSKay Sievers It provides a fully functional /dev directory, where usually 354237e5fdSKay Sievers udev runs on top, managing permissions and adding meaningful 364237e5fdSKay Sievers symlinks. 374237e5fdSKay Sievers In very limited environments, it may provide a sufficient 384237e5fdSKay Sievers functional /dev without any further help. It also allows simple 394237e5fdSKay Sievers rescue systems, and reliably handles dynamic major/minor numbers. 402b2af54aSKay Sievers 41da5e4ef7SPeter Korsgaard Notice: if CONFIG_TMPFS isn't enabled, the simpler ramfs 42da5e4ef7SPeter Korsgaard file system will be used instead. 43da5e4ef7SPeter Korsgaard 442b2af54aSKay Sieversconfig DEVTMPFS_MOUNT 454237e5fdSKay Sievers bool "Automount devtmpfs at /dev, after the kernel mounted the rootfs" 462b2af54aSKay Sievers depends on DEVTMPFS 472b2af54aSKay Sievers help 484237e5fdSKay Sievers This will instruct the kernel to automatically mount the 494237e5fdSKay Sievers devtmpfs filesystem at /dev, directly after the kernel has 504237e5fdSKay Sievers mounted the root filesystem. The behavior can be overridden 514237e5fdSKay Sievers with the commandline parameter: devtmpfs.mount=0|1. 524237e5fdSKay Sievers This option does not affect initramfs based booting, here 534237e5fdSKay Sievers the devtmpfs filesystem always needs to be mounted manually 544237e5fdSKay Sievers after the roots is mounted. 554237e5fdSKay Sievers With this option enabled, it allows to bring up a system in 564237e5fdSKay Sievers rescue mode with init=/bin/sh, even when the /dev directory 574237e5fdSKay Sievers on the rootfs is completely empty. 582b2af54aSKay Sievers 591da177e4SLinus Torvaldsconfig STANDALONE 601da177e4SLinus Torvalds bool "Select only drivers that don't need compile-time external firmware" if EXPERIMENTAL 611da177e4SLinus Torvalds default y 621da177e4SLinus Torvalds help 631da177e4SLinus Torvalds Select this option if you don't have magic firmware for drivers that 641da177e4SLinus Torvalds need it. 651da177e4SLinus Torvalds 661da177e4SLinus Torvalds If unsure, say Y. 671da177e4SLinus Torvalds 681da177e4SLinus Torvaldsconfig PREVENT_FIRMWARE_BUILD 691da177e4SLinus Torvalds bool "Prevent firmware from being built" 701da177e4SLinus Torvalds default y 711da177e4SLinus Torvalds help 721da177e4SLinus Torvalds Say yes to avoid building firmware. Firmware is usually shipped 73113647a2Smatt mooney with the driver and only when updating the firmware should a 74113647a2Smatt mooney rebuild be made. 75113647a2Smatt mooney If unsure, say Y here. 761da177e4SLinus Torvalds 771da177e4SLinus Torvaldsconfig FW_LOADER 786a108a14SDavid Rientjes tristate "Userspace firmware loading support" if EXPERT 79d9b19199SAdrian Bunk default y 801da177e4SLinus Torvalds ---help--- 81113647a2Smatt mooney This option is provided for the case where none of the in-tree modules 82113647a2Smatt mooney require userspace firmware loading support, but a module built 83113647a2Smatt mooney out-of-tree does. 841da177e4SLinus Torvalds 85d172e7f5SDavid Woodhouseconfig FIRMWARE_IN_KERNEL 86d172e7f5SDavid Woodhouse bool "Include in-kernel firmware blobs in kernel binary" 87d172e7f5SDavid Woodhouse depends on FW_LOADER 88d172e7f5SDavid Woodhouse default y 89d172e7f5SDavid Woodhouse help 90d172e7f5SDavid Woodhouse The kernel source tree includes a number of firmware 'blobs' 91113647a2Smatt mooney that are used by various drivers. The recommended way to 92156faf90Smatt mooney use these is to run "make firmware_install", which, after 93156faf90Smatt mooney converting ihex files to binary, copies all of the needed 94156faf90Smatt mooney binary files in firmware/ to /lib/firmware/ on your system so 95d172e7f5SDavid Woodhouse that they can be loaded by userspace helpers on request. 96d172e7f5SDavid Woodhouse 97d172e7f5SDavid Woodhouse Enabling this option will build each required firmware blob 98d172e7f5SDavid Woodhouse into the kernel directly, where request_firmware() will find 99d172e7f5SDavid Woodhouse them without having to call out to userspace. This may be 100113647a2Smatt mooney useful if your root file system requires a device that uses 101113647a2Smatt mooney such firmware and do not wish to use an initrd. 102d172e7f5SDavid Woodhouse 103d172e7f5SDavid Woodhouse This single option controls the inclusion of firmware for 104113647a2Smatt mooney every driver that uses request_firmware() and ships its 105113647a2Smatt mooney firmware in the kernel source tree, which avoids a 106113647a2Smatt mooney proliferation of 'Include firmware for xxx device' options. 107d172e7f5SDavid Woodhouse 108d172e7f5SDavid Woodhouse Say 'N' and let firmware be loaded from userspace. 109d172e7f5SDavid Woodhouse 1104d2acfbfSDavid Woodhouseconfig EXTRA_FIRMWARE 1114d2acfbfSDavid Woodhouse string "External firmware blobs to build into the kernel binary" 1124d2acfbfSDavid Woodhouse depends on FW_LOADER 1134d2acfbfSDavid Woodhouse help 114113647a2Smatt mooney This option allows firmware to be built into the kernel for the case 115113647a2Smatt mooney where the user either cannot or doesn't want to provide it from 1164d2acfbfSDavid Woodhouse userspace at runtime (for example, when the firmware in question is 1174d2acfbfSDavid Woodhouse required for accessing the boot device, and the user doesn't want to 1184d2acfbfSDavid Woodhouse use an initrd). 1194d2acfbfSDavid Woodhouse 120113647a2Smatt mooney This option is a string and takes the (space-separated) names of the 121113647a2Smatt mooney firmware files -- the same names that appear in MODULE_FIRMWARE() 1224d2acfbfSDavid Woodhouse and request_firmware() in the source. These files should exist under 1234d2acfbfSDavid Woodhouse the directory specified by the EXTRA_FIRMWARE_DIR option, which is 124113647a2Smatt mooney by default the firmware subdirectory of the kernel source tree. 1254d2acfbfSDavid Woodhouse 126113647a2Smatt mooney For example, you might set CONFIG_EXTRA_FIRMWARE="usb8388.bin", copy 127113647a2Smatt mooney the usb8388.bin file into the firmware directory, and build the kernel. 128113647a2Smatt mooney Then any request_firmware("usb8388.bin") will be satisfied internally 129113647a2Smatt mooney without needing to call out to userspace. 1304d2acfbfSDavid Woodhouse 1314d2acfbfSDavid Woodhouse WARNING: If you include additional firmware files into your binary 132113647a2Smatt mooney kernel image that are not available under the terms of the GPL, 1334d2acfbfSDavid Woodhouse then it may be a violation of the GPL to distribute the resulting 134113647a2Smatt mooney image since it combines both GPL and non-GPL work. You should 1354d2acfbfSDavid Woodhouse consult a lawyer of your own before distributing such an image. 1364d2acfbfSDavid Woodhouse 1374d2acfbfSDavid Woodhouseconfig EXTRA_FIRMWARE_DIR 1384d2acfbfSDavid Woodhouse string "Firmware blobs root directory" 1394d2acfbfSDavid Woodhouse depends on EXTRA_FIRMWARE != "" 1404d2acfbfSDavid Woodhouse default "firmware" 1414d2acfbfSDavid Woodhouse help 1424d2acfbfSDavid Woodhouse This option controls the directory in which the kernel build system 1434d2acfbfSDavid Woodhouse looks for the firmware files listed in the EXTRA_FIRMWARE option. 144113647a2Smatt mooney The default is firmware/ in the kernel source tree, but by changing 145113647a2Smatt mooney this option you can point it elsewhere, such as /lib/firmware/ or 146113647a2Smatt mooney some other directory containing the firmware files. 1474d2acfbfSDavid Woodhouse 1481da177e4SLinus Torvaldsconfig DEBUG_DRIVER 1491da177e4SLinus Torvalds bool "Driver Core verbose debug messages" 1501da177e4SLinus Torvalds depends on DEBUG_KERNEL 1511da177e4SLinus Torvalds help 1521da177e4SLinus Torvalds Say Y here if you want the Driver core to produce a bunch of 1531da177e4SLinus Torvalds debug messages to the system log. Select this if you are having a 1541da177e4SLinus Torvalds problem with the driver core and want to see more of what is 1551da177e4SLinus Torvalds going on. 1561da177e4SLinus Torvalds 1571da177e4SLinus Torvalds If you are unsure about this, say N here. 1581da177e4SLinus Torvalds 1599ac7849eSTejun Heoconfig DEBUG_DEVRES 1609ac7849eSTejun Heo bool "Managed device resources verbose debug messages" 1619ac7849eSTejun Heo depends on DEBUG_KERNEL 1629ac7849eSTejun Heo help 1639ac7849eSTejun Heo This option enables kernel parameter devres.log. If set to 1649ac7849eSTejun Heo non-zero, devres debug messages are printed. Select this if 1659ac7849eSTejun Heo you are having a problem with devres or want to debug 1669ac7849eSTejun Heo resource management for a managed device. devres.log can be 1679ac7849eSTejun Heo switched on and off from sysfs node. 1689ac7849eSTejun Heo 1699ac7849eSTejun Heo If you are unsure about this, Say N here. 1709ac7849eSTejun Heo 1714039483fSMichael Holzheuconfig SYS_HYPERVISOR 1724039483fSMichael Holzheu bool 1734039483fSMichael Holzheu default n 174eba6cd67SRandy Dunlap 175b83a313bSMark Brownsource "drivers/base/regmap/Kconfig" 176b83a313bSMark Brown 177d15bd7eeSSumit Semwalconfig DMA_SHARED_BUFFER 178d15bd7eeSSumit Semwal bool "Buffer framework to be shared between drivers" 179d15bd7eeSSumit Semwal default n 180d15bd7eeSSumit Semwal select ANON_INODES 181d15bd7eeSSumit Semwal help 182d15bd7eeSSumit Semwal This option enables the framework for buffer-sharing between 183d15bd7eeSSumit Semwal multiple drivers. A buffer is associated with a file using driver 184d15bd7eeSSumit Semwal APIs extension; the file's descriptor can then be passed on to other 185d15bd7eeSSumit Semwal driver. 186d15bd7eeSSumit Semwal 187eba6cd67SRandy Dunlapendmenu 188