]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1e8eb410d7fd3cc99098a940c189c45d4dcd7cb
treee16412fb89c2eec7e9f430f72a4aaa9fb5fdac02
parent6b55c29835acad8e506316c165123bec4d5bb193
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
a97dc5086fae. This causes various issues on that drive. Add a quirk to
still set MEDIUM priority for that controller.

Fixes: a97dc5086fae ("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