All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] dma-helpers: explicitly pass alignment into dma-helpers
@ 2016-10-09 16:43 Mark Cave-Ayland
  2016-10-09 16:43 ` [Qemu-devel] [PATCH 1/2] " Mark Cave-Ayland
  2016-10-09 16:43 ` [Qemu-devel] [PATCH 2/2] macio: switch over to new byte-aligned DMA helpers Mark Cave-Ayland
  0 siblings, 2 replies; 13+ messages in thread
From: Mark Cave-Ayland @ 2016-10-09 16:43 UTC (permalink / raw)
  To: keith.busch, kwolf, mreitz, jsnow, pbonzini, qemu-devel, qemu-block

This is a follow-up to the thread at
https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg01396.html which
introduces an explicit alignment to the DMA helpers to facilitate conversion
of the macio controller over to use the now byte-aligned DMA helpers.

Patch 1 introduces an alignment parameter as suggested by Paolo above, whilst
patch 2 performs the conversion for the macio controller.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>

Mark Cave-Ayland (2):
  dma-helpers: explicitly pass alignment into dma-helpers
  macio: switch over to new byte-aligned DMA helpers

 dma-helpers.c        |   20 ++---
 hw/block/nvme.c      |    6 +-
 hw/ide/ahci.c        |    2 +
 hw/ide/core.c        |    6 +-
 hw/ide/macio.c       |  213 +++++++-------------------------------------------
 hw/scsi/scsi-disk.c  |    2 +
 include/sysemu/dma.h |    6 +-
 7 files changed, 53 insertions(+), 202 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [Qemu-devel] [PATCH 0/2] macio: switch over to new byte-aligned DMA helpers
@ 2016-05-27  8:48 Mark Cave-Ayland
  2016-05-27  8:48 ` [Qemu-devel] [PATCH 2/2] " Mark Cave-Ayland
  0 siblings, 1 reply; 13+ messages in thread
From: Mark Cave-Ayland @ 2016-05-27  8:48 UTC (permalink / raw)
  To: qemu-devel, qemu-ppc, pbonzini, aurelien

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 <mark.cave-ayland@ilande.co.uk>

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(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-10-12 16:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-09 16:43 [Qemu-devel] [PATCH 0/2] dma-helpers: explicitly pass alignment into dma-helpers Mark Cave-Ayland
2016-10-09 16:43 ` [Qemu-devel] [PATCH 1/2] " Mark Cave-Ayland
2016-10-10 16:34   ` Eric Blake
2016-10-10 19:23     ` Mark Cave-Ayland
2016-10-11 15:47       ` John Snow
2016-10-12 10:22         ` Kevin Wolf
2016-10-12 16:04           ` John Snow
2016-10-09 16:43 ` [Qemu-devel] [PATCH 2/2] macio: switch over to new byte-aligned DMA helpers Mark Cave-Ayland
2016-10-10 16:50   ` Eric Blake
2016-10-11 16:58   ` John Snow
  -- strict thread matches above, loose matches on Subject: below --
2016-05-27  8:48 [Qemu-devel] [PATCH 0/2] " Mark Cave-Ayland
2016-05-27  8:48 ` [Qemu-devel] [PATCH 2/2] " Mark Cave-Ayland
2016-05-27 15:02   ` John Snow
2016-05-27 15:22     ` Mark Cave-Ayland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.