]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc046ebb58419a08a091348acfbca1b34ef013568
tree119e81ced9b0d9b19577e855c810449313b1b928
parent6b7facc6941662f1d0d1aa6b47ab3d078580af26
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