Skip to content

NVMe: suspend resume

Keith Busch linux-nvme 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 0 repliesNew
  2. v45 patches 0 repliesSuperseded
  3. v35 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches0 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6NVMe: Group pci related actions in functionsdrivers/block/nvme-core.c+66 -460 replies
2/6NVMe: Separate queue alloc/free from create/deletedrivers/block/nvme-core.c+94 -390 replies
3/6NVMe: Separate controller init from disk discoverydrivers/block/nvme-core.c+47 -300 replies
4/6NVMe: Use normal shutdowndrivers/block/nvme-core.c include/linux/nvme.h+28 -00 replies
5/6NVMe: Add pci suspend/resume driver callbacksdrivers/block/nvme-core.c+58 -150 replies
6/6NVMe: Handle ioremap failuredrivers/block/nvme-core.c+22 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCHv5 0/6] NVMe: suspend resume

... yet another version.

v4->v5:

Renamed 'nvme_free_queue_mem' to 'nvme_free_queue' since it does more than simply freeing the queue's memory; the bio_list is cleared here instead of when disabling the queue since it doesn't appear anything stops IO from being submitted while the device is being suspended. The driver should be able to complete these bio requests after resume, so we clear the bio_list only when we don't expect the device to start handling IO again.

Moved the check for freeing previously allocated IO queues that are no longer usable to the 'suspend/resume' patch since it would not be possible to hit that code in the patch where it was initially added.

Added the patch to handle ioremap failure at the end of this change set since we can use the newly added q_suspended flag to know whether or not to call free_irq on the admin queue on initialization failure.

Fixed previous merge error setting dma coherent mask twice.

A few checkpatch issues.

Keith Busch (6):
NVMe: Group pci related actions in functions
NVMe: Separate queue alloc/free from create/delete
NVMe: Separate controller init from disk discovery
NVMe: Use normal shutdown
NVMe: Add pci suspend/resume driver callbacks
NVMe: Handle ioremap failure

 drivers/block/nvme-core.c |  437 +++++++++++++++++++++++++++++++--------------
 include/linux/nvme.h      |    2 +
 2 files changed, 308 insertions(+), 131 deletions(-)