nvme: add quirk to force medium priority for SQ creation
authorJens Axboe <axboe@kernel.dk>
Tue, 8 May 2018 16:25:15 +0000 (10:25 -0600)
committerKeith Busch <keith.busch@intel.com>
Fri, 11 May 2018 19:37:14 +0000 (13:37 -0600)
commit9abd68ef454c824bfd18629033367b4382b5f390
treee16412fb89c2eec7e9f430f72a4aaa9fb5fdac02
parent4e50d9ebaeaa3c6761d2b513ef7039510c8cf213
nvme: add quirk to force medium priority for SQ creation

Some P3100 drives have a bug where they think WRRU (weighted round robin)
is always enabled, even though the host doesn't set it. Since they think
it's enabled, they also look at the submission queue creation priority. We
used to set that to MEDIUM by default, but that was removed in commit
81c1cd98351b. This causes various issues on that drive. Add a quirk to
still set MEDIUM priority for that controller.

Fixes: 81c1cd98351b ("nvme/pci: Don't set reserved SQ create flags")
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Keith Busch <keith.busch@intel.com>
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c