Skip to content

nvme : Add sysfs entry for NVMe CMBs when appropriate

Stephen Bates linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1nvme : Add sysfs entry for NVMe CMBs when appropriatedrivers/nvme/host/pci.c+35 -92 replies
1/1nvme : Add sysfs entry for NVMe CMBs when appropriate+0 -00 replies
1/1nvme : Add sysfs entry for NVMe CMBs when appropriate+0 -01 reply
1/1nvme : Add sysfs entry for NVMe CMBs when appropriate+0 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/1] nvme : Add sysfs entry for NVMe CMBs when appropriate

We have had a few attempts at adding CMB properties and control to sysfs [1][2]. This patch is based on Jon Derrick's [1] to some exent but takes a much more conservative approach by only displaying CMB properties and not attmpting to control them. Assuming this gets accepted I do have a follow-on that adds more information to the cmb attribute file.

Rather nicely we contain these changes solely to pci.c.

Applies to commit 1a6fe74dfd1b ("nvme: Pass pointers, not dma addresses, to nvme_get/set_features()") in Jens' for-4.9/block branch.

Tested on both QEMU and on some real hardware I have access too that can advertise and expose a CMB.

[1] http://www.spinics.net/lists/linux-block/msg01560.html
[2] http://www.spinics.net/lists/linux-rdma/msg38752.html

Stephen Bates (1):
nvme : Add sysfs entry for NVMe CMBs when appropriate

 drivers/nvme/host/pci.c | 46 ++++++++++++++++++++++++++++++++++++----------
 1 file changed, 36 insertions(+), 10 deletions(-)

--
2.1.4