11da177e4SLinus Torvaldsmenu "Generic Driver Options" 21da177e4SLinus Torvalds 36a8d8abbSKay Sieversconfig UEVENT_HELPER_PATH 46a8d8abbSKay Sievers string "path to uevent helper" 57934779aSKay Sievers default "" 66a8d8abbSKay Sievers help 76a8d8abbSKay Sievers Path to uevent helper program forked by the kernel for 86a8d8abbSKay Sievers every uevent. 97934779aSKay Sievers Before the switch to the netlink-based uevent source, this was 107934779aSKay Sievers used to hook hotplug scripts into kernel device events. It 117934779aSKay Sievers usually pointed to a shell script at /sbin/hotplug. 127934779aSKay Sievers This should not be used today, because usual systems create 137934779aSKay Sievers many events at bootup or device discovery in a very short time 147934779aSKay Sievers frame. One forked process per event can create so many processes 157934779aSKay Sievers that it creates a high system load, or on smaller systems 167934779aSKay Sievers it is known to create out-of-memory situations during bootup. 176a8d8abbSKay Sievers 18573c9774SMárton Németh To disable user space helper program execution at early boot 19573c9774SMárton Németh time specify an empty string here. This setting can be altered 20573c9774SMárton Németh via /proc/sys/kernel/hotplug or via /sys/kernel/uevent_helper 21573c9774SMárton Németh later at runtime. 22573c9774SMárton Németh 232b2af54aSKay Sieversconfig DEVTMPFS 244237e5fdSKay Sievers bool "Maintain a devtmpfs filesystem to mount at /dev" 252b2af54aSKay Sievers help 26da5e4ef7SPeter Korsgaard This creates a tmpfs/ramfs filesystem instance early at bootup. 274237e5fdSKay Sievers In this filesystem, the kernel driver core maintains device 284237e5fdSKay Sievers nodes with their default names and permissions for all 294237e5fdSKay Sievers registered devices with an assigned major/minor number. 304237e5fdSKay Sievers Userspace can modify the filesystem content as needed, add 314237e5fdSKay Sievers symlinks, and apply needed permissions. 324237e5fdSKay Sievers It provides a fully functional /dev directory, where usually 334237e5fdSKay Sievers udev runs on top, managing permissions and adding meaningful 344237e5fdSKay Sievers symlinks. 354237e5fdSKay Sievers In very limited environments, it may provide a sufficient 364237e5fdSKay Sievers functional /dev without any further help. It also allows simple 374237e5fdSKay Sievers rescue systems, and reliably handles dynamic major/minor numbers. 382b2af54aSKay Sievers 39da5e4ef7SPeter Korsgaard Notice: if CONFIG_TMPFS isn't enabled, the simpler ramfs 40da5e4ef7SPeter Korsgaard file system will be used instead. 41da5e4ef7SPeter Korsgaard 422b2af54aSKay Sieversconfig DEVTMPFS_MOUNT 434237e5fdSKay Sievers bool "Automount devtmpfs at /dev, after the kernel mounted the rootfs" 442b2af54aSKay Sievers depends on DEVTMPFS 452b2af54aSKay Sievers help 464237e5fdSKay Sievers This will instruct the kernel to automatically mount the 474237e5fdSKay Sievers devtmpfs filesystem at /dev, directly after the kernel has 484237e5fdSKay Sievers mounted the root filesystem. The behavior can be overridden 494237e5fdSKay Sievers with the commandline parameter: devtmpfs.mount=0|1. 504237e5fdSKay Sievers This option does not affect initramfs based booting, here 514237e5fdSKay Sievers the devtmpfs filesystem always needs to be mounted manually 520feb03afSEmilio López after the rootfs is mounted. 534237e5fdSKay Sievers With this option enabled, it allows to bring up a system in 544237e5fdSKay Sievers rescue mode with init=/bin/sh, even when the /dev directory 554237e5fdSKay Sievers on the rootfs is completely empty. 562b2af54aSKay Sievers 571da177e4SLinus Torvaldsconfig STANDALONE 58967857dfSKees Cook bool "Select only drivers that don't need compile-time external firmware" 591da177e4SLinus Torvalds default y 601da177e4SLinus Torvalds help 611da177e4SLinus Torvalds Select this option if you don't have magic firmware for drivers that 621da177e4SLinus Torvalds need it. 631da177e4SLinus Torvalds 641da177e4SLinus Torvalds If unsure, say Y. 651da177e4SLinus Torvalds 661da177e4SLinus Torvaldsconfig PREVENT_FIRMWARE_BUILD 671da177e4SLinus Torvalds bool "Prevent firmware from being built" 681da177e4SLinus Torvalds default y 691da177e4SLinus Torvalds help 701da177e4SLinus Torvalds Say yes to avoid building firmware. Firmware is usually shipped 71113647a2Smatt mooney with the driver and only when updating the firmware should a 72113647a2Smatt mooney rebuild be made. 73113647a2Smatt mooney If unsure, say Y here. 741da177e4SLinus Torvalds 751da177e4SLinus Torvaldsconfig FW_LOADER 766a108a14SDavid Rientjes tristate "Userspace firmware loading support" if EXPERT 77d9b19199SAdrian Bunk default y 781da177e4SLinus Torvalds ---help--- 79113647a2Smatt mooney This option is provided for the case where none of the in-tree modules 80113647a2Smatt mooney require userspace firmware loading support, but a module built 81113647a2Smatt mooney out-of-tree does. 821da177e4SLinus Torvalds 83d172e7f5SDavid Woodhouseconfig FIRMWARE_IN_KERNEL 84d172e7f5SDavid Woodhouse bool "Include in-kernel firmware blobs in kernel binary" 85d172e7f5SDavid Woodhouse depends on FW_LOADER 86d172e7f5SDavid Woodhouse default y 87d172e7f5SDavid Woodhouse help 88d172e7f5SDavid Woodhouse The kernel source tree includes a number of firmware 'blobs' 89113647a2Smatt mooney that are used by various drivers. The recommended way to 90156faf90Smatt mooney use these is to run "make firmware_install", which, after 91156faf90Smatt mooney converting ihex files to binary, copies all of the needed 92156faf90Smatt mooney binary files in firmware/ to /lib/firmware/ on your system so 93d172e7f5SDavid Woodhouse that they can be loaded by userspace helpers on request. 94d172e7f5SDavid Woodhouse 95d172e7f5SDavid Woodhouse Enabling this option will build each required firmware blob 96d172e7f5SDavid Woodhouse into the kernel directly, where request_firmware() will find 97d172e7f5SDavid Woodhouse them without having to call out to userspace. This may be 98113647a2Smatt mooney useful if your root file system requires a device that uses 99113647a2Smatt mooney such firmware and do not wish to use an initrd. 100d172e7f5SDavid Woodhouse 101d172e7f5SDavid Woodhouse This single option controls the inclusion of firmware for 102113647a2Smatt mooney every driver that uses request_firmware() and ships its 103113647a2Smatt mooney firmware in the kernel source tree, which avoids a 104113647a2Smatt mooney proliferation of 'Include firmware for xxx device' options. 105d172e7f5SDavid Woodhouse 106d172e7f5SDavid Woodhouse Say 'N' and let firmware be loaded from userspace. 107d172e7f5SDavid Woodhouse 1084d2acfbfSDavid Woodhouseconfig EXTRA_FIRMWARE 1094d2acfbfSDavid Woodhouse string "External firmware blobs to build into the kernel binary" 1104d2acfbfSDavid Woodhouse depends on FW_LOADER 1114d2acfbfSDavid Woodhouse help 112113647a2Smatt mooney This option allows firmware to be built into the kernel for the case 113113647a2Smatt mooney where the user either cannot or doesn't want to provide it from 1144d2acfbfSDavid Woodhouse userspace at runtime (for example, when the firmware in question is 1154d2acfbfSDavid Woodhouse required for accessing the boot device, and the user doesn't want to 1164d2acfbfSDavid Woodhouse use an initrd). 1174d2acfbfSDavid Woodhouse 118113647a2Smatt mooney This option is a string and takes the (space-separated) names of the 119113647a2Smatt mooney firmware files -- the same names that appear in MODULE_FIRMWARE() 1204d2acfbfSDavid Woodhouse and request_firmware() in the source. These files should exist under 1214d2acfbfSDavid Woodhouse the directory specified by the EXTRA_FIRMWARE_DIR option, which is 122113647a2Smatt mooney by default the firmware subdirectory of the kernel source tree. 1234d2acfbfSDavid Woodhouse 124113647a2Smatt mooney For example, you might set CONFIG_EXTRA_FIRMWARE="usb8388.bin", copy 125113647a2Smatt mooney the usb8388.bin file into the firmware directory, and build the kernel. 126113647a2Smatt mooney Then any request_firmware("usb8388.bin") will be satisfied internally 127113647a2Smatt mooney without needing to call out to userspace. 1284d2acfbfSDavid Woodhouse 1294d2acfbfSDavid Woodhouse WARNING: If you include additional firmware files into your binary 130113647a2Smatt mooney kernel image that are not available under the terms of the GPL, 1314d2acfbfSDavid Woodhouse then it may be a violation of the GPL to distribute the resulting 132113647a2Smatt mooney image since it combines both GPL and non-GPL work. You should 1334d2acfbfSDavid Woodhouse consult a lawyer of your own before distributing such an image. 1344d2acfbfSDavid Woodhouse 1354d2acfbfSDavid Woodhouseconfig EXTRA_FIRMWARE_DIR 1364d2acfbfSDavid Woodhouse string "Firmware blobs root directory" 1374d2acfbfSDavid Woodhouse depends on EXTRA_FIRMWARE != "" 1384d2acfbfSDavid Woodhouse default "firmware" 1394d2acfbfSDavid Woodhouse help 1404d2acfbfSDavid Woodhouse This option controls the directory in which the kernel build system 1414d2acfbfSDavid Woodhouse looks for the firmware files listed in the EXTRA_FIRMWARE option. 142113647a2Smatt mooney The default is firmware/ in the kernel source tree, but by changing 143113647a2Smatt mooney this option you can point it elsewhere, such as /lib/firmware/ or 144113647a2Smatt mooney some other directory containing the firmware files. 1454d2acfbfSDavid Woodhouse 1467b1269f7STakashi Iwaiconfig FW_LOADER_USER_HELPER 1477b1269f7STakashi Iwai bool "Fallback user-helper invocation for firmware loading" 1487b1269f7STakashi Iwai depends on FW_LOADER 1497b1269f7STakashi Iwai default y 1507b1269f7STakashi Iwai help 1517b1269f7STakashi Iwai This option enables / disables the invocation of user-helper 1527b1269f7STakashi Iwai (e.g. udev) for loading firmware files as a fallback after the 1537b1269f7STakashi Iwai direct file loading in kernel fails. The user-mode helper is 1547b1269f7STakashi Iwai no longer required unless you have a special firmware file that 1557b1269f7STakashi Iwai resides in a non-standard path. 1567b1269f7STakashi Iwai 1571da177e4SLinus Torvaldsconfig DEBUG_DRIVER 1581da177e4SLinus Torvalds bool "Driver Core verbose debug messages" 1591da177e4SLinus Torvalds depends on DEBUG_KERNEL 1601da177e4SLinus Torvalds help 1611da177e4SLinus Torvalds Say Y here if you want the Driver core to produce a bunch of 1621da177e4SLinus Torvalds debug messages to the system log. Select this if you are having a 1631da177e4SLinus Torvalds problem with the driver core and want to see more of what is 1641da177e4SLinus Torvalds going on. 1651da177e4SLinus Torvalds 1661da177e4SLinus Torvalds If you are unsure about this, say N here. 1671da177e4SLinus Torvalds 1689ac7849eSTejun Heoconfig DEBUG_DEVRES 1699ac7849eSTejun Heo bool "Managed device resources verbose debug messages" 1709ac7849eSTejun Heo depends on DEBUG_KERNEL 1719ac7849eSTejun Heo help 1729ac7849eSTejun Heo This option enables kernel parameter devres.log. If set to 1739ac7849eSTejun Heo non-zero, devres debug messages are printed. Select this if 1749ac7849eSTejun Heo you are having a problem with devres or want to debug 1759ac7849eSTejun Heo resource management for a managed device. devres.log can be 1769ac7849eSTejun Heo switched on and off from sysfs node. 1779ac7849eSTejun Heo 1789ac7849eSTejun Heo If you are unsure about this, Say N here. 1799ac7849eSTejun Heo 1804039483fSMichael Holzheuconfig SYS_HYPERVISOR 1814039483fSMichael Holzheu bool 1824039483fSMichael Holzheu default n 183eba6cd67SRandy Dunlap 1849f13a1fdSBen Hutchingsconfig GENERIC_CPU_DEVICES 1859f13a1fdSBen Hutchings bool 1869f13a1fdSBen Hutchings default n 1879f13a1fdSBen Hutchings 18867bad2fdSArd Biesheuvelconfig HAVE_CPU_AUTOPROBE 18967bad2fdSArd Biesheuvel def_bool ARCH_HAS_CPU_AUTOPROBE 19067bad2fdSArd Biesheuvel 19167bad2fdSArd Biesheuvelconfig GENERIC_CPU_AUTOPROBE 19267bad2fdSArd Biesheuvel bool 19367bad2fdSArd Biesheuvel depends on !ARCH_HAS_CPU_AUTOPROBE 19467bad2fdSArd Biesheuvel select HAVE_CPU_AUTOPROBE 19567bad2fdSArd Biesheuvel 19674d1d82cSLee Jonesconfig SOC_BUS 19774d1d82cSLee Jones bool 19874d1d82cSLee Jones 199b83a313bSMark Brownsource "drivers/base/regmap/Kconfig" 200b83a313bSMark Brown 201d15bd7eeSSumit Semwalconfig DMA_SHARED_BUFFER 2023b32a592SDave Airlie bool 203d15bd7eeSSumit Semwal default n 204d15bd7eeSSumit Semwal select ANON_INODES 205d15bd7eeSSumit Semwal help 206d15bd7eeSSumit Semwal This option enables the framework for buffer-sharing between 207d15bd7eeSSumit Semwal multiple drivers. A buffer is associated with a file using driver 208d15bd7eeSSumit Semwal APIs extension; the file's descriptor can then be passed on to other 209d15bd7eeSSumit Semwal driver. 210d15bd7eeSSumit Semwal 211f825c736SAneesh Kumar K.Vconfig DMA_CMA 212f825c736SAneesh Kumar K.V bool "DMA Contiguous Memory Allocator" 213f825c736SAneesh Kumar K.V depends on HAVE_DMA_CONTIGUOUS && CMA 214c64be2bbSMarek Szyprowski help 215c64be2bbSMarek Szyprowski This enables the Contiguous Memory Allocator which allows drivers 216c64be2bbSMarek Szyprowski to allocate big physically-contiguous blocks of memory for use with 217c64be2bbSMarek Szyprowski hardware components that do not support I/O map nor scatter-gather. 218c64be2bbSMarek Szyprowski 219c64be2bbSMarek Szyprowski For more information see <include/linux/dma-contiguous.h>. 220c64be2bbSMarek Szyprowski If unsure, say "n". 221c64be2bbSMarek Szyprowski 222f825c736SAneesh Kumar K.Vif DMA_CMA 223c64be2bbSMarek Szyprowskicomment "Default contiguous memory area size:" 224c64be2bbSMarek Szyprowski 225c64be2bbSMarek Szyprowskiconfig CMA_SIZE_MBYTES 226c64be2bbSMarek Szyprowski int "Size in Mega Bytes" 227c64be2bbSMarek Szyprowski depends on !CMA_SIZE_SEL_PERCENTAGE 228c64be2bbSMarek Szyprowski default 16 229c64be2bbSMarek Szyprowski help 230c64be2bbSMarek Szyprowski Defines the size (in MiB) of the default memory area for Contiguous 231c64be2bbSMarek Szyprowski Memory Allocator. 232c64be2bbSMarek Szyprowski 233c64be2bbSMarek Szyprowskiconfig CMA_SIZE_PERCENTAGE 234c64be2bbSMarek Szyprowski int "Percentage of total memory" 235c64be2bbSMarek Szyprowski depends on !CMA_SIZE_SEL_MBYTES 236c64be2bbSMarek Szyprowski default 10 237c64be2bbSMarek Szyprowski help 238c64be2bbSMarek Szyprowski Defines the size of the default memory area for Contiguous Memory 239c64be2bbSMarek Szyprowski Allocator as a percentage of the total memory in the system. 240c64be2bbSMarek Szyprowski 241c64be2bbSMarek Szyprowskichoice 242c64be2bbSMarek Szyprowski prompt "Selected region size" 2435e97f3f9SLaurent Pinchart default CMA_SIZE_SEL_MBYTES 244c64be2bbSMarek Szyprowski 245c64be2bbSMarek Szyprowskiconfig CMA_SIZE_SEL_MBYTES 246c64be2bbSMarek Szyprowski bool "Use mega bytes value only" 247c64be2bbSMarek Szyprowski 248c64be2bbSMarek Szyprowskiconfig CMA_SIZE_SEL_PERCENTAGE 249c64be2bbSMarek Szyprowski bool "Use percentage value only" 250c64be2bbSMarek Szyprowski 251c64be2bbSMarek Szyprowskiconfig CMA_SIZE_SEL_MIN 252c64be2bbSMarek Szyprowski bool "Use lower value (minimum)" 253c64be2bbSMarek Szyprowski 254c64be2bbSMarek Szyprowskiconfig CMA_SIZE_SEL_MAX 255c64be2bbSMarek Szyprowski bool "Use higher value (maximum)" 256c64be2bbSMarek Szyprowski 257c64be2bbSMarek Szyprowskiendchoice 258c64be2bbSMarek Szyprowski 259c64be2bbSMarek Szyprowskiconfig CMA_ALIGNMENT 260c64be2bbSMarek Szyprowski int "Maximum PAGE_SIZE order of alignment for contiguous buffers" 261c64be2bbSMarek Szyprowski range 4 9 262c64be2bbSMarek Szyprowski default 8 263c64be2bbSMarek Szyprowski help 264c64be2bbSMarek Szyprowski DMA mapping framework by default aligns all buffers to the smallest 265c64be2bbSMarek Szyprowski PAGE_SIZE order which is greater than or equal to the requested buffer 266c64be2bbSMarek Szyprowski size. This works well for buffers up to a few hundreds kilobytes, but 267c64be2bbSMarek Szyprowski for larger buffers it just a memory waste. With this parameter you can 268c64be2bbSMarek Szyprowski specify the maximum PAGE_SIZE order for contiguous buffers. Larger 269c64be2bbSMarek Szyprowski buffers will be aligned only to this specified order. The order is 270c64be2bbSMarek Szyprowski expressed as a power of two multiplied by the PAGE_SIZE. 271c64be2bbSMarek Szyprowski 272c64be2bbSMarek Szyprowski For example, if your system defaults to 4KiB pages, the order value 273c64be2bbSMarek Szyprowski of 8 means that the buffers will be aligned up to 1MiB only. 274c64be2bbSMarek Szyprowski 275c64be2bbSMarek Szyprowski If unsure, leave the default value "8". 276c64be2bbSMarek Szyprowski 277c64be2bbSMarek Szyprowskiconfig CMA_AREAS 278c64be2bbSMarek Szyprowski int "Maximum count of the CMA device-private areas" 279c64be2bbSMarek Szyprowski default 7 280c64be2bbSMarek Szyprowski help 281c64be2bbSMarek Szyprowski CMA allows to create CMA areas for particular devices. This parameter 282c64be2bbSMarek Szyprowski sets the maximum number of such device private CMA areas in the 283c64be2bbSMarek Szyprowski system. 284c64be2bbSMarek Szyprowski 285c64be2bbSMarek Szyprowski If unsure, leave the default value "7". 286c64be2bbSMarek Szyprowski 287c64be2bbSMarek Szyprowskiendif 288c64be2bbSMarek Szyprowski 289eba6cd67SRandy Dunlapendmenu 290