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 351d156646STejun Heoconfig BLK_CGROUP_RWSTAT 361d156646STejun Heo bool 371d156646STejun Heo 383d6392cfSJens Axboeconfig BLK_DEV_BSG 3914d9fa35SJohn Stoffel bool "Block layer SG support v4" 4014d9fa35SJohn Stoffel default y 4172148aecSChristoph Hellwig select BLK_SCSI_REQUEST 4214d9fa35SJohn Stoffel help 43319a7b7fSFUJITA Tomonori Saying Y here will enable generic SG (SCSI generic) v4 support 44319a7b7fSFUJITA Tomonori for any block device. 45319a7b7fSFUJITA Tomonori 46319a7b7fSFUJITA Tomonori Unlike SG v3 (aka block/scsi_ioctl.c drivers/scsi/sg.c), SG v4 47319a7b7fSFUJITA Tomonori can handle complicated SCSI commands: tagged variable length cdbs 48319a7b7fSFUJITA Tomonori with bidirectional data transfers and generic request/response 49319a7b7fSFUJITA Tomonori protocols (e.g. Task Management Functions and SMP in Serial 50319a7b7fSFUJITA Tomonori Attached SCSI). 513d6392cfSJens Axboe 5214d9fa35SJohn Stoffel This option is required by recent UDEV versions to properly 5314d9fa35SJohn Stoffel access device serial numbers, etc. 5414d9fa35SJohn Stoffel 5514d9fa35SJohn Stoffel If unsure, say Y. 56ee86418dSNick Andrew 57aa387cc8SMike Christieconfig BLK_DEV_BSGLIB 58aa387cc8SMike Christie bool "Block layer SG support v4 helper lib" 59aa387cc8SMike Christie select BLK_DEV_BSG 6072148aecSChristoph Hellwig select BLK_SCSI_REQUEST 61aa387cc8SMike Christie help 62aa387cc8SMike Christie Subsystems will normally enable this if needed. Users will not 63aa387cc8SMike Christie normally need to manually enable this. 64aa387cc8SMike Christie 65aa387cc8SMike Christie If unsure, say N. 66aa387cc8SMike Christie 677ba1ba12SMartin K. Petersenconfig BLK_DEV_INTEGRITY 687ba1ba12SMartin K. Petersen bool "Block layer data integrity support" 69a7f7f624SMasahiro Yamada help 707ba1ba12SMartin K. Petersen Some storage devices allow extra information to be 717ba1ba12SMartin K. Petersen stored/retrieved to help protect the data. The block layer 727ba1ba12SMartin K. Petersen data integrity option provides hooks which can be used by 737ba1ba12SMartin K. Petersen filesystems to ensure better data integrity. 747ba1ba12SMartin K. Petersen 757ba1ba12SMartin K. Petersen Say yes here if you have a storage device that provides the 767ba1ba12SMartin K. Petersen T10/SCSI Data Integrity Field or the T13/ATA External Path 777ba1ba12SMartin K. Petersen Protection. If in doubt, say N. 787ba1ba12SMartin K. Petersen 79a754bd5fSHerbert Xuconfig BLK_DEV_INTEGRITY_T10 80a754bd5fSHerbert Xu tristate 81a754bd5fSHerbert Xu depends on BLK_DEV_INTEGRITY 82a754bd5fSHerbert Xu select CRC_T10DIF 83a754bd5fSHerbert Xu 846a0cb1bcSHannes Reineckeconfig BLK_DEV_ZONED 856a0cb1bcSHannes Reinecke bool "Zoned block device support" 86b9aef63aSDamien Le Moal select MQ_IOSCHED_DEADLINE 87a7f7f624SMasahiro Yamada help 886a0cb1bcSHannes Reinecke Block layer zoned block device support. This option enables 89*240e6ee2SKeith Busch support for ZAC/ZBC/ZNS host-managed and host-aware zoned block 90*240e6ee2SKeith Busch devices. 916a0cb1bcSHannes Reinecke 92*240e6ee2SKeith Busch Say yes here if you have a ZAC, ZBC, or ZNS storage device. 936a0cb1bcSHannes Reinecke 94e43473b7SVivek Goyalconfig BLK_DEV_THROTTLING 95e43473b7SVivek Goyal bool "Block layer bio throttling support" 968e42e0a2SKees Cook depends on BLK_CGROUP=y 971d156646STejun Heo select BLK_CGROUP_RWSTAT 98a7f7f624SMasahiro Yamada help 99e43473b7SVivek Goyal Block layer bio throttling support. It can be used to limit 100e43473b7SVivek Goyal the IO rate to a device. IO rate policies are per cgroup and 101e43473b7SVivek Goyal one needs to mount and use blkio cgroup controller for creating 102e43473b7SVivek Goyal cgroups and specifying per device IO rate policies. 103e43473b7SVivek Goyal 104da82c92fSMauro Carvalho Chehab See Documentation/admin-guide/cgroup-v1/blkio-controller.rst for more information. 105e43473b7SVivek Goyal 106327ffb9bSShaohua Liconfig BLK_DEV_THROTTLING_LOW 107327ffb9bSShaohua Li bool "Block throttling .low limit interface support (EXPERIMENTAL)" 108327ffb9bSShaohua Li depends on BLK_DEV_THROTTLING 109a7f7f624SMasahiro Yamada help 110327ffb9bSShaohua Li Add .low limit interface for block throttling. The low limit is a best 111327ffb9bSShaohua Li effort limit to prioritize cgroups. Depending on the setting, the limit 112327ffb9bSShaohua Li can be used to protect cgroups in terms of bandwidth/iops and better 113327ffb9bSShaohua Li utilize disk resource. 114327ffb9bSShaohua Li 115327ffb9bSShaohua Li Note, this is an experimental interface and could be changed someday. 116327ffb9bSShaohua Li 117080506adSPaul Gortmakerconfig BLK_CMDLINE_PARSER 118bab55417SCai Zhiyong bool "Block device command line partition parser" 119a7f7f624SMasahiro Yamada help 120080506adSPaul Gortmaker Enabling this option allows you to specify the partition layout from 121080506adSPaul Gortmaker the kernel boot args. This is typically of use for embedded devices 122080506adSPaul Gortmaker which don't otherwise have any standardized method for listing the 123080506adSPaul Gortmaker partitions on a block device. 124080506adSPaul Gortmaker 125898bd37aSMauro Carvalho Chehab See Documentation/block/cmdline-partition.rst for more information. 126bab55417SCai Zhiyong 12787760e5eSJens Axboeconfig BLK_WBT 12887760e5eSJens Axboe bool "Enable support for block device writeback throttling" 129a7f7f624SMasahiro Yamada help 13087760e5eSJens Axboe Enabling this option enables the block layer to throttle buffered 13187760e5eSJens Axboe background writeback from the VM, making it more smooth and having 13287760e5eSJens Axboe less impact on foreground operations. The throttling is done 13387760e5eSJens Axboe dynamically on an algorithm loosely based on CoDel, factoring in 13487760e5eSJens Axboe the realtime performance of the disk. 13587760e5eSJens Axboe 136d7067512SJosef Bacikconfig BLK_CGROUP_IOLATENCY 137d7067512SJosef Bacik bool "Enable support for latency based cgroup IO protection" 138d7067512SJosef Bacik depends on BLK_CGROUP=y 139a7f7f624SMasahiro Yamada help 140d7067512SJosef Bacik Enabling this option enables the .latency interface for IO throttling. 141d7067512SJosef Bacik The IO controller will attempt to maintain average IO latencies below 142d7067512SJosef Bacik the configured latency target, throttling anybody with a higher latency 143d7067512SJosef Bacik target than the victimized group. 144d7067512SJosef Bacik 145d7067512SJosef Bacik Note, this is an experimental interface and could be changed someday. 146d7067512SJosef Bacik 1477caa4715STejun Heoconfig BLK_CGROUP_IOCOST 1487caa4715STejun Heo bool "Enable support for cost model based cgroup IO controller" 1497caa4715STejun Heo depends on BLK_CGROUP=y 150cd006509STejun Heo select BLK_RQ_IO_DATA_LEN 1517caa4715STejun Heo select BLK_RQ_ALLOC_TIME 152a7f7f624SMasahiro Yamada help 1537caa4715STejun Heo Enabling this option enables the .weight interface for cost 1547caa4715STejun Heo model based proportional IO control. The IO controller 1557caa4715STejun Heo distributes IO capacity between different groups based on 1567caa4715STejun Heo their share of the overall weight distribution. 1577caa4715STejun Heo 15887760e5eSJens Axboeconfig BLK_WBT_MQ 15987760e5eSJens Axboe bool "Multiqueue writeback throttling" 16087760e5eSJens Axboe default y 16187760e5eSJens Axboe depends on BLK_WBT 162a7f7f624SMasahiro Yamada help 16387760e5eSJens Axboe Enable writeback throttling by default on multiqueue devices. 16487760e5eSJens Axboe Multiqueue currently doesn't have support for IO scheduling, 16587760e5eSJens Axboe enabling this option is recommended. 16687760e5eSJens Axboe 167400f73b2SOmar Sandovalconfig BLK_DEBUG_FS 168400f73b2SOmar Sandoval bool "Block layer debugging information in debugfs" 169400f73b2SOmar Sandoval default y 170400f73b2SOmar Sandoval depends on DEBUG_FS 171a7f7f624SMasahiro Yamada help 172400f73b2SOmar Sandoval Include block layer debugging information in debugfs. This information 173400f73b2SOmar Sandoval is mostly useful for kernel developers, but it doesn't incur any cost 174400f73b2SOmar Sandoval at runtime. 175400f73b2SOmar Sandoval 176400f73b2SOmar Sandoval Unless you are building a kernel for a tiny system, you should 177400f73b2SOmar Sandoval say Y here. 178400f73b2SOmar Sandoval 1796a5ac984SBart Van Asscheconfig BLK_DEBUG_FS_ZONED 1806a5ac984SBart Van Assche bool 1816a5ac984SBart Van Assche default BLK_DEBUG_FS && BLK_DEV_ZONED 1826a5ac984SBart Van Assche 183455a7b23SScott Bauerconfig BLK_SED_OPAL 184455a7b23SScott Bauer bool "Logic for interfacing with Opal enabled SEDs" 185a7f7f624SMasahiro Yamada help 186455a7b23SScott Bauer Builds Logic for interfacing with Opal enabled controllers. 187455a7b23SScott Bauer Enabling this option enables users to setup/unlock/lock 188455a7b23SScott Bauer Locking ranges for SED devices using the Opal protocol. 189455a7b23SScott Bauer 1901b262839SSatya Tangiralaconfig BLK_INLINE_ENCRYPTION 1911b262839SSatya Tangirala bool "Enable inline encryption support in block layer" 1921b262839SSatya Tangirala help 1931b262839SSatya Tangirala Build the blk-crypto subsystem. Enabling this lets the 1941b262839SSatya Tangirala block layer handle encryption, so users can take 1951b262839SSatya Tangirala advantage of inline encryption hardware if present. 1961b262839SSatya Tangirala 197488f6682SSatya Tangiralaconfig BLK_INLINE_ENCRYPTION_FALLBACK 198488f6682SSatya Tangirala bool "Enable crypto API fallback for blk-crypto" 199488f6682SSatya Tangirala depends on BLK_INLINE_ENCRYPTION 200488f6682SSatya Tangirala select CRYPTO 201488f6682SSatya Tangirala select CRYPTO_SKCIPHER 202488f6682SSatya Tangirala help 203488f6682SSatya Tangirala Enabling this lets the block layer handle inline encryption 204488f6682SSatya Tangirala by falling back to the kernel crypto API when inline 205488f6682SSatya Tangirala encryption hardware is not present. 206488f6682SSatya Tangirala 2079be96f3fSAl Viromenu "Partition Types" 2089be96f3fSAl Viro 2099be96f3fSAl Virosource "block/partitions/Kconfig" 2109be96f3fSAl Viro 2119be96f3fSAl Viroendmenu 2129be96f3fSAl Viro 2132b9e0aaeSLinus Torvaldsendif # BLOCK 2142b9e0aaeSLinus Torvalds 21599874d50SJens Axboeconfig BLOCK_COMPAT 21699874d50SJens Axboe bool 2172b9e0aaeSLinus Torvalds depends on BLOCK && COMPAT 21899874d50SJens Axboe default y 21999874d50SJens Axboe 2208ec2ef2bSStephen Rothwellconfig BLK_MQ_PCI 2218ec2ef2bSStephen Rothwell bool 2228ec2ef2bSStephen Rothwell depends on BLOCK && PCI 2238ec2ef2bSStephen Rothwell default y 2248ec2ef2bSStephen Rothwell 22573473427SChristoph Hellwigconfig BLK_MQ_VIRTIO 22673473427SChristoph Hellwig bool 22773473427SChristoph Hellwig depends on BLOCK && VIRTIO 22873473427SChristoph Hellwig default y 22973473427SChristoph Hellwig 23024c5dc66SSagi Grimbergconfig BLK_MQ_RDMA 23124c5dc66SSagi Grimberg bool 23224c5dc66SSagi Grimberg depends on BLOCK && INFINIBAND 23324c5dc66SSagi Grimberg default y 23424c5dc66SSagi Grimberg 235bca6b067SBart Van Asscheconfig BLK_PM 236bca6b067SBart Van Assche def_bool BLOCK && PM 237bca6b067SBart Van Assche 2388636a1f9SMasahiro Yamadasource "block/Kconfig.iosched" 239