[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 0/2] macio: switch over to new byte-aligned DMA helper
[Qemu-ppc] [PATCH 0/2] macio: switch over to new byte-aligned DMA helpers
Fri, 27 May 2016 09:48:40 +0100
Here is a tidied up version of my patch to convert the macio controller over to
using the new byte-aligned DMA helpers.
The first patch is just a hack and temporarily disables unaligned iovec
truncation in the DMA helper (as discussed in the recent thread) until Paolo or
someone else can devise a proper solution. Without this, the subsequent switch
over to the DMA helpers will appear to work during a Darwin PPC install but the
resulting image is corrupt and will fail to boot.
The second patch is the real one and switches the macio controller over to use
the new byte-aligned DMA helpers. Here I see a speed-up of around 2.5x-3x for
a typical Darwin PPC installation compared to the previous code.
Aurelien, I'd be grateful if you could test the TRIM path as I know this is
something you've had issues with before and I couldn't quite figure out how to
reproduce your TRIM tests from before.
Signed-off-by: Mark Cave-Ayland <address@hidden>
Mark Cave-Ayland (2):
dma-helpers.c: [HACK] disable iovec truncation to nearest sector size
macio: switch over to new byte-aligned DMA helpers
dma-helpers.c | 2 +
hw/ide/macio.c | 213 ++++++++------------------------------------------------
2 files changed, 30 insertions(+), 185 deletions(-)
- [Qemu-ppc] [PATCH 0/2] macio: switch over to new byte-aligned DMA helpers,
Mark Cave-Ayland <=