1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 23a65dfe8SJens Axboe# 33a65dfe8SJens Axboe# Block layer core configuration 43a65dfe8SJens Axboe# 516ed002fSJan Engelhardtmenuconfig BLOCK 66a108a14SDavid Rientjes bool "Enable the block layer" if EXPERT 79361401eSDavid Howells default y 888459642SOmar Sandoval select SBITMAP 96a83e74dSBart Van Assche select SRCU 109361401eSDavid Howells help 11ee86418dSNick Andrew Provide block layer support for the kernel. 129361401eSDavid Howells 13ee86418dSNick Andrew Disable this option to remove the block layer support from the 14ee86418dSNick Andrew kernel. This may be useful for embedded devices. 15ee86418dSNick Andrew 16ee86418dSNick Andrew If this option is disabled: 17ee86418dSNick Andrew 18ee86418dSNick Andrew - block device files will become unusable 19ee86418dSNick Andrew - some filesystems (such as ext3) will become unavailable. 20ee86418dSNick Andrew 21ee86418dSNick Andrew Also, SCSI character devices and USB storage will be disabled since 22ee86418dSNick Andrew they make use of various block layer definitions and facilities. 239361401eSDavid Howells 249361401eSDavid Howells Say Y here unless you know you really don't want to mount disks and 259361401eSDavid Howells suchlike. 269361401eSDavid Howells 279361401eSDavid Howellsif BLOCK 289361401eSDavid Howells 296f816b4bSTejun Heoconfig BLK_RQ_ALLOC_TIME 306f816b4bSTejun Heo bool 316f816b4bSTejun Heo 3272148aecSChristoph Hellwigconfig BLK_SCSI_REQUEST 3372148aecSChristoph Hellwig bool 3472148aecSChristoph Hellwig 353d6392cfSJens Axboeconfig BLK_DEV_BSG 3614d9fa35SJohn Stoffel bool "Block layer SG support v4" 3714d9fa35SJohn Stoffel default y 3872148aecSChristoph Hellwig select BLK_SCSI_REQUEST 3914d9fa35SJohn Stoffel help 40319a7b7fSFUJITA Tomonori Saying Y here will enable generic SG (SCSI generic) v4 support 41319a7b7fSFUJITA Tomonori for any block device. 42319a7b7fSFUJITA Tomonori 43319a7b7fSFUJITA Tomonori Unlike SG v3 (aka block/scsi_ioctl.c drivers/scsi/sg.c), SG v4 44319a7b7fSFUJITA Tomonori can handle complicated SCSI commands: tagged variable length cdbs 45319a7b7fSFUJITA Tomonori with bidirectional data transfers and generic request/response 46319a7b7fSFUJITA Tomonori protocols (e.g. Task Management Functions and SMP in Serial 47319a7b7fSFUJITA Tomonori Attached SCSI). 483d6392cfSJens Axboe 4914d9fa35SJohn Stoffel This option is required by recent UDEV versions to properly 5014d9fa35SJohn Stoffel access device serial numbers, etc. 5114d9fa35SJohn Stoffel 5214d9fa35SJohn Stoffel If unsure, say Y. 53ee86418dSNick Andrew 54aa387cc8SMike Christieconfig BLK_DEV_BSGLIB 55aa387cc8SMike Christie bool "Block layer SG support v4 helper lib" 56aa387cc8SMike Christie select BLK_DEV_BSG 5772148aecSChristoph Hellwig select BLK_SCSI_REQUEST 58aa387cc8SMike Christie help 59aa387cc8SMike Christie Subsystems will normally enable this if needed. Users will not 60aa387cc8SMike Christie normally need to manually enable this. 61aa387cc8SMike Christie 62aa387cc8SMike Christie If unsure, say N. 63aa387cc8SMike Christie 647ba1ba12SMartin K. Petersenconfig BLK_DEV_INTEGRITY 657ba1ba12SMartin K. Petersen bool "Block layer data integrity support" 662341c2f8SMartin K. Petersen select CRC_T10DIF if BLK_DEV_INTEGRITY 677ba1ba12SMartin K. Petersen ---help--- 687ba1ba12SMartin K. Petersen Some storage devices allow extra information to be 697ba1ba12SMartin K. Petersen stored/retrieved to help protect the data. The block layer 707ba1ba12SMartin K. Petersen data integrity option provides hooks which can be used by 717ba1ba12SMartin K. Petersen filesystems to ensure better data integrity. 727ba1ba12SMartin K. Petersen 737ba1ba12SMartin K. Petersen Say yes here if you have a storage device that provides the 747ba1ba12SMartin K. Petersen T10/SCSI Data Integrity Field or the T13/ATA External Path 757ba1ba12SMartin K. Petersen Protection. If in doubt, say N. 767ba1ba12SMartin K. Petersen 776a0cb1bcSHannes Reineckeconfig BLK_DEV_ZONED 786a0cb1bcSHannes Reinecke bool "Zoned block device support" 79b9aef63aSDamien Le Moal select MQ_IOSCHED_DEADLINE 806a0cb1bcSHannes Reinecke ---help--- 816a0cb1bcSHannes Reinecke Block layer zoned block device support. This option enables 826a0cb1bcSHannes Reinecke support for ZAC/ZBC host-managed and host-aware zoned block devices. 836a0cb1bcSHannes Reinecke 846a0cb1bcSHannes Reinecke Say yes here if you have a ZAC or ZBC storage device. 856a0cb1bcSHannes Reinecke 86e43473b7SVivek Goyalconfig BLK_DEV_THROTTLING 87e43473b7SVivek Goyal bool "Block layer bio throttling support" 888e42e0a2SKees Cook depends on BLK_CGROUP=y 89e43473b7SVivek Goyal ---help--- 90e43473b7SVivek Goyal Block layer bio throttling support. It can be used to limit 91e43473b7SVivek Goyal the IO rate to a device. IO rate policies are per cgroup and 92e43473b7SVivek Goyal one needs to mount and use blkio cgroup controller for creating 93e43473b7SVivek Goyal cgroups and specifying per device IO rate policies. 94e43473b7SVivek Goyal 95da82c92fSMauro Carvalho Chehab See Documentation/admin-guide/cgroup-v1/blkio-controller.rst for more information. 96e43473b7SVivek Goyal 97327ffb9bSShaohua Liconfig BLK_DEV_THROTTLING_LOW 98327ffb9bSShaohua Li bool "Block throttling .low limit interface support (EXPERIMENTAL)" 99327ffb9bSShaohua Li depends on BLK_DEV_THROTTLING 100327ffb9bSShaohua Li ---help--- 101327ffb9bSShaohua Li Add .low limit interface for block throttling. The low limit is a best 102327ffb9bSShaohua Li effort limit to prioritize cgroups. Depending on the setting, the limit 103327ffb9bSShaohua Li can be used to protect cgroups in terms of bandwidth/iops and better 104327ffb9bSShaohua Li utilize disk resource. 105327ffb9bSShaohua Li 106327ffb9bSShaohua Li Note, this is an experimental interface and could be changed someday. 107327ffb9bSShaohua Li 108080506adSPaul Gortmakerconfig BLK_CMDLINE_PARSER 109bab55417SCai Zhiyong bool "Block device command line partition parser" 110bab55417SCai Zhiyong ---help--- 111080506adSPaul Gortmaker Enabling this option allows you to specify the partition layout from 112080506adSPaul Gortmaker the kernel boot args. This is typically of use for embedded devices 113080506adSPaul Gortmaker which don't otherwise have any standardized method for listing the 114080506adSPaul Gortmaker partitions on a block device. 115080506adSPaul Gortmaker 116898bd37aSMauro Carvalho Chehab See Documentation/block/cmdline-partition.rst for more information. 117bab55417SCai Zhiyong 11887760e5eSJens Axboeconfig BLK_WBT 11987760e5eSJens Axboe bool "Enable support for block device writeback throttling" 12087760e5eSJens Axboe ---help--- 12187760e5eSJens Axboe Enabling this option enables the block layer to throttle buffered 12287760e5eSJens Axboe background writeback from the VM, making it more smooth and having 12387760e5eSJens Axboe less impact on foreground operations. The throttling is done 12487760e5eSJens Axboe dynamically on an algorithm loosely based on CoDel, factoring in 12587760e5eSJens Axboe the realtime performance of the disk. 12687760e5eSJens Axboe 127d7067512SJosef Bacikconfig BLK_CGROUP_IOLATENCY 128d7067512SJosef Bacik bool "Enable support for latency based cgroup IO protection" 129d7067512SJosef Bacik depends on BLK_CGROUP=y 130d7067512SJosef Bacik ---help--- 131d7067512SJosef Bacik Enabling this option enables the .latency interface for IO throttling. 132d7067512SJosef Bacik The IO controller will attempt to maintain average IO latencies below 133d7067512SJosef Bacik the configured latency target, throttling anybody with a higher latency 134d7067512SJosef Bacik target than the victimized group. 135d7067512SJosef Bacik 136d7067512SJosef Bacik Note, this is an experimental interface and could be changed someday. 137d7067512SJosef Bacik 138*7caa4715STejun Heoconfig BLK_CGROUP_IOCOST 139*7caa4715STejun Heo bool "Enable support for cost model based cgroup IO controller" 140*7caa4715STejun Heo depends on BLK_CGROUP=y 141*7caa4715STejun Heo select BLK_RQ_ALLOC_TIME 142*7caa4715STejun Heo ---help--- 143*7caa4715STejun Heo Enabling this option enables the .weight interface for cost 144*7caa4715STejun Heo model based proportional IO control. The IO controller 145*7caa4715STejun Heo distributes IO capacity between different groups based on 146*7caa4715STejun Heo their share of the overall weight distribution. 147*7caa4715STejun Heo 14887760e5eSJens Axboeconfig BLK_WBT_MQ 14987760e5eSJens Axboe bool "Multiqueue writeback throttling" 15087760e5eSJens Axboe default y 15187760e5eSJens Axboe depends on BLK_WBT 15287760e5eSJens Axboe ---help--- 15387760e5eSJens Axboe Enable writeback throttling by default on multiqueue devices. 15487760e5eSJens Axboe Multiqueue currently doesn't have support for IO scheduling, 15587760e5eSJens Axboe enabling this option is recommended. 15687760e5eSJens Axboe 157400f73b2SOmar Sandovalconfig BLK_DEBUG_FS 158400f73b2SOmar Sandoval bool "Block layer debugging information in debugfs" 159400f73b2SOmar Sandoval default y 160400f73b2SOmar Sandoval depends on DEBUG_FS 161400f73b2SOmar Sandoval ---help--- 162400f73b2SOmar Sandoval Include block layer debugging information in debugfs. This information 163400f73b2SOmar Sandoval is mostly useful for kernel developers, but it doesn't incur any cost 164400f73b2SOmar Sandoval at runtime. 165400f73b2SOmar Sandoval 166400f73b2SOmar Sandoval Unless you are building a kernel for a tiny system, you should 167400f73b2SOmar Sandoval say Y here. 168400f73b2SOmar Sandoval 1696a5ac984SBart Van Asscheconfig BLK_DEBUG_FS_ZONED 1706a5ac984SBart Van Assche bool 1716a5ac984SBart Van Assche default BLK_DEBUG_FS && BLK_DEV_ZONED 1726a5ac984SBart Van Assche 173455a7b23SScott Bauerconfig BLK_SED_OPAL 174455a7b23SScott Bauer bool "Logic for interfacing with Opal enabled SEDs" 175455a7b23SScott Bauer ---help--- 176455a7b23SScott Bauer Builds Logic for interfacing with Opal enabled controllers. 177455a7b23SScott Bauer Enabling this option enables users to setup/unlock/lock 178455a7b23SScott Bauer Locking ranges for SED devices using the Opal protocol. 179455a7b23SScott Bauer 1809be96f3fSAl Viromenu "Partition Types" 1819be96f3fSAl Viro 1829be96f3fSAl Virosource "block/partitions/Kconfig" 1839be96f3fSAl Viro 1849be96f3fSAl Viroendmenu 1859be96f3fSAl Viro 1862b9e0aaeSLinus Torvaldsendif # BLOCK 1872b9e0aaeSLinus Torvalds 18899874d50SJens Axboeconfig BLOCK_COMPAT 18999874d50SJens Axboe bool 1902b9e0aaeSLinus Torvalds depends on BLOCK && COMPAT 19199874d50SJens Axboe default y 19299874d50SJens Axboe 1938ec2ef2bSStephen Rothwellconfig BLK_MQ_PCI 1948ec2ef2bSStephen Rothwell bool 1958ec2ef2bSStephen Rothwell depends on BLOCK && PCI 1968ec2ef2bSStephen Rothwell default y 1978ec2ef2bSStephen Rothwell 19873473427SChristoph Hellwigconfig BLK_MQ_VIRTIO 19973473427SChristoph Hellwig bool 20073473427SChristoph Hellwig depends on BLOCK && VIRTIO 20173473427SChristoph Hellwig default y 20273473427SChristoph Hellwig 20324c5dc66SSagi Grimbergconfig BLK_MQ_RDMA 20424c5dc66SSagi Grimberg bool 20524c5dc66SSagi Grimberg depends on BLOCK && INFINIBAND 20624c5dc66SSagi Grimberg default y 20724c5dc66SSagi Grimberg 208bca6b067SBart Van Asscheconfig BLK_PM 209bca6b067SBart Van Assche def_bool BLOCK && PM 210bca6b067SBart Van Assche 2118636a1f9SMasahiro Yamadasource "block/Kconfig.iosched" 212