qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Edgar E. Iglesias" <edgar.iglesias@axis.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: Edgar Iglesias <edgar@axis.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 2/2/][RFT] Make DMA bottom-half driven (v2)
Date: Fri, 24 Oct 2008 22:20:40 +0200	[thread overview]
Message-ID: <20081024202040.GB26209@edgar.se.axis.com> (raw)
In-Reply-To: <1224875740-23121-2-git-send-email-aliguori@us.ibm.com>

On Fri, Oct 24, 2008 at 02:15:40PM -0500, Anthony Liguori wrote:
> The current DMA routines are driven by a call in main_loop_wait() after every
> select.
> 
> This patch converts the DMA code to be driven by a constantly rescheduled
> bottom half.  The advantage of using a scheduled bottom half is that we can
> stop scheduling the bottom half when there no DMA channels are runnable.  This
> means we can potentially detect this case and sleep longer in the main loop.
> 
> The only two architectures implementing DMA_run() are cris and i386.  For cris,
> I converted it to a simple repeating bottom half.  I've only compile tested
> this as cris does not seem to work on a 64-bit host.  It should be functionally
> identical to the previous implementation so I expect it to work.

Hello,

Thanks for the update. This version works much better for CRIS/ETRAX.
The code looks good as far as I can tell.

> 
> For x86, I've made sure to only fire the DMA bottom half if there is a DMA
> channel that is runnable.  The effect of this is that unless you're using sb16
> or a floppy disk, the DMA bottom half never fires.
> 
> You probably should test this malc.  My own benchmarks actually show slight
> improvement by it's possible the change in timing could affect your demos.
> 
> Since v1, I've changed the code to use a BH instead of a timer.  cris at least
> seems to depend on faster than 10ms polling.
> 
> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Acked-by: Edgar E. Iglesias <edgar@axis.com>

      reply	other threads:[~2008-10-24 20:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-24 19:15 [Qemu-devel] [PATCH 1/2] Make bottom halves more robust Anthony Liguori
2008-10-24 19:15 ` [Qemu-devel] [PATCH 2/2/][RFT] Make DMA bottom-half driven (v2) Anthony Liguori
2008-10-24 20:20   ` Edgar E. Iglesias [this message]

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=20081024202040.GB26209@edgar.se.axis.com \
    --to=edgar.iglesias@axis.com \
    --cc=aliguori@us.ibm.com \
    --cc=edgar@axis.com \
    --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 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).