mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 13:38:36 -07:00
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>
This commit is contained in:
parent
36609b4fa3
commit
407d22eb5b
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ enum NvmeCapShift {
|
||||||
CAP_AMS_SHIFT = 17,
|
CAP_AMS_SHIFT = 17,
|
||||||
CAP_TO_SHIFT = 24,
|
CAP_TO_SHIFT = 24,
|
||||||
CAP_DSTRD_SHIFT = 32,
|
CAP_DSTRD_SHIFT = 32,
|
||||||
CAP_NSSRS_SHIFT = 33,
|
CAP_NSSRS_SHIFT = 36,
|
||||||
CAP_CSS_SHIFT = 37,
|
CAP_CSS_SHIFT = 37,
|
||||||
CAP_MPSMIN_SHIFT = 48,
|
CAP_MPSMIN_SHIFT = 48,
|
||||||
CAP_MPSMAX_SHIFT = 52,
|
CAP_MPSMAX_SHIFT = 52,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue