UPSTREAM: PM / Domains: Remove redundant wrapper functions for system PM
[firefly-linux-kernel-4.4.55.git] / drivers / base / Kconfig
index 4fe77b887457ca08edfb114643ff8c87e369a500..98504ec99c7d9e52ce44c317504fab2d585ce476 100644 (file)
@@ -1,11 +1,10 @@
 menu "Generic Driver Options"
 
-config UEVENT_HELPER_PATH
-       string "path to uevent helper"
-       depends on HOTPLUG
-       default ""
+config UEVENT_HELPER
+       bool "Support for uevent helper"
+       default y
        help
-         Path to uevent helper program forked by the kernel for
+         The uevent helper program is forked by the kernel for
          every uevent.
          Before the switch to the netlink-based uevent source, this was
          used to hook hotplug scripts into kernel device events. It
@@ -16,14 +15,18 @@ config UEVENT_HELPER_PATH
          that it creates a high system load, or on smaller systems
          it is known to create out-of-memory situations during bootup.
 
-         To disable user space helper program execution at early boot
-         time specify an empty string here. This setting can be altered
+config UEVENT_HELPER_PATH
+       string "path to uevent helper"
+       depends on UEVENT_HELPER
+       default ""
+       help
+         To disable user space helper program execution at by default
+         specify an empty string here. This setting can still be altered
          via /proc/sys/kernel/hotplug or via /sys/kernel/uevent_helper
          later at runtime.
 
 config DEVTMPFS
        bool "Maintain a devtmpfs filesystem to mount at /dev"
-       depends on HOTPLUG
        help
          This creates a tmpfs/ramfs filesystem instance early at bootup.
          In this filesystem, the kernel driver core maintains device
@@ -51,7 +54,7 @@ config DEVTMPFS_MOUNT
          with the commandline parameter: devtmpfs.mount=0|1.
          This option does not affect initramfs based booting, here
          the devtmpfs filesystem always needs to be mounted manually
-         after the roots is mounted.
+         after the rootfs is mounted.
          With this option enabled, it allows to bring up a system in
          rescue mode with init=/bin/sh, even when the /dev directory
          on the rootfs is completely empty.
@@ -146,15 +149,45 @@ config EXTRA_FIRMWARE_DIR
          some other directory containing the firmware files.
 
 config FW_LOADER_USER_HELPER
+       bool
+
+config FW_LOADER_USER_HELPER_FALLBACK
        bool "Fallback user-helper invocation for firmware loading"
        depends on FW_LOADER
-       default y
+       select FW_LOADER_USER_HELPER
        help
          This option enables / disables the invocation of user-helper
          (e.g. udev) for loading firmware files as a fallback after the
          direct file loading in kernel fails.  The user-mode helper is
          no longer required unless you have a special firmware file that
-         resides in a non-standard path.
+         resides in a non-standard path. Moreover, the udev support has
+         been deprecated upstream.
+
+         If you are unsure about this, say N here.
+
+config WANT_DEV_COREDUMP
+       bool
+       help
+         Drivers should "select" this option if they desire to use the
+         device coredump mechanism.
+
+config ALLOW_DEV_COREDUMP
+       bool "Allow device coredump" if EXPERT
+       default y
+       help
+         This option controls if the device coredump mechanism is available or
+         not; if disabled, the mechanism will be omitted even if drivers that
+         can use it are enabled.
+         Say 'N' for more sensitive systems or systems that don't want
+         to ever access the information to not have the code, nor keep any
+         data.
+
+         If unsure, say Y.
+
+config DEV_COREDUMP
+       bool
+       default y if WANT_DEV_COREDUMP
+       depends on ALLOW_DEV_COREDUMP
 
 config DEBUG_DRIVER
        bool "Driver Core verbose debug messages"
@@ -187,13 +220,8 @@ config GENERIC_CPU_DEVICES
        bool
        default n
 
-config HAVE_CPU_AUTOPROBE
-       def_bool ARCH_HAS_CPU_AUTOPROBE
-
 config GENERIC_CPU_AUTOPROBE
        bool
-       depends on !ARCH_HAS_CPU_AUTOPROBE
-       select HAVE_CPU_AUTOPROBE
 
 config SOC_BUS
        bool
@@ -210,6 +238,15 @@ config DMA_SHARED_BUFFER
          APIs extension; the file's descriptor can then be passed on to other
          driver.
 
+config FENCE_TRACE
+       bool "Enable verbose FENCE_TRACE messages"
+       depends on DMA_SHARED_BUFFER
+       help
+         Enable the FENCE_TRACE printks. This will add extra
+         spam to the console log, but will make it easier to diagnose
+         lockup related problems for dma-buffers shared across multiple
+         devices.
+
 config DMA_CMA
        bool "DMA Contiguous Memory Allocator"
        depends on HAVE_DMA_CONTIGUOUS && CMA
@@ -218,6 +255,9 @@ config DMA_CMA
          to allocate big physically-contiguous blocks of memory for use with
          hardware components that do not support I/O map nor scatter-gather.
 
+         You can disable CMA by specifying "cma=0" on the kernel's command
+         line.
+
          For more information see <include/linux/dma-contiguous.h>.
          If unsure, say "n".
 
@@ -227,18 +267,24 @@ comment "Default contiguous memory area size:"
 config CMA_SIZE_MBYTES
        int "Size in Mega Bytes"
        depends on !CMA_SIZE_SEL_PERCENTAGE
+       default 0 if X86
        default 16
        help
          Defines the size (in MiB) of the default memory area for Contiguous
-         Memory Allocator.
+         Memory Allocator.  If the size of 0 is selected, CMA is disabled by
+         default, but it can be enabled by passing cma=size[MG] to the kernel.
+
 
 config CMA_SIZE_PERCENTAGE
        int "Percentage of total memory"
        depends on !CMA_SIZE_SEL_MBYTES
+       default 0 if X86
        default 10
        help
          Defines the size of the default memory area for Contiguous Memory
          Allocator as a percentage of the total memory in the system.
+         If 0 percent is selected, CMA is disabled by default, but it can be
+         enabled by passing cma=size[MG] to the kernel.
 
 choice
        prompt "Selected region size"
@@ -260,7 +306,7 @@ endchoice
 
 config CMA_ALIGNMENT
        int "Maximum PAGE_SIZE order of alignment for contiguous buffers"
-       range 4 9
+       range 4 12
        default 8
        help
          DMA mapping framework by default aligns all buffers to the smallest
@@ -276,16 +322,6 @@ config CMA_ALIGNMENT
 
          If unsure, leave the default value "8".
 
-config CMA_AREAS
-       int "Maximum count of the CMA device-private areas"
-       default 7
-       help
-         CMA allows to create CMA areas for particular devices. This parameter
-         sets the maximum number of such device private CMA areas in the
-         system.
-
-         If unsure, leave the default value "7".
-
 endif
 
 endmenu