numam-spdk/lib/nvme
Stephen Bates 627bee96a4 nvme_pci: Correct bug in CMB allocation
There was a bug reported by Cunyin Chang with regards to how the
cmb_current_offset was calculated when the CMB offset into the CMB BAR
is non-zero. This patch fixes this issue and also fixes the problem
that the last valid offset into the BAR *may* differ if registration
is utilized or not (due to the 2MiB alignment and length requirements
for registered memory).

Change-Id: Id08d6a5a40b828338f6a66599171cc8dd59768a3
Signed-off-by: Stephen Bates <sbates@raithlin.com>
Reviewed-on: https://review.gerrithub.io/401832
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-03-02 13:31:48 -05:00
..
Makefile build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
nvme_ctrlr_cmd.c astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
nvme_ctrlr.c nvme: add transport id to some log messages 2018-02-23 15:28:11 -05:00
nvme_internal.h nvme: fixing ctrlr mutex free 2018-02-20 12:31:34 -05:00
nvme_ns_cmd.c nvme: free children recursively 2018-02-23 15:35:32 -05:00
nvme_ns.c log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
nvme_pcie.c nvme_pci: Correct bug in CMB allocation 2018-03-02 13:31:48 -05:00
nvme_qpair.c astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
nvme_quirks.c nvme: add debug logs for matched quirks 2018-02-23 10:07:39 -05:00
nvme_rdma.c nvme: fixing ctrlr mutex free 2018-02-20 12:31:34 -05:00
nvme_transport.c nvme: add API to allocate CMB I/O buffers 2018-02-12 19:11:44 -05:00
nvme_uevent.c util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
nvme_uevent.h nvme: Add support of hotplug for vfio-attached devices. 2017-12-06 17:04:49 -05:00
nvme.c nvme: add transport id to some log messages 2018-02-23 15:28:11 -05:00