mbox series

[PATCHv2,0/4] sun4m: implement memory region IOMMU translation and DMA API

Message ID 1509106789-8626-1-git-send-email-mark.cave-ayland@ilande.co.uk
Headers show
Series sun4m: implement memory region IOMMU translation and DMA API | expand

Message

Mark Cave-Ayland Oct. 27, 2017, 12:19 p.m. UTC
The original sun4m IOMMU/DMA code dates from before the introduction of the QEMU
memory region API (in particular IOMMU memory regions) and the DMA API.

This patchset removes these sun4m-specific implementations and replaces them with
the more up-to-date QEMU APIs instead.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Based-on: 1508947167-5304-1-git-send-email-mark.cave-ayland@ilande.co.uk ([PATCHv4 00/13] sun4m: sparc32_dma tidy-ups)

v2:
- Rebase onto v4 sparc32_dma tidy-up patchset
- Change TYPE_SUN4M_IOMMU macro from "iommu" to "sun4m-iommu" as suggested by Philippe


Mark Cave-Ayland (4):
  sun4m: implement IOMMU translation using IOMMU memory region
  sparc32_dma: switch over to using IOMMU memory region and DMA API
  sun4m_iommu: remove legacy sparc_iommu_memory_rw() function
  sun4m: change TYPE_SUN4M_IOMMU macro from "iommu" to "sun4m-iommu"

 hw/dma/sparc32_dma.c     |   17 +++++----
 hw/dma/sun4m_iommu.c     |   87 ++++++++++++++++++++++++++++++----------------
 include/hw/sparc/sun4m.h |   23 ++++--------
 3 files changed, 75 insertions(+), 52 deletions(-)

Comments

Philippe Mathieu-Daudé Oct. 27, 2017, 3:39 p.m. UTC | #1
On 10/27/2017 09:19 AM, Mark Cave-Ayland wrote:
> The original sun4m IOMMU/DMA code dates from before the introduction of the QEMU
> memory region API (in particular IOMMU memory regions) and the DMA API.
> 
> This patchset removes these sun4m-specific implementations and replaces them with
> the more up-to-date QEMU APIs instead.
> 
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> Based-on: 1508947167-5304-1-git-send-email-mark.cave-ayland@ilande.co.uk ([PATCHv4 00/13] sun4m: sparc32_dma tidy-ups)
> 
> v2:
> - Rebase onto v4 sparc32_dma tidy-up patchset
> - Change TYPE_SUN4M_IOMMU macro from "iommu" to "sun4m-iommu" as suggested by Philippe
> 
> 
> Mark Cave-Ayland (4):
>   sun4m: implement IOMMU translation using IOMMU memory region
>   sparc32_dma: switch over to using IOMMU memory region and DMA API
>   sun4m_iommu: remove legacy sparc_iommu_memory_rw() function
>   sun4m: change TYPE_SUN4M_IOMMU macro from "iommu" to "sun4m-iommu"

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>