Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: "Kamat, Nishant" <nskamat@ti.com>
Cc: "Pandita, Vikram" <vikram.pandita@ti.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"Singh, Vimal" <vimalsingh@ti.com>
Subject: Re: [PATCH - Omapzoom] [NAND] Add prefetch and DMA support
Date: Mon, 8 Sep 2008 15:27:35 -0700	[thread overview]
Message-ID: <200809081527.35446.david-b@pacbell.net> (raw)
In-Reply-To: <DFEF307E035C8647B119E6A60DB62D4AEE4F7561@dlee02.ent.ti.com>

On Monday 08 September 2008, Kamat, Nishant wrote:
> +config MTD_NAND_OMAP_PREFETCH
> +       bool "GPMC prefetch support for NAND Flash device"
> +       depends on MTD_NAND && MTD_NAND_OMAP2
> +       default n
> +       help
> +        The NAND device can be accessed for Read/Write using GPMC PREFETCH engine
> +        to improve the performance.

Is there a reason this isn't always enabled, and the choice is just
whether to use DMA or not?


I'd be interested to see performance measurements for the three cases.

	- current/slow code
	- the readsw() update I sent previously
	- this "prefetch engine"

And I'd expect this "prefetch engine" code would also be improved by
using readsw() and writesw() when DMA isn't in use.

On one ARM926 I observed a 16% speedup *just* from switching from
slow byte-at-a-time PIO to using readsb ... this current code has
that same pessimization.

- Dave


> +
> +choice
> +       prompt "Prefetch engine support for GPMC"
> +       depends on MTD_NAND_OMAP_PREFETCH
> +       help
> +        The GPMC PREFETCH engine can be configured eigther in MPU interrupt mode
> +        or in DMA interrupt mode.
> +
> +config MTD_NAND_OMAP_PREFETCH_MPU
> +       depends on MTD_NAND_OMAP_PREFETCH
> +       bool "MPU mode always for spare area + MPU mode for main area"
> +       help
> +        Say y if... you want MPU interrupt mode for both spare area and main area accesses.
> +
> +config MTD_NAND_OMAP_PREFETCH_DMA
> +       depends on MTD_NAND_OMAP_PREFETCH
> +       bool "MPU mode always for spare area + DMA mode for main area"
> +       help
> +        Say y if... you want MPU interrupt mode for spare area and DMA mode for main
> +        area access.
> +
> +endchoice
> +


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2008-09-08 22:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-08 17:42 [PATCH - Omapzoom] [NAND] Add prefetch and DMA support Kamat, Nishant
2008-09-08 22:17 ` David Brownell
2008-09-08 22:27 ` David Brownell [this message]
2008-09-10 14:12   ` Singh, Vimal
  -- strict thread matches above, loose matches on Subject: below --
2008-11-06 13:57 [PATCH - Omapzoom][NAND] " vimal singh
2008-11-06 18:44 ` Juha Kuikka

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=200809081527.35446.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=linux-omap@vger.kernel.org \
    --cc=nskamat@ti.com \
    --cc=vikram.pandita@ti.com \
    --cc=vimalsingh@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