]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commite6282aef7b89a11d26e731060c4409b7aac278bf
tree0d5a6f83b46f79fdae45e2e8c495f8a5bd2927e8
parentb508fc354f6d168ec18673d99d3bce9d6c1d9475
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