Ide patches
The following changes since commit c0b520dfb8890294a9f8879f4759172900585995:
Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2015-10-02 16:59:21 +0100)
are available in the git repository at:
https://github.com/jnsnow/qemu.git tags/ide-pull-request
for you to fetch changes up to ec6b69ca0305ab3a3e0461aecb6f190c59a765df:
qtest/ide-test: ppc64be correction for ATAPI tests (2015-10-05 12:00:56 -0400)
----------------------------------------------------------------
----------------------------------------------------------------
John Snow (3):
qtest/ahci: fix redundant assertion
MAINTAINERS: Small IDE/FDC touchup qtest/ide-test: ppc64be correction for ATAPI tests
MAINTAINERS | 2 ++ tests/ide-test.c | 4 ++-- tests/libqos/ahci.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-)
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 1/3] qtest/ahci: fix redundant assertion
Fixes https://bugs.launchpad.net/qemu/+bug/1497711
(!ncq || (ncq && lba48)) is the same as (!ncq || lba48).
The intention is simply: "If a command is NCQ,
it must also be LBA48."
Message-id: [email protected]
--- tests/libqos/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/libqos/ahci.c +1 -1
@@ -742,7 +742,7 @@ AHCICommand *ahci_command_create(uint8_t command_name)g_assert (!(props->lba28 && props->lba48));g_assert (!(props->read && props->write));g_assert (!props->size || props->data); -g_assert (!props->ncq || (props->ncq && props->lba48)); +g_assert (!props->ncq || props->lba48);/* Defaults and book-keeping */ cmd->props = props;
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 3/3] qtest/ide-test: ppc64be correction for ATAPI tests
In reply to John Snowthe 16bit ide data register is LE by definition.
Message-id: [email protected]
--- tests/ide-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/ide-test.c +2 -2
@@ -633,7 +633,7 @@ static void send_scsi_cdb_read10(uint64_t lba, int nblocks)/* Send Packet */ for (i =0 ; i <sizeof (Read10CDB)/2 ; i++) { -outw (IDE_BASE + reg_data, ((uint16_t *)&pkt)[i]); +outw (IDE_BASE + reg_data,cpu_to_le16 (((uint16_t *)&pkt)[i])); } }
@@ -733,7 +733,7 @@ static void cdrom_pio_impl(int nblocks)size_t offset = i * (limit /2 );size_t rem = (rxsize /2 ) - offset;for (j =0 ; j <MIN ((limit /2 ), rem); j++) { - rx[offset + j] =inw (IDE_BASE + reg_data); + rx[offset + j] =le16_to_cpu (inw (IDE_BASE + reg_data)); }ide_wait_intr (IDE_PRIMARY_IRQ ); }
Signature · 1 line
2.4.3
[Qemu-devel] [PULL 2/3] MAINTAINERS: Small IDE/FDC touchup
In reply to John Snowlibqos/ahci and tests/fdc-test are under my purview also, include them in the appropriate stanzas.
Message-id: [email protected]
--- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
@@ -667,6 +667,7 @@ F: hw/block/cdrom.c F: hw/block/hd-geometry.c F: tests/ide-test.c F: tests/ahci-test.c +F: tests/libqos/ahci* T: git git://github.com/jnsnow/qemu.git ide Floppy
@@ -675,6 +676,7 @@ L: [email protected] S: Supported F: hw/block/fdc.c F: include/hw/block/fdc.h +F: tests/fdc-test.c T: git git://github.com/jnsnow/qemu.git ide OMAP
Signature · 1 line
2.4.3
Peter Maydell
AppliedQuoted 8 lines · John Snow
The following changes since commit
c0b520dfb8890294a9f8879f4759172900585995:Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2015-10-02 16:59:21 +0100)
are available in the git repository at:
https://github.com/jnsnow/qemu.git tags/ide-pull-request
Quoted 7 lines
for you to fetch changes up to
ec6b69ca0305ab3a3e0461aecb6f190c59a765df:qtest/ide-test: ppc64be correction for ATAPI tests (2015-10-05 12:00:56 -0400)
----------------------------------------------------------------
----------------------------------------------------------------
Applied, thanks.
-- PMM