qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCHv4 00/13] sun4m: sparc32_dma tidy-ups
@ 2017-10-25 15:59 Mark Cave-Ayland
  2017-10-25 15:59 ` [Qemu-devel] [PATCHv4 01/13] sparc32_dma: rename SPARC32_DMA type to SPARC32_DMA_DEVICE Mark Cave-Ayland
                   ` (15 more replies)
  0 siblings, 16 replies; 39+ messages in thread
From: Mark Cave-Ayland @ 2017-10-25 15:59 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>

v4:
- Rebase onto git master
- Update patch 9 to move lance QOM macros/SysBusPCNetState from sun4m.h to lance.h as suggested by Peter
- Add Reviewed-by from Peter for patch 7

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 lance.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           |  235 +++++++++++++++++++++++++++++-----------
 hw/dma/sun4m_iommu.c           |   14 ---
 hw/dma/trace-events            |    8 +-
 hw/net/lance.c                 |   11 +-
 hw/scsi/esp.c                  |   13 ---
 hw/sparc/sun4m.c               |   82 ++++++--------
 include/hw/net/lance.h         |   41 +++++++
 include/hw/scsi/esp.h          |   14 +++
 include/hw/sparc/sparc32_dma.h |   55 ++++++++++
 include/hw/sparc/sun4m.h       |   16 +++
 10 files changed, 336 insertions(+), 153 deletions(-)
 create mode 100644 include/hw/net/lance.h

-- 
1.7.10.4

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

end of thread, other threads:[~2017-10-30 19:09 UTC | newest]

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).