diff options
author | Christoph Hellwig <hch@lst.de> | 2017-09-11 18:09:28 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-09-11 18:29:40 +0200 |
commit | 044a9df1a7cbb89f48fcc0e9e39997989342966b (patch) | |
tree | 0bb6cdf7a6d92428d4198597d12950121caf72d7 /include | |
parent | nvme-pci: propagate (some) errors from host memory buffer setup (diff) | |
download | linux-044a9df1a7cbb89f48fcc0e9e39997989342966b.tar.xz linux-044a9df1a7cbb89f48fcc0e9e39997989342966b.zip |
nvme-pci: implement the HMB entry number and size limitations
Adds support for the new Host Memory Buffer Minimum Descriptor Entry Size
and Host Memory Maximum Descriptors Entries field that were added in
TP 4002 HMB Enhancements. These allow the controller to advertise
limits for the usual number of segments in the host memory buffer, as
well as a minimum usable per-segment size.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nvme.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h index 5144f9103723..87723c86f136 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -226,7 +226,9 @@ struct nvme_id_ctrl { __le16 mntmt; __le16 mxtmt; __le32 sanicap; - __u8 rsvd332[180]; + __le32 hmminds; + __le16 hmmaxd; + __u8 rsvd338[174]; __u8 sqes; __u8 cqes; __le16 maxcmd; |