Skip to content

nvme: Add NVM Express driver support

Tom Rini u-boot 1 version New

Get series with b4
b4 am 20170810013131.GG5837@bill-the-cat

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8dm: blk: part: Add UCLASS_NVME and IF_TYPE_NVME+0 -00 replies
2/8nvme: Add NVM Express driver support+0 -00 replies
3/8nvme: Add show routine to print detailed information+0 -00 replies
4/8nvme: Add nvme commands+0 -00 replies
5/8nvme: Detect devices that are class Storage Express+0 -00 replies
6/8nvme: Fix number of blocks detection+0 -00 replies
7/8nvme: Handle zero Maximum Data Transfer Size (MDTS)+0 -00 replies
8/8x86: qemu: Enable NVMe driver+0 -00 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchTom Rini
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/8] nvme: Add NVM Express driver support
Quoted 76 lines · Bin Meng

Hi Tom,

Quoted 64 lines · Bin Meng

This series adds NVM Express driver support to U-Boot.

This series is based on previous RFC v2 patchset [1][2] done by Zhikang Zhang and Wenbin Song, as well as Jon Nettleton's fixes
[3] on top of the RFC v1.

The patches are organized in a way that meets the requirement of upstream. Jon's fixes were squashed/integrated with a proper order in this series.

The original RFC driver was cleaned up a lot, to remove the compilation limitation on non-ARMv8 architecture (including a header file from armv8), drop the board_r.c modification, drop unnecessary PCI configuration space initialization, add 32-bit architecture support of readq/writeq operations, eliminate compiler warnings, as well as coding convention clean up, plus a fix to a bug that is exposed by QEMU platform.

Tested with an Intel SSD 750 series NVMe 400GB card, a Plextor NVMe SSD M8Pe Series 256GB card, on Intel Crown Bay board, as well as QEMU x86 emulation platform.

This series is available at u-boot-x86/nvme-working for testing.

[1] http://patchwork.ozlabs.org/patch/753088/
[2] http://patchwork.ozlabs.org/patch/753089/
[3] http://patchwork.ozlabs.org/patch/794909/

Bin Meng (2):
nvme: Handle zero Maximum Data Transfer Size (MDTS)
x86: qemu: Enable NVMe driver

Jon Nettleton (2):
nvme: Detect devices that are class Storage Express
nvme: Fix number of blocks detection

Zhikang Zhang (4):
dm: blk: part: Add UCLASS_NVME and IF_TYPE_NVME
nvme: Add NVM Express driver support
nvme: Add show routine to print detailed information
nvme: Add nvme commands

 cmd/Kconfig                |   7 +
 cmd/Makefile               |   1 +
 cmd/nvme.c                 | 197 +++++++++++
 configs/qemu-x86_defconfig |   1 +
 disk/part.c                |   6 +-
 doc/README.nvme            |  86 +++++
 drivers/Kconfig            |   2 +
 drivers/Makefile           |   1 +
 drivers/block/blk-uclass.c |   2 +
 drivers/nvme/Kconfig       |  12 +
 drivers/nvme/Makefile      |   7 +
 drivers/nvme/nvme-uclass.c |  62 ++++
 drivers/nvme/nvme.c        | 860 +++++++++++++++++++++++++++++++++++++++++++++
 drivers/nvme/nvme.h        | 717 +++++++++++++++++++++++++++++++++++++
 drivers/nvme/nvme_show.c   | 127 +++++++
 include/blk.h              |   1 +
 include/dm/uclass-id.h     |   1 +
 include/nvme.h             |  82 +++++
 include/pci_ids.h          |   1 +
 19 files changed, 2172 insertions(+), 1 deletion(-)
 create mode 100644 cmd/nvme.c
Quoted 8 lines
 create mode 100644 doc/README.nvme
 create mode 100644 drivers/nvme/Kconfig
 create mode 100644 drivers/nvme/Makefile
 create mode 100644 drivers/nvme/nvme-uclass.c
 create mode 100644 drivers/nvme/nvme.c
 create mode 100644 drivers/nvme/nvme.h
 create mode 100644 drivers/nvme/nvme_show.c
 create mode 100644 include/nvme.h
Quoted 3 lines

Do you think this NVMe support can be included in 2017.09? If yes (and no other review comments from the list), I can apply and for you to pull via the x86 tree.

I've reviewed it, and things look good. I'll pick it up in a day or two. My question now is, can this also be enabled for sandbox, given that we have PCI there? Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170809/5acfba2f/attachment.sig>