nvme: use full nvme_tracker space for PRP list
Since the nvme_tracker struct was extended to allow space for 253 SGL descriptors at 16 bytes each, we can use the same amount of space in the other branch of the union to store 506 PRP list entries at 8 bytes each. This increases the maximum supported I/O size for PRP-only devices from 128 KB to slightly under 2 MB. Change-Id: I2b9905be41343ff360b4cdaccca87ea6f753e89c Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
68ef53d128
commit
9f67a07fdc
@ -68,14 +68,14 @@
|
|||||||
*/
|
*/
|
||||||
#define NVME_INTEL_QUIRK_WRITE_LATENCY 0x2
|
#define NVME_INTEL_QUIRK_WRITE_LATENCY 0x2
|
||||||
|
|
||||||
#define NVME_MAX_PRP_LIST_ENTRIES (32)
|
#define NVME_MAX_PRP_LIST_ENTRIES (506)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For commands requiring more than 2 PRP entries, one PRP will be
|
* For commands requiring more than 2 PRP entries, one PRP will be
|
||||||
* embedded in the command (prp1), and the rest of the PRP entries
|
* embedded in the command (prp1), and the rest of the PRP entries
|
||||||
* will be in a list pointed to by the command (prp2). This means
|
* will be in a list pointed to by the command (prp2). This means
|
||||||
* that real max number of PRP entries we support is 32+1, which
|
* that real max number of PRP entries we support is 506+1, which
|
||||||
* results in a max xfer size of 32*PAGE_SIZE.
|
* results in a max xfer size of 506*PAGE_SIZE.
|
||||||
*/
|
*/
|
||||||
#define NVME_MAX_XFER_SIZE NVME_MAX_PRP_LIST_ENTRIES * PAGE_SIZE
|
#define NVME_MAX_XFER_SIZE NVME_MAX_PRP_LIST_ENTRIES * PAGE_SIZE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user