diff options
author | Youzhong Yang <youzhong@gmail.com> | 2016-08-18 23:37:39 +0200 |
---|---|---|
committer | Hans Rosenfeld <hans.rosenfeld@nexenta.com> | 2016-08-25 17:04:46 +0200 |
commit | 910f0d12b47aeda4ed059254cc4af0d8c272d0ba (patch) | |
tree | 31349261877adae65af4d65895835eb1cd73a60a /usr/src | |
parent | e8ba2a389f6ca6999ca72dabbe2871e894bf6b67 (diff) | |
download | illumos-joyent-910f0d12b47aeda4ed059254cc4af0d8c272d0ba.tar.gz |
7315 nvme queue DMA attribute count_max is 0-based
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/io/nvme/nvme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/nvme/nvme.c b/usr/src/uts/common/io/nvme/nvme.c index 063c0fcc64..41ee79f0ed 100644 --- a/usr/src/uts/common/io/nvme/nvme.c +++ b/usr/src/uts/common/io/nvme/nvme.c @@ -273,7 +273,7 @@ static ddi_dma_attr_t nvme_queue_dma_attr = { .dma_attr_version = DMA_ATTR_V0, .dma_attr_addr_lo = 0, .dma_attr_addr_hi = 0xffffffffffffffffULL, - .dma_attr_count_max = (UINT16_MAX + 1) * sizeof (nvme_sqe_t), + .dma_attr_count_max = (UINT16_MAX + 1) * sizeof (nvme_sqe_t) - 1, .dma_attr_align = 0x1000, .dma_attr_burstsizes = 0x7ff, .dma_attr_minxfer = 0x1000, |