Skip to content

few fixes for NVMe and block devices

[email protected] u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest7 patches 10 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drivers: nvme: Enable Force Unit Access (FUA)drivers/nvme/nvme.c drivers/nvme/nvme.h+22 -01 reply
2/7drivers: block: Introduce blk_flush()/blk_dflush()disk/disk-uclass.c drivers/block/blk-uclass.c include/blk.h +1 more+55 -01 reply
3/7drivers: nvme: Implement flush commanddrivers/nvme/nvme.c+25 -00 replies
4/7cmd: Add flush support for all blk devicescmd/blk_common.c cmd/blkmap.c cmd/ide.c +6 more+26 -01 reply
5/7drivers: nvme: Export nvme_shutdown()drivers/nvme/nvme.h drivers/nvme/nvme_apple.c include/nvme.h+12 -72 replies
6/7docs: nvme: Update QEMU command for testingdoc/develop/driver-model/nvme.rst+1 -11 reply
7/7tests: add blk_dflush() coveragearch/sandbox/cpu/os.c drivers/block/sandbox.c include/os.h +2 more+26 -01 reply

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchJon LinSimon Glass
1/7Original-patch-by
2/7
3/7
4/7R-b
5/7
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/7] few fixes for NVMe and block devices

The series adds few fixes for NVMe subsystem and block device management.

Patch 1 adds FUA support for NVMe devices (original effort in [1]). Patch 2 adds plumbing for blk_flush()/blk_dflush().
Patch 3 introduces NVMe flush command.
Patch 4 enables flush subcommand to all the block-uclass front-end
commands (ide, nvme, pvblock, sata, scsi, usb, virtio) in one go.
Patch 5 makes nvme_shutdown() symbol public to enable use of it from
board_quiesce_devices()
Patch 6 tiny fixup for QEMU command for manual NVMe tests. Patch 7 updates tests for flushing block devices.

[1] https://lore.kernel.org/u-boot/20211019104049.v3.1.Ic581ec99f46b6dfa2e0b1922e670a333ac859e82@changeid/
[2] Link to v2: https://lore.kernel.org/u-boot/[email protected]/
[3] Link to CI: https://github.com/u-boot/u-boot/pull/995

Denis Mukhin (7):
drivers: nvme: Enable Force Unit Access (FUA)
drivers: block: Introduce blk_flush()/blk_dflush()
drivers: nvme: Implement flush command
cmd: Add flush support for all blk devices
drivers: nvme: Export nvme_shutdown()
docs: nvme: Update QEMU command for testing
tests: add blk_dflush() coverage

 arch/sandbox/cpu/os.c             |  5 ++++
 cmd/blk_common.c                  | 17 +++++++++++++
 cmd/blkmap.c                      |  2 ++
 cmd/ide.c                         |  1 +
 cmd/nvme.c                        |  1 +
 cmd/pvblock.c                     |  1 +
 cmd/sata.c                        |  1 +
 cmd/scsi.c                        |  1 +
 cmd/usb.c                         |  1 +
 cmd/virtio.c                      |  1 +
 disk/disk-uclass.c                |  6 +++++
 doc/develop/driver-model/nvme.rst |  2 +-
 drivers/block/blk-uclass.c        | 15 +++++++++++
 drivers/block/sandbox.c           |  9 +++++++
 drivers/nvme/nvme.c               | 42 +++++++++++++++++++++++++++++++
 drivers/nvme/nvme.h               | 12 ++++-----
 drivers/nvme/nvme_apple.c         |  1 +
 include/blk.h                     | 26 +++++++++++++++++++
 include/nvme.h                    | 11 ++++++++
 include/os.h                      |  8 ++++++
 include/part.h                    |  8 ++++++
 test/dm/host.c                    |  2 ++
 test/dm/mmc.c                     |  2 ++
 23 files changed, 167 insertions(+), 8 deletions(-)
Signature · 1 line
2.54.0