diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-05-08 19:25:15 +0300 |
---|---|---|
committer | Keith Busch <keith.busch@intel.com> | 2018-05-11 22:37:14 +0300 |
commit | 9abd68ef454c824bfd18629033367b4382b5f390 (patch) | |
tree | e16412fb89c2eec7e9f430f72a4aaa9fb5fdac02 /drivers/nvme/host/nvme.h | |
parent | 4e50d9ebaeaa3c6761d2b513ef7039510c8cf213 (diff) | |
download | linux-9abd68ef454c824bfd18629033367b4382b5f390.tar.xz |
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>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r-- | drivers/nvme/host/nvme.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 7ded7a51c430..17d2f7cf3fed 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -84,6 +84,11 @@ enum nvme_quirks { * Supports the LighNVM command set if indicated in vs[1]. */ NVME_QUIRK_LIGHTNVM = (1 << 6), + + /* + * Set MEDIUM priority on SQ creation + */ + NVME_QUIRK_MEDIUM_PRIO_SQ = (1 << 7), }; /* |