Skip to content

Commit

Permalink
nvme: add the "debug" host driver
Browse files Browse the repository at this point in the history
This patch adds a new driver "nvme-debug". It uses memory as a backing
store and it is used to test the copy offload functionality.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
  • Loading branch information
Mikulas Patocka authored and intel-lab-lkp committed Feb 1, 2022
1 parent f2987e2 commit b59e9d9
Show file tree
Hide file tree
Showing 3 changed files with 852 additions and 0 deletions.
13 changes: 13 additions & 0 deletions drivers/nvme/host/Kconfig
Expand Up @@ -83,3 +83,16 @@ config NVME_TCP
from https://github.com/linux-nvme/nvme-cli.

If unsure, say N.

config NVME_DEBUG
tristate "NVM Express debug"
depends on INET
depends on BLOCK
select NVME_CORE
select NVME_FABRICS
select CRYPTO
select CRYPTO_CRC32C
help
This pseudo driver simulates a NVMe adapter.

If unsure, say N.
1 change: 1 addition & 0 deletions drivers/nvme/host/Makefile
Expand Up @@ -8,6 +8,7 @@ obj-$(CONFIG_NVME_FABRICS) += nvme-fabrics.o
obj-$(CONFIG_NVME_RDMA) += nvme-rdma.o
obj-$(CONFIG_NVME_FC) += nvme-fc.o
obj-$(CONFIG_NVME_TCP) += nvme-tcp.o
obj-$(CONFIG_NVME_DEBUG) += nvme-debug.o

nvme-core-y := core.o ioctl.o
nvme-core-$(CONFIG_TRACING) += trace.o
Expand Down

0 comments on commit b59e9d9

Please sign in to comment.