public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <paul.mundt@nokia.com>
To: "Woodruff, Richard" <r-woodruff2@ti.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: OMAPFB_FILLRECT and friends
Date: Tue, 7 Feb 2006 16:57:44 +0200	[thread overview]
Message-ID: <20060207145744.GA5196@nokia.com> (raw)
In-Reply-To: <EA12F909C0431D458B9D18A176BEE4A504365210@dlee02.ent.ti.com>

Hi Richard,

On Tue, Feb 07, 2006 at 07:57:44AM -0600, Woodruff, Richard wrote:
> > I've made the measurements on OMAP1610/1710 platforms. What I wanted
> > to see is that using the DMA will indeed offload the MPU. In reality
> > the MPU was practically stalled, I assume because of SDRAM or system
> > bandwidth limitation and the fact the we have a cache flush between
> > context switches.
> 
> 2420 and 2430 have much greater bandwidth though the L3 interconnects to
> the DDR (16/17xx < 2420 < 2430 in this regard).  And v6 doesn't flush
> caches nearly as much so many of these effects are gone.
> 
That's irrelevant in the DMA case, since there's no snooping logic and we
have the write-back or invalidate depending on direction anyways. It's
certainly not as frequent as every context switch, but it's still going
to have an impact on performance.

If the MPU ends up stalling anyways, then offloading to DMA is pointless,
since the offload doesn't really buy you anything, not to mention the
higher cost of setting up the DMA in the first place.

Unless it's a clear win from a performance point of view, it's not
obvious that having the added complexity of the code in the driver is a
worthwhile tradeoff. The numbers provided by Imre don't indicate that DMA
is a significant win, if you have some that show otherwise, it'd be
interesting to see your test cases, and effect they have on MPU stalling.

  reply	other threads:[~2006-02-07 14:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-07 13:57 OMAPFB_FILLRECT and friends Woodruff, Richard
2006-02-07 14:57 ` Paul Mundt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-02-07 16:34 Woodruff, Richard
2006-02-06 13:36 Woodruff, Richard
2006-02-07  7:18 ` Imre Deak
2006-02-03 19:11 Brian Swetland
2006-02-06  8:26 ` Imre Deak

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=20060207145744.GA5196@nokia.com \
    --to=paul.mundt@nokia.com \
    --cc=linux-omap-open-source@linux.omap.com \
    --cc=r-woodruff2@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox