Skip to content

ahci: ncq cleanup, part 1

John Snow qemu-devel 2 versions – Applied

Status from this message: Thanks, applied to my IDE tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest16 patches 2 repliesApplied
  2. v116 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- Cleared out #ifdefs to prevent unneeded bitrot
- Fixed migration test in patch 16
- Removed the forceful ide_state->error clear from patch 08, replacing it instead with a change to the tests to issue IDENTIFY prior to attempting any data transfer.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/16ahci: Rename NCQFIS structure fieldshw/ide/ahci.h+25 -100 replies
2/16ahci: use shorter variableshw/ide/ahci.c+10 -80 replies
3/16ahci: add ncq_err helperhw/ide/ahci.c+10 -40 replies
4/16ahci: check for ncq prdtl overflowhw/ide/ahci.c+15 -50 replies
5/16ahci: separate prdtl from optshw/ide/ahci.c hw/ide/ahci.h+14 -120 replies
6/16ahci: add ncq debug checkshw/ide/ahci.c+23 -00 replies
7/16ahci: ncq sector count correctionhw/ide/ahci.c+3 -30 replies
8/16ahci/qtest: Execute IDENTIFY prior to data commandstests/ahci-test.c+6 -00 replies
9/16libqos/ahci: fix cmd_sanity for ncqtests/libqos/ahci.c tests/libqos/ahci.h+25 -240 replies
10/16libqos/ahci: add NCQ frame supporttests/libqos/ahci.c tests/libqos/ahci.h+63 -100 replies
11/16libqos/ahci: edit wait to be ncq awaretests/libqos/ahci.c+7 -30 replies
12/16libqos/ahci: adjust expected NCQ interruptstests/libqos/ahci.c+7 -20 replies
13/16libqos/ahci: set the NCQ tag on command_committests/libqos/ahci.c+5 -00 replies
14/16libqos/ahci: Force all NCQ commands to be LBA48tests/libqos/ahci.c+1 -10 replies
15/16qtest/ahci: simple ncq data testtests/ahci-test.c tests/libqos/ahci.c tests/libqos/ahci.h+53 -330 replies
16/16qtest/ahci: ncq migration testtests/ahci-test.c+15 -40 replies

Reviews trailers per patch

None of the 16 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStefan Hajnoczi
SeriesR-b
1/16
2/16
3/16
4/16
5/16
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 00/16] ahci: ncq cleanup, part 1

requires: [email protected]
[PATCH v2 0/4] ahci: misc fixes/tests for 2.4

This series adds a couple of tests to exercise the NCQ pathways and establish a baseline for us.

Most of these patches are fairly short and should be relatively trivial to review. this series will lay the groundwork for part 2, which adds the rerror/werror=stop and migration support for that feature as well.

===
v2:

- Cleared out #ifdefs to prevent unneeded bitrot
- Fixed migration test in patch 16
- Removed the forceful ide_state->error clear from patch 08, replacing it instead with a change to the tests to issue IDENTIFY prior to attempting any data transfer.

________________________________________________________________________________

For convenience, this branch is available at:
https://github.com/jnsnow/qemu.git branch ahci-ncq-s1
https://github.com/jnsnow/qemu/tree/ahci-ncq-s1

This version is tagged ahci-ncq-s1-v2:
https://github.com/jnsnow/qemu/releases/tag/ahci-ncq-s1-v2

John Snow (16):
ahci: Rename NCQFIS structure fields
ahci: use shorter variables
ahci: add ncq_err helper
ahci: check for ncq prdtl overflow
ahci: separate prdtl from opts
ahci: add ncq debug checks
ahci: ncq sector count correction ahci/qtest: Execute IDENTIFY prior to data commands libqos/ahci: fix cmd_sanity for ncq libqos/ahci: add NCQ frame support libqos/ahci: edit wait to be ncq aware libqos/ahci: adjust expected NCQ interrupts libqos/ahci: set the NCQ tag on command_commit libqos/ahci: Force all NCQ commands to be LBA48 qtest/ahci: simple ncq data test qtest/ahci: ncq migration test

 hw/ide/ahci.c       | 102 +++++++++++++++++++++++----------
 hw/ide/ahci.h       |  38 ++++++++----
 tests/ahci-test.c   |  38 ++++++++++--
 tests/libqos/ahci.c | 162 +++++++++++++++++++++++++++++++++-------------------
 tests/libqos/ahci.h |  59 ++++++++++++++-----
 5 files changed, 281 insertions(+), 118 deletions(-)
Signature · 1 line
2.1.0