nvme-pci: allow use of cmb on v1.4 controllers

[ Upstream commit 20d3bb92e8 ]

Since NVMe v1.4 the Controller Memory Buffer must be explicitly enabled
by the host.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
[hch: avoid a local variable and add a comment]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Klaus Jensen 2021-01-15 07:30:46 +01:00 • committed by Greg Kroah-Hartman
commit 3e554aa3d0
2 changed files with 20 additions and 0 deletions