]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme-pci: use simple suspend when a HMB is enabled
authorChristoph Hellwig <hch@lst.de>
Wed, 3 Jun 2020 06:24:17 +0000 (08:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:49:10 +0000 (17:49 +0200)
commit1292f619e706001f8b536102564b8b4aaadab1d4
tree5a0267ab54c3626e828d9f45a0b0247237267ae9
parent00f08a9998e84d11a5459fb32a3fd428e89b2f57
nvme-pci: use simple suspend when a HMB is enabled

[ Upstream commit b97120b15ebd3de51325084136d3b9c3cce656d6 ]

While the NVMe specification allows the device to access the host memory
buffer in host DRAM from all power states, hosts will fail access to
DRAM during S3 and similar power states.

Fixes: d916b1be94b6 ("nvme-pci: use host managed power state for suspend")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/pci.c