All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCHv3 00/13] sun4m: sparc32_dma tidy-ups
@ 2017-10-14 18:38 Mark Cave-Ayland
  2017-10-14 18:38 ` [Qemu-devel] [PATCHv3 01/13] sparc32_dma: rename SPARC32_DMA type to SPARC32_DMA_DEVICE Mark Cave-Ayland
                   ` (14 more replies)
  0 siblings, 15 replies; 29+ messages in thread
From: Mark Cave-Ayland @ 2017-10-14 18:38 UTC (permalink / raw)
  To: qemu-devel, atar4qemu; +Cc: Mark Cave-Ayland

This patchset aims to tidy-up the sparc32_dma code by improving the
modelling of the espdma/ledma devices using both QOM and the memory
API which didn't exist when the code was first written.

The result is that it is now possible to remove both the iommu_opaque
and is_ledma workarounds from the code, and the code for wiring up
the espdma/ledma and respective devices is also a lot more readable.

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

v3:
- Add missing sysbus.h include to esp.h in patch 7

v2:
- Make esp/lance devices children of espdma/ledma devices respectively
- Add len parameter to ledma/espdma tracepoints

Mark Cave-Ayland (13):
  sparc32_dma: rename SPARC32_DMA type to SPARC32_DMA_DEVICE
  sparc32_dma: split esp and le into separate DMA devices
  sparc32_dma: move type declarations from sparc32_dma.c to
    sparc32_dma.h
  sun4m: move DMA device wiring from sparc32_dma_init() to
    sun4m_hw_init()
  sun4m_iommu: move TYPE_SUN4M_IOMMU declaration to sun4m.h
  sparc32_dma: use object link instead of qdev property to pass IOMMU
    reference
  esp: move TYPE_ESP and SysBusESPState from esp.c to esp.h
  sparc32_dma: make esp device child of espdma device
  lance: move TYPE_LANCE and SysBusPCNetState from lance.c to sun4m.h
  sparc32_dma: make lance device child of ledma device
  sparc32_dma: introduce new SPARC32_DMA type container object
  sparc32_dma: remove is_ledma hack and replace with memory region
    alias
  sparc32_dma: add len to esp/le DMA memory tracing

 hw/dma/sparc32_dma.c           |  236 +++++++++++++++++++++++++++++-----------
 hw/dma/sun4m_iommu.c           |   14 ---
 hw/dma/trace-events            |    8 +-
 hw/net/lance.c                 |    9 --
 hw/scsi/esp.c                  |   13 ---
 hw/sparc/sun4m.c               |   82 ++++++--------
 include/hw/scsi/esp.h          |   14 +++
 include/hw/sparc/sparc32_dma.h |   55 ++++++++++
 include/hw/sparc/sun4m.h       |   29 +++++
 9 files changed, 307 insertions(+), 153 deletions(-)

-- 
1.7.10.4

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

end of thread, other threads:[~2017-10-27 16:27 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-14 18:38 [Qemu-devel] [PATCHv3 00/13] sun4m: sparc32_dma tidy-ups Mark Cave-Ayland
2017-10-14 18:38 ` [Qemu-devel] [PATCHv3 01/13] sparc32_dma: rename SPARC32_DMA type to SPARC32_DMA_DEVICE Mark Cave-Ayland
2017-10-19  4:26   ` Philippe Mathieu-Daudé
2017-10-20 12:39     ` Mark Cave-Ayland
2017-10-27 16:25       ` Philippe Mathieu-Daudé
2017-10-14 18:38 ` [Qemu-devel] [PATCHv3 02/13] sparc32_dma: split esp and le into separate DMA devices Mark Cave-Ayland
2017-10-19  4:33   ` Philippe Mathieu-Daudé
2017-10-20 12:41     ` Mark Cave-Ayland
2017-10-27 16:26       ` Philippe Mathieu-Daudé
2017-10-14 18:38 ` [Qemu-devel] [PATCHv3 03/13] sparc32_dma: move type declarations from sparc32_dma.c to sparc32_dma.h Mark Cave-Ayland
2017-10-14 18:38 ` [Qemu-devel] [PATCHv3 04/13] sun4m: move DMA device wiring from sparc32_dma_init() to sun4m_hw_init() Mark Cave-Ayland
2017-10-14 18:38 ` [Qemu-devel] [PATCHv3 05/13] sun4m_iommu: move TYPE_SUN4M_IOMMU declaration to sun4m.h Mark Cave-Ayland
2017-10-19  4:37   ` Philippe Mathieu-Daudé
2017-10-20 12:47     ` Mark Cave-Ayland
2017-10-14 18:38 ` [Qemu-devel] [PATCHv3 06/13] sparc32_dma: use object link instead of qdev property to pass IOMMU reference Mark Cave-Ayland
2017-10-19  4:38   ` Philippe Mathieu-Daudé
2017-10-14 18:38 ` [Qemu-devel] [PATCHv3 07/13] esp: move TYPE_ESP and SysBusESPState from esp.c to esp.h Mark Cave-Ayland
2017-10-25 10:42   ` Peter Maydell
2017-10-14 18:38 ` [Qemu-devel] [PATCHv3 08/13] sparc32_dma: make esp device child of espdma device Mark Cave-Ayland
2017-10-14 18:38 ` [Qemu-devel] [PATCHv3 09/13] lance: move TYPE_LANCE and SysBusPCNetState from lance.c to sun4m.h Mark Cave-Ayland
2017-10-25 10:44   ` Peter Maydell
2017-10-14 18:38 ` [Qemu-devel] [PATCHv3 10/13] sparc32_dma: make lance device child of ledma device Mark Cave-Ayland
2017-10-14 18:39 ` [Qemu-devel] [PATCHv3 11/13] sparc32_dma: introduce new SPARC32_DMA type container object Mark Cave-Ayland
2017-10-14 18:39 ` [Qemu-devel] [PATCHv3 12/13] sparc32_dma: remove is_ledma hack and replace with memory region alias Mark Cave-Ayland
2017-10-14 18:39 ` [Qemu-devel] [PATCHv3 13/13] sparc32_dma: add len to esp/le DMA memory tracing Mark Cave-Ayland
2017-10-19  4:45   ` Philippe Mathieu-Daudé
2017-10-14 19:23 ` [Qemu-devel] [PATCHv3 00/13] sun4m: sparc32_dma tidy-ups no-reply
2017-10-15  7:14   ` Mark Cave-Ayland
2017-10-18  9:12 ` Artyom Tarasenko

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.