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:50:43 +0000 (17:50 +0200)
commitd3caf0e49492943927b4a831f88df3cb09de68eb
tree6a500b2cda49ae0587e0cddb74ccb2ad0a3c492e
parent9777d12a8b232b8134401cd56c9027caa9fe59c6
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