]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: simplify stripe quirk
authorKeith Busch <keith.busch@intel.com>
Mon, 19 Dec 2016 16:37:50 +0000 (11:37 -0500)
committerChristoph Hellwig <hch@lst.de>
Wed, 21 Dec 2016 10:33:06 +0000 (11:33 +0100)
commitdc39e4bd4efe7cb293103efb4568245be102de4f
tree0d5a6f83b46f79fdae45e2e8c495f8a5bd2927e8
parent675c7ffb9c4b7541211304d813c422d23c80b088
nvme: simplify stripe quirk

Some OEMs believe they own the Identify Controller vendor specific
region and will repurpose it with their own values. While not common,
we can't rely on the PCI VID:DID to tell use how to decode the field
we reserved for this as the stripe size so we need to do something else
for the list of devices using this quirk.

The field was supposed to allow flexibility on the device's back-end
striping, but it turned out that never materialized; the chunk is always
the same as MDTS in the products subscribing to this quirk, so this
patch removes the stripe_size field and sets the chunk to the max hw
transfer size for the devices using this quirk.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h