qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/8] Fix Exynos4210 DMA support
@ 2020-01-23  5:25 Guenter Roeck
  2020-01-23  5:25 ` [PATCH v3 1/8] dma/pl330: Convert to support tracing Guenter Roeck
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Guenter Roeck @ 2020-01-23  5:25 UTC (permalink / raw)
  To: Peter Maydell; +Cc: Paolo Bonzini, qemu-arm, qemu-devel, Guenter Roeck

Commit 59520dc65e ("hw/arm/exynos4210: Add DMA support for the Exynos4210")
introduced DMA support for Exynos4210. Unfortunately, it never really
worked. DMA interrupt line and polarity was wrong, and the serial port
needs extra code to support DMA. This patch series fixes the problem.

The series also converts pl330 and exynos4210_uart code to support tracing.
While not strictly necessary, this was very useful for debugging,
and it seemed too valuable to drop it from the final series. Similar,
improved support for receive FIFO handling is not strictly necessary
to fix DMA handling, but I initially thought that it was and added the
code. Like tracing support it seemed too valuable to drop it.

The series was tested with qemu's smdkc210 and nuri emulations and with
exynos4210-smdkv310.dtb. Without the series, the emulation does not react
to serial line input, and serial line output stalls when using DMA. With
this series in place, serial line input is handled correctly, serial
output does not stall, and DMA interrupts are observed and handled.

v3: Increased number of or-irq-lines to 48 to support the full number
    of lines needed. Simplifications in handling UCON register when
    handling receive timeouts. Don't save timer state in VMSTATE.
    Added Reviewed-by: tags as received.
v2: Addressed all feedback comments but one (see last patch of series).
    Please see individual patches for details.


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

end of thread, other threads:[~2020-01-23 19:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-23  5:25 [PATCH v3 0/8] Fix Exynos4210 DMA support Guenter Roeck
2020-01-23  5:25 ` [PATCH v3 1/8] dma/pl330: Convert to support tracing Guenter Roeck
2020-01-23 15:51   ` Peter Maydell
2020-01-23 16:23     ` Peter Maydell
2020-01-23 16:57       ` Guenter Roeck
2020-01-23  5:25 ` [PATCH v3 2/8] hw/core/or-irq: Increase limit of or-lines to 48 Guenter Roeck
2020-01-23  5:25 ` [PATCH v3 3/8] hw/arm/exynos4210: Fix DMA initialization Guenter Roeck
2020-01-23  5:25 ` [PATCH v3 4/8] hw/char/exynos4210_uart: Convert to support tracing Guenter Roeck
2020-01-23  5:25 ` [PATCH v3 5/8] hw/char/exynos4210_uart: Implement post_load function Guenter Roeck
2020-01-23  5:25 ` [PATCH v3 6/8] hw/char/exynos4210_uart: Implement Rx FIFO level triggers and timeouts Guenter Roeck
2020-01-23  5:25 ` [PATCH v3 7/8] hw/char/exynos4210_uart: Add receive DMA support Guenter Roeck
2020-01-23  5:25 ` [PATCH v3 8/8] hw/arm/exynos4210: Connect serial port DMA busy signals with pl330 Guenter Roeck
2020-01-23 15:20 ` [PATCH v3 0/8] Fix Exynos4210 DMA support Peter Maydell
2020-01-23 15:39   ` Guenter Roeck

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