All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/1] nvme : Add sysfs entry for NVMe CMBs when appropriate
@ 2016-10-06  2:01 Stephen Bates
  2016-10-06  2:01 ` [PATCH v1 1/1] " Stephen Bates
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Bates @ 2016-10-06  2:01 UTC (permalink / raw)


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 cleanly to commit 997198ba1ed691c ("fs/block_dev.c: return the
right error in thaw_bdev()") 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

Changes since v0:
  Use direct refernece to nvme_dev cmbsz.
  Use snprintf.
  Added Reviewed-By tags.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-12 17:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-06  2:01 [PATCH v1 0/1] nvme : Add sysfs entry for NVMe CMBs when appropriate Stephen Bates
2016-10-06  2:01 ` [PATCH v1 1/1] " Stephen Bates
2016-10-07 15:26   ` Jon Derrick
2016-10-12 17:03     ` Stephen Bates
2016-10-12 17:10       ` Jens Axboe
2016-10-12 17:10     ` Stephen Bates
2016-10-12 17:13       ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.