]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: allow user toggling hmb usage
authorKeith Busch <kbusch@kernel.org>
Tue, 27 Jul 2021 16:40:43 +0000 (09:40 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 12:42:24 +0000 (14:42 +0200)
commit829b544755ebe978d51f7dc46e362bbc697231ef
tree8769761917dc7120f3b51f33dc8cb14c7a100132
parentc046ebb58419a08a091348acfbca1b34ef013568
nvme: allow user toggling hmb usage

The NVMe host memory buffer may consume a non-negligable amount of
memory. Controllers are required to function without the host memory
buffer enabled, but with possibly degraded performance. Export a sysfs
property to toggle this feature on a per-device granularity so users may
choose to reclaim memory at the expense of storage performance.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c