]> git.ipfire.org Git - thirdparty/qemu.git/commit
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)
commit407d22eb5b5f9eeb75e450ef52c84e202b170838
tree852bc3f7f4849eb8e829cdc8bb363bc6130cca8d
parent36609b4fa36f0ac934874371874416f7533a5408
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>
include/block/nvme.h