All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: vineshp@xilinx.com, Peter Maydell <peter.maydell@linaro.org>,
	i.mitsyanko@samsung.com, qemu-devel@nongnu.org,
	Kirill Batuzov <batuzovk@ispras.ru>,
	john.williams@xilinx.com, edgar.iglesias@gmail.com,
	afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCH v5 1/2] pl330: Initial version
Date: Tue, 30 Oct 2012 15:57:00 +0200	[thread overview]
Message-ID: <508FDCAC.7060502@redhat.com> (raw)
In-Reply-To: <CAEgOgz5nDCaDC5onqVUxynRu8DbqVD3kYemuBpTk8a196ZuRHg@mail.gmail.com>

On 10/30/2012 03:42 PM, Peter Crosthwaite wrote:
> On Tue, Oct 30, 2012 at 7:51 PM, Avi Kivity <avi@redhat.com> wrote:
>> On 10/29/2012 10:32 AM, Peter Maydell wrote:
>>> On 29 October 2012 06:35, Peter Crosthwaite
>>> <peter.crosthwaite@xilinx.com> wrote:
>>>> Device model for Primecell PL330 dma controller.
>>>
>>> A general question -- this is a DMA controller so should it be using
>>> the DMAContext APIs now? Avi?
>>
>> IOMMU functionality will be folded into the memory core, so
>> address_space_rw() and family.
>>
>>
> 
> Hi Avi,
> 
> So does this mean no more dma_contexts and dma_memory_foo? 

Correct.

> I have
> remade the series (and others) using dma_memory_*. Can you point to a
> sysbus attached DMA controller currently in tree that does it properly
> so we can use it for a basis as there are several (four in total
> think) series I have pending all containing DMA which will be effected
> by this.

I don't think there are any.

If your dma controller does not have an IOMMU, all you need to do is
replace cpu_physical_memory_*(...) with
address_space_*(&address_space_memory, ...).  If it does have an IOMMU,
then you need to wait until my IOMMU patchset hits mainline (or use
DMAContext).



-- 
error compiling committee.c: too many arguments to function

  reply	other threads:[~2012-10-30 13:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-29  6:35 [Qemu-devel] [PATCH v5 0/2] These patches add support for the Primcell PL330 DMA controller and add it to the Xilinx Zynq machine model. Patch 1 is the device model. Patch 2 is the machine model update Peter Crosthwaite
2012-10-29  6:35 ` [Qemu-devel] [PATCH v5 1/2] pl330: Initial version Peter Crosthwaite
2012-10-29  8:32   ` Peter Maydell
2012-10-30  0:59     ` Peter Crosthwaite
2012-10-30  9:51     ` Avi Kivity
2012-10-30 13:42       ` Peter Crosthwaite
2012-10-30 13:57         ` Avi Kivity [this message]
2012-10-29  9:41   ` Igor Mitsyanko
2012-10-30  1:00     ` Peter Crosthwaite
2012-10-29  6:35 ` [Qemu-devel] [PATCH v5 2/2] xilinx_zynq: added pl330 to machine model Peter Crosthwaite

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=508FDCAC.7060502@redhat.com \
    --to=avi@redhat.com \
    --cc=afaerber@suse.de \
    --cc=batuzovk@ispras.ru \
    --cc=edgar.iglesias@gmail.com \
    --cc=i.mitsyanko@samsung.com \
    --cc=john.williams@xilinx.com \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=vineshp@xilinx.com \
    /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.