[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH 07/16] ahci: ncq sector count correction
From: |
John Snow |
Subject: |
[Qemu-block] [PATCH 07/16] ahci: ncq sector count correction |
Date: |
Fri, 19 Jun 2015 21:50:38 -0400 |
This value should not be size-corrected, 0 sectors does not imply
1 sector(s). This is just debug information, but it's misleading!
Signed-off-by: John Snow <address@hidden>
---
hw/ide/ahci.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
index 8fcea18..6bded67 100644
--- a/hw/ide/ahci.c
+++ b/hw/ide/ahci.c
@@ -1045,14 +1045,14 @@ static void process_ncq_command(AHCIState *s, int port,
uint8_t *cmd_fis,
DPRINTF(port, "NCQ transfer LBA from %"PRId64" to %"PRId64", "
"drive max %"PRId64"\n",
- ncq_tfs->lba, ncq_tfs->lba + ncq_tfs->sector_count - 2,
+ ncq_tfs->lba, ncq_tfs->lba + ncq_tfs->sector_count - 1,
ide_state->nb_sectors - 1);
switch(ncq_fis->command) {
case READ_FPDMA_QUEUED:
DPRINTF(port, "NCQ reading %d sectors from LBA %"PRId64", "
"tag %d\n",
- ncq_tfs->sector_count-1, ncq_tfs->lba, ncq_tfs->tag);
+ ncq_tfs->sector_count, ncq_tfs->lba, ncq_tfs->tag);
DPRINTF(port, "tag %d aio read %"PRId64"\n",
ncq_tfs->tag, ncq_tfs->lba);
@@ -1065,7 +1065,7 @@ static void process_ncq_command(AHCIState *s, int port,
uint8_t *cmd_fis,
break;
case WRITE_FPDMA_QUEUED:
DPRINTF(port, "NCQ writing %d sectors to LBA %"PRId64", tag %d\n",
- ncq_tfs->sector_count-1, ncq_tfs->lba, ncq_tfs->tag);
+ ncq_tfs->sector_count, ncq_tfs->lba, ncq_tfs->tag);
DPRINTF(port, "tag %d aio write %"PRId64"\n",
ncq_tfs->tag, ncq_tfs->lba);
--
2.1.0
- Re: [Qemu-block] [PATCH 04/16] ahci: check for ncq prdtl overflow, (continued)
[Qemu-block] [PATCH 07/16] ahci: ncq sector count correction,
John Snow <=
[Qemu-block] [PATCH 09/16] libqos/ahci: fix cmd_sanity for ncq, John Snow, 2015/06/19
[Qemu-block] [PATCH 10/16] libqos/ahci: add NCQ frame support, John Snow, 2015/06/19
[Qemu-block] [PATCH 11/16] libqos/ahci: edit wait to be ncq aware, John Snow, 2015/06/19
[Qemu-block] [PATCH 12/16] libqos/ahci: adjust expected NCQ interrupts, John Snow, 2015/06/19
[Qemu-block] [PATCH 13/16] libqos/ahci: set the NCQ tag on command_commit, John Snow, 2015/06/19
[Qemu-block] [PATCH 14/16] libqos/ahci: Force all NCQ commands to be LBA48, John Snow, 2015/06/19
[Qemu-block] [PATCH 16/16] qtest/ahci: ncq migration test, John Snow, 2015/06/19
[Qemu-block] [PATCH 15/16] qtest/ahci: simple ncq data test, John Snow, 2015/06/19
Re: [Qemu-block] [PATCH 00/16] ahci: ncq cleanup, part 1, Stefan Hajnoczi, 2015/06/22