]> www.infradead.org Git - users/hch/block.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>
Tue, 10 Aug 2021 15:57:34 +0000 (17:57 +0200)
commit1d6f1f2600ed9fb06d3cce6f023f276217284df1
treed001bb6a39d476fe63ef5a55c4ba4fed7eef3405
parentc7b81b7fcbb49be0ed5f03c8a2465394aed54150
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