Skip to content

Commit

Permalink
nvme: 64kB page size fixes
Browse files Browse the repository at this point in the history
Initialise our maximum page size capability to 64kB and increase
the page_size variable from 16 to 32 bits.

Signed-off-by: Anton Blanchard <anton@samba.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
  • Loading branch information
antonblanchard authored and kevmw committed Dec 10, 2014
1 parent d110323 commit be0677a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions hw/block/nvme.c
Expand Up @@ -811,6 +811,7 @@ static int nvme_init(PCIDevice *pci_dev)
NVME_CAP_SET_AMS(n->bar.cap, 1);
NVME_CAP_SET_TO(n->bar.cap, 0xf);
NVME_CAP_SET_CSS(n->bar.cap, 1);
NVME_CAP_SET_MPSMAX(n->bar.cap, 4);

n->bar.vs = 0x00010001;
n->bar.intmc = n->bar.intms = 0;
Expand Down
2 changes: 1 addition & 1 deletion hw/block/nvme.h
Expand Up @@ -688,7 +688,7 @@ typedef struct NvmeCtrl {
NvmeBar bar;
BlockConf conf;

uint16_t page_size;
uint32_t page_size;
uint16_t page_bits;
uint16_t max_prp_ents;
uint16_t cqe_size;
Expand Down

0 comments on commit be0677a

Please sign in to comment.