[SeaBIOS] [PATCH 4/5] nvme: fix extraction of status code bits

2017-02-23 Thread Daniel Verkamp
The status code field is 8 bits wide starting at bit 1; the previous code would truncate the top bit. Signed-off-by: Daniel Verkamp --- src/hw/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hw/nvme.c b/src/hw/nvme.c index 97b05cb..9fda011 100644

[SeaBIOS] [PATCH 2/5] nvme: extend command timeout to 5 seconds

2017-02-23 Thread Daniel Verkamp
500 ms is not sufficient for the admin commands used during initialization on some real hardware. Signed-off-by: Daniel Verkamp --- src/hw/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hw/nvme.c b/src/hw/nvme.c index c709a3a..c194f9f 100644 ---

[SeaBIOS] [PATCH 3/5] nvme: fix reversed loop condition in cmd_readwrite

2017-02-23 Thread Daniel Verkamp
It looks like the intent was to exit the loop if a command failed, but the current code would actually continue looping in that case. Signed-off-by: Daniel Verkamp --- src/hw/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hw/nvme.c b/src/hw/nvme.c

[SeaBIOS] [PATCH 5/5] nvme: fix copy-paste mistake in comment

2017-02-23 Thread Daniel Verkamp
Signed-off-by: Daniel Verkamp --- src/hw/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hw/nvme.c b/src/hw/nvme.c index 9fda011..60557ae 100644 --- a/src/hw/nvme.c +++ b/src/hw/nvme.c @@ -549,7 +549,7 @@ nvme_controller_setup(void *opaque) static