diff options
author | Klaus Jensen | 2019-10-23 09:33:15 +0200 |
---|---|---|
committer | Max Reitz | 2019-11-04 09:21:45 +0100 |
commit | 407d22eb5b5f9eeb75e450ef52c84e202b170838 (patch) | |
tree | 852bc3f7f4849eb8e829cdc8bb363bc6130cca8d /include/block/nvme.h | |
parent | Merge remote-tracking branch 'remotes/palmer/tags/palmer-for-master-4.2-sf1' ... (diff) | |
download | qemu-407d22eb5b5f9eeb75e450ef52c84e202b170838.tar.gz qemu-407d22eb5b5f9eeb75e450ef52c84e202b170838.tar.xz qemu-407d22eb5b5f9eeb75e450ef52c84e202b170838.zip |
nvme: fix NSSRS offset in CAP register
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>
Diffstat (limited to 'include/block/nvme.h')
-rw-r--r-- | include/block/nvme.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/block/nvme.h b/include/block/nvme.h index ab5943b90a..8fb941c653 100644 --- a/include/block/nvme.h +++ b/include/block/nvme.h @@ -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, |