]> git.ipfire.org Git - people/arne_f/kernel.git/commit
nvme: simplify stripe quirk
authorKeith Busch <keith.busch@intel.com>
Tue, 4 Apr 2017 19:32:16 +0000 (19:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Apr 2017 10:41:18 +0000 (12:41 +0200)
commit43cfff65c989c0ef722bfcd2335b07a48e09aab9
treee9acd44cd8016f80435ec6a8f2fa62932513dc6d
parent8d620dff40bab02f4da98c95e2fd47f445f5440a
nvme: simplify stripe quirk

[ Upstream commit e6282aef7b89a11d26e731060c4409b7aac278bf ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h