]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
nvme: fix NSSRS offset in CAP register
authorKlaus Jensen <its@irrelevant.dk>
Wed, 23 Oct 2019 07:33:15 +0000 (09:33 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 4 Nov 2019 08:21:45 +0000 (09:21 +0100)
Fix the offset of the NSSRS field the CAP register.

From NVME 1.4, section 3 ("Controller Registers"), subsection 3.1.1
("Offset 0h: CAP – Controller Capabilities") CAP_NSSRS_SHIFT is bit 36,
not 33.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reported-by: Javier Gonzalez <javier.gonz@samsung.com>
Message-id: 20191023073315.446534-1-its@irrelevant.dk
Reviewed-by: John Snow <jsnow@redhat.com>
[mreitz: Added John's note on the location in the specification where
         this information can be found]
Signed-off-by: Max Reitz <mreitz@redhat.com>
include/block/nvme.h

index ab5943b90aaa312ab2f36df364857392c491685e..8fb941c6537c24c4c862f573896f4eab0a9f7e92 100644 (file)
@@ -23,7 +23,7 @@ enum NvmeCapShift {
     CAP_AMS_SHIFT      = 17,
     CAP_TO_SHIFT       = 24,
     CAP_DSTRD_SHIFT    = 32,
-    CAP_NSSRS_SHIFT    = 33,
+    CAP_NSSRS_SHIFT    = 36,
     CAP_CSS_SHIFT      = 37,
     CAP_MPSMIN_SHIFT   = 48,
     CAP_MPSMAX_SHIFT   = 52,