nvme-pci: disable hmb on idle suspend
authorKeith Busch <kbusch@kernel.org>
Tue, 27 Jul 2021 16:40:44 +0000 (09:40 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 12:42:24 +0000 (14:42 +0200)
commite5ad96f388b765fe6b52f64f37e910c0ba4f3de7
tree119e81ced9b0d9b19577e855c810449313b1b928
parentad0e9a80ba0f20db0f86e23d1ad2979513a9a8ee
nvme-pci: disable hmb on idle suspend

An idle suspend may or may not disable host memory access from devices
placed in low power mode. Either way, it should always be safe to
disable the host memory buffer prior to entering the low power mode, and
this should also always be faster than a full device shutdown.

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