mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
lightnvm: Inherit mdts from the parent nvme device
Current lightnvm and pblk implementation does not care about NVMe max data transfer size, which can be smaller than 64*K=256K. There are existing NVMe controllers which NVMe max data transfer size is lower that 256K (for example 128K, which happens for existing NVMe controllers which are NVMe spec compliant). Such a controllers are not able to handle command which contains 64 PPAs, since the the size of DMAed buffer will be above the capabilities of such a controller. Signed-off-by: Igor Konopko <igor.j.konopko@intel.com> Reviewed-by: Hans Holmberg <hans.holmberg@cnexlabs.com> Reviewed-by: Javier González <javier@javigon.com> Signed-off-by: Matias Bjørling <mb@lightnvm.io> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
d38954ed1b
commit
a14669ebc0
3 changed files with 9 additions and 2 deletions
|
@ -358,6 +358,7 @@ struct nvm_geo {
|
|||
u16 csecs; /* sector size */
|
||||
u16 sos; /* out-of-band area size */
|
||||
bool ext; /* metadata in extended data buffer */
|
||||
u32 mdts; /* Max data transfer size*/
|
||||
|
||||
/* device write constrains */
|
||||
u32 ws_min; /* minimum write size */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue