]> 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)
commit6c850a9e8f4b63604544744cf6f896b40bc94b93
treee16412fb89c2eec7e9f430f72a4aaa9fb5fdac02
parentdf4dc8e3fabf920765f792fb0dda0e2ef6913d16
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
7f7bdbf4158c. This causes various issues on that drive. Add a quirk to
still set MEDIUM priority for that controller.

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