All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Guenter Roeck <linux@roeck-us.net>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: How to tell DMA controller in qemu to terminate transfer ?
Date: Fri, 10 Jan 2020 10:36:20 +0000	[thread overview]
Message-ID: <CAFEAcA9t4X5Xnk0aS4C-vhKX2c3GA9XQ3zZRGYVGLEQsG=EgeQ@mail.gmail.com> (raw)
In-Reply-To: <20200108183553.GA5608@roeck-us.net>

On Wed, 8 Jan 2020 at 18:36, Guenter Roeck <linux@roeck-us.net> wrote:
>
> Hi,
>
> I am trying to fix DMA support with Exynos4210. The original commit
> 59520dc65e ("hw/arm/exynos4210: Add DMA support for the Exynos4210") doesn't
> really work, primarily because it assigns wrong interrupt lines (no idea
> how I thought I tested that).
>
> Problem I have right now is that the pl330 peripheral DMA in Exynos4210
> depends on a signal from the peripheral device (here: serial ports)
> to end a DMA transfer. To make this work, I need a signal from
> exynos4210_uart.c to pl330.c to terminate the DMA after the receive
> buffer is empty.
>
> How can I implement this in qemu ?

That depends. How does the UART signal the DMA controller
in real hardware? If there's a signal line of some kind,
then you can model that with a qemu_irq line which the UART
exposes and raises/lowers at the right time, that's then
plumbed through by the SoC to the DMA controller.

thanks
-- PMM


  reply	other threads:[~2020-01-10 10:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-08 18:35 How to tell DMA controller in qemu to terminate transfer ? Guenter Roeck
2020-01-10 10:36 ` Peter Maydell [this message]
2020-01-10 12:46   ` Guenter Roeck
2020-01-10 18:02   ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFEAcA9t4X5Xnk0aS4C-vhKX2c3GA9XQ3zZRGYVGLEQsG=EgeQ@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --cc=linux@roeck-us.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.