summaryrefslogtreecommitdiff
path: root/components/drivers/nvme/Kconfig
blob: 1e993484558b8f8241d673cc85fd9968026242f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
menuconfig RT_USING_NVME
    bool "Using Non-Volatile Memory Express (NVME) device drivers"
    depends on RT_USING_DM
    depends on RT_USING_BLK
    depends on RT_USING_DMA
    default n
    help
      Enable the NVMe driver stack so PCIe-connected SSDs can be discovered,
      command queues created, and block devices exported through the block
      layer. Requires DMA and the driver model; disable if your platform lacks
      NVMe hardware.

config RT_USING_NVME_IO_QUEUE
    int "Number of I/O Command queue"
    depends on RT_USING_NVME
    default 2 if RT_THREAD_PRIORITY_8
    default 4 if RT_THREAD_PRIORITY_32
    default 8 if RT_THREAD_PRIORITY_256
    help
      Set how many submission/completion queue pairs to create for NVMe I/O.
      More queues improve parallelism on multicore systems but consume more DMA
      memory and interrupts.

config RT_NVME_PCI
    bool "NVME support on PCI bus"
    depends on RT_USING_NVME
    depends on RT_USING_PCI
    default y
    help
      Allow the driver to bind to NVMe controllers discovered via PCI/PCIe.
      Disable only for non-PCI environments (for example, custom interconnects).

if RT_USING_NVME
    osource "$(SOC_DM_NVME_DIR)/Kconfig"
endif