From: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> To: joro@8bytes.org Cc: blauwirbel@gmail.com, paul@codesourcery.com, avi@redhat.com, anthony@codemonkey.ws, av1474@comtv.ru, yamahata@valinux.co.jp, kvm@vger.kernel.org, qemu-devel@nongnu.org, Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> Subject: [PATCH 08/13] es1370: use the DMA memory access interface Date: Sat, 29 Jan 2011 19:40:29 +0200 [thread overview] Message-ID: <b9c36f01b2ae20ccd0d97e776a9b2052901150d9.1296321798.git.eduard.munteanu@linux360.ro> (raw) In-Reply-To: <cover.1296321798.git.eduard.munteanu@linux360.ro> In-Reply-To: <cover.1296321798.git.eduard.munteanu@linux360.ro> This allows the device to work properly with an emulated IOMMU. Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> --- hw/es1370.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/es1370.c b/hw/es1370.c index 40cb48c..8b1a405 100644 --- a/hw/es1370.c +++ b/hw/es1370.c @@ -802,7 +802,7 @@ static void es1370_transfer_audio (ES1370State *s, struct chan *d, int loop_sel, if (!acquired) break; - cpu_physical_memory_write (addr, tmpbuf, acquired); + dma_memory_write (&s->dev.dma, addr, tmpbuf, acquired); temp -= acquired; addr += acquired; @@ -816,7 +816,7 @@ static void es1370_transfer_audio (ES1370State *s, struct chan *d, int loop_sel, int copied, to_copy; to_copy = audio_MIN ((size_t) temp, sizeof (tmpbuf)); - cpu_physical_memory_read (addr, tmpbuf, to_copy); + dma_memory_read (&s->dev.dma, addr, tmpbuf, to_copy); copied = AUD_write (voice, tmpbuf, to_copy); if (!copied) break; -- 1.7.3.4
WARNING: multiple messages have this Message-ID (diff)
From: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> To: joro@8bytes.org Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org, blauwirbel@gmail.com, yamahata@valinux.co.jp, paul@codesourcery.com, Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>, avi@redhat.com Subject: [Qemu-devel] [PATCH 08/13] es1370: use the DMA memory access interface Date: Sat, 29 Jan 2011 19:40:29 +0200 [thread overview] Message-ID: <b9c36f01b2ae20ccd0d97e776a9b2052901150d9.1296321798.git.eduard.munteanu@linux360.ro> (raw) In-Reply-To: <cover.1296321798.git.eduard.munteanu@linux360.ro> In-Reply-To: <cover.1296321798.git.eduard.munteanu@linux360.ro> This allows the device to work properly with an emulated IOMMU. Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> --- hw/es1370.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/es1370.c b/hw/es1370.c index 40cb48c..8b1a405 100644 --- a/hw/es1370.c +++ b/hw/es1370.c @@ -802,7 +802,7 @@ static void es1370_transfer_audio (ES1370State *s, struct chan *d, int loop_sel, if (!acquired) break; - cpu_physical_memory_write (addr, tmpbuf, acquired); + dma_memory_write (&s->dev.dma, addr, tmpbuf, acquired); temp -= acquired; addr += acquired; @@ -816,7 +816,7 @@ static void es1370_transfer_audio (ES1370State *s, struct chan *d, int loop_sel, int copied, to_copy; to_copy = audio_MIN ((size_t) temp, sizeof (tmpbuf)); - cpu_physical_memory_read (addr, tmpbuf, to_copy); + dma_memory_read (&s->dev.dma, addr, tmpbuf, to_copy); copied = AUD_write (voice, tmpbuf, to_copy); if (!copied) break; -- 1.7.3.4
next prev parent reply other threads:[~2011-01-29 17:41 UTC|newest] Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-01-29 17:40 [PATCH 00/13] AMD IOMMU emulation patchset Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [PATCH 01/13] Generic DMA memory access interface Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-02-05 10:20 ` Blue Swirl 2011-02-05 10:20 ` [Qemu-devel] " Blue Swirl 2011-02-06 11:13 ` Michael S. Tsirkin 2011-02-06 11:13 ` [Qemu-devel] " Michael S. Tsirkin 2011-02-06 11:16 ` Michael S. Tsirkin 2011-02-06 11:16 ` [Qemu-devel] " Michael S. Tsirkin 2011-01-29 17:40 ` [PATCH 02/13] pci: add IOMMU support via the generic DMA layer Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [PATCH 03/13] AMD IOMMU emulation Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-02-06 10:54 ` Michael S. Tsirkin 2011-02-06 10:54 ` [Qemu-devel] " Michael S. Tsirkin 2011-01-29 17:40 ` [PATCH 04/13] ide: use the DMA memory access interface for PCI IDE controllers Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-02-06 11:14 ` Michael S. Tsirkin 2011-02-06 11:14 ` [Qemu-devel] " Michael S. Tsirkin 2011-01-29 17:40 ` [PATCH 05/13] rtl8139: use the DMA memory access interface Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [PATCH 06/13] eepro100: " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [PATCH 07/13] ac97: " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` Eduard - Gabriel Munteanu [this message] 2011-01-29 17:40 ` [Qemu-devel] [PATCH 08/13] es1370: " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [PATCH 09/13] e1000: " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [PATCH 10/13] lsi53c895a: " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [PATCH 11/13] pcnet: " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [PATCH 12/13] usb-uhci: " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [PATCH 13/13] usb-ohci: " Eduard - Gabriel Munteanu 2011-01-29 17:40 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-01-29 20:19 ` [PATCH 00/13] AMD IOMMU emulation patchset malc 2011-01-29 20:19 ` [Qemu-devel] " malc 2011-02-03 23:24 ` [PATCH 0/3] SeaBIOS AMD IOMMU initialization patches Eduard - Gabriel Munteanu 2011-02-03 23:24 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-02-03 23:24 ` [PATCH 1/3] pci: add pci_find_capability() helper Eduard - Gabriel Munteanu 2011-02-03 23:24 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-02-03 23:24 ` [PATCH 2/3] AMD IOMMU support Eduard - Gabriel Munteanu 2011-02-03 23:24 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-02-04 2:37 ` Isaku Yamahata 2011-02-04 2:37 ` [Qemu-devel] " Isaku Yamahata 2011-02-06 11:47 ` Michael S. Tsirkin 2011-02-06 11:47 ` [Qemu-devel] " Michael S. Tsirkin 2011-02-06 13:41 ` Eduard - Gabriel Munteanu 2011-02-06 13:41 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-02-06 15:22 ` Michael S. Tsirkin 2011-02-06 15:22 ` [Qemu-devel] " Michael S. Tsirkin 2011-02-03 23:24 ` [PATCH 3/3] Clarify address space layout Eduard - Gabriel Munteanu 2011-02-03 23:24 ` [Qemu-devel] " Eduard - Gabriel Munteanu 2011-02-05 13:07 ` [PATCH 00/13] AMD IOMMU emulation patchset (reworked cc/to) Blue Swirl 2011-02-05 13:07 ` [Qemu-devel] " Blue Swirl
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=b9c36f01b2ae20ccd0d97e776a9b2052901150d9.1296321798.git.eduard.munteanu@linux360.ro \ --to=eduard.munteanu@linux360.ro \ --cc=anthony@codemonkey.ws \ --cc=av1474@comtv.ru \ --cc=avi@redhat.com \ --cc=blauwirbel@gmail.com \ --cc=joro@8bytes.org \ --cc=kvm@vger.kernel.org \ --cc=paul@codesourcery.com \ --cc=qemu-devel@nongnu.org \ --cc=yamahata@valinux.co.jp \ /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: linkBe 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.