18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# Open-Channel SSD NVM configuration
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_cimenuconfig NVM
78c2ecf20Sopenharmony_ci	bool "Open-Channel SSD target support"
88c2ecf20Sopenharmony_ci	depends on BLOCK && BROKEN
98c2ecf20Sopenharmony_ci	help
108c2ecf20Sopenharmony_ci	  Say Y here to get to enable Open-channel SSDs.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci	  Open-Channel SSDs implement a set of extension to SSDs, that
138c2ecf20Sopenharmony_ci	  exposes direct access to the underlying non-volatile memory.
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci	  If you say N, all options in this submenu will be skipped and disabled
168c2ecf20Sopenharmony_ci	  only do this if you know what you are doing.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciif NVM
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciconfig NVM_PBLK
218c2ecf20Sopenharmony_ci	tristate "Physical Block Device Open-Channel SSD target"
228c2ecf20Sopenharmony_ci	select CRC32
238c2ecf20Sopenharmony_ci	help
248c2ecf20Sopenharmony_ci	  Allows an open-channel SSD to be exposed as a block device to the
258c2ecf20Sopenharmony_ci	  host. The target assumes the device exposes raw flash and must be
268c2ecf20Sopenharmony_ci	  explicitly managed by the host.
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci	  Please note the disk format is considered EXPERIMENTAL for now.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciif NVM_PBLK
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciconfig NVM_PBLK_DEBUG
338c2ecf20Sopenharmony_ci	bool "PBlk Debug Support"
348c2ecf20Sopenharmony_ci	default n
358c2ecf20Sopenharmony_ci	help
368c2ecf20Sopenharmony_ci	  Enables debug support for pblk. This includes extra checks, more
378c2ecf20Sopenharmony_ci	  vocal error messages, and extra tracking fields in the pblk sysfs
388c2ecf20Sopenharmony_ci	  entries.
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ciendif # NVM_PBLK_DEBUG
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciendif # NVM
43