All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] NVMe: Set correct VS Value for 1.1 Compliant Controllers
@ 2015-01-08  9:40 Anubhav Rakshit
  2015-01-09 10:13 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Anubhav Rakshit @ 2015-01-08  9:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: Keith Busch


According to NVMe specifications Bits 15:08 represent Minor Version number.

Signed-off-by: Anubhav Rakshit <anubhav.rakshit@gmail.com>
---
 hw/block/nvme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index aa1ed98..26e69a7 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -813,7 +813,7 @@ static int nvme_init(PCIDevice *pci_dev)
     NVME_CAP_SET_CSS(n->bar.cap, 1);
     NVME_CAP_SET_MPSMAX(n->bar.cap, 4);

-    n->bar.vs = 0x00010001;
+    n->bar.vs = 0x00010100;
     n->bar.intmc = n->bar.intms = 0;

     for (i = 0; i < n->num_namespaces; i++) {
--
1.7.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] NVMe: Set correct VS Value for 1.1 Compliant Controllers
  2015-01-08  9:40 [Qemu-devel] [PATCH] NVMe: Set correct VS Value for 1.1 Compliant Controllers Anubhav Rakshit
@ 2015-01-09 10:13 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2015-01-09 10:13 UTC (permalink / raw)
  To: Anubhav Rakshit; +Cc: Keith Busch, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

On Thu, Jan 08, 2015 at 03:10:35PM +0530, Anubhav Rakshit wrote:
> 
> According to NVMe specifications Bits 15:08 represent Minor Version number.
> 
> Signed-off-by: Anubhav Rakshit <anubhav.rakshit@gmail.com>
> ---
>  hw/block/nvme.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

I confirmed that the NVMe 1.1b specification wants 1000 and not 0001 for
the minor version.

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-09 10:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-08  9:40 [Qemu-devel] [PATCH] NVMe: Set correct VS Value for 1.1 Compliant Controllers Anubhav Rakshit
2015-01-09 10:13 ` Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.