nvme : Add sysfs entry for NVMe CMBs when appropriate
authorStephen Bates <sbates@raithlin.com>
Thu, 6 Oct 2016 02:01:12 +0000 (20:01 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 12 Oct 2016 17:10:28 +0000 (11:10 -0600)
commit202021c1a63c6ed69b3260e0fe10530c51f1e53e
tree48023a64bfabdc013b46797c5f1564b766f41c90
parentc5f6ce97c12104668784ee17fb927c52a944d3d8
nvme : Add sysfs entry for NVMe CMBs when appropriate

Add a sysfs attribute that contains salient information about the NVMe
Controller Memory Buffer when one is present. For now, just display the
information about the CMB available from the control registers. We attach
the CMB attribute file to the existing nvme_ctrl sysfs group so it can
handle the sysfs teardown.

Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Jay Freyensee <james_p_freyensee@linux.intel.com>
Signed-off-by: Stephen Bates <sbates@raithlin.com>
Acked-by Jon Derrick: <jonathan.derrick@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c