All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Dooks <ben-linux@fluff.org>
To: Gaurav Singh <gausinghnsit@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Writing to NAND using DMA
Date: Mon, 10 Nov 2008 14:05:49 +0000	[thread overview]
Message-ID: <20081110140549.GD11063@fluff.org.uk> (raw)
In-Reply-To: <3cc7a0df0811050319t7d4b2542hcef73780ebfc9906@mail.gmail.com>

On Wed, Nov 05, 2008 at 04:49:58PM +0530, Gaurav Singh wrote:
> I am working on an ST Nomadik board with ST 1 GB NAND chip. Have
> written a board specific driver and trying to use DMA and JFFS2
> filesystem to write data to the NAND .
> 
> I have allocated a nand_buffer structure using dma_alloc_coherent and
> am using this buffer for reading data.
> 
> In case of write however I see that the JFFS2 filesystem has allocated
> a wbuf for writing (using kmalloc). Now I have an option of copying
> this buffer into a dma able buffer of my own but I feel there should
> be a better solution.
> 
> What is your view ? Should JFFS2 provide a dma able buffer to write a
> NAND page ?

This discussion came up at CELF, I belive that there is a move to try
and make the mtd interface take only DMA-safe memory since it is not
only JFFS2 that may be using the NAND driver.

-- 
Ben (ben@fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'

      reply	other threads:[~2008-11-10 14:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-05 11:19 Writing to NAND using DMA Gaurav Singh
2008-11-10 14:05 ` Ben Dooks [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=20081110140549.GD11063@fluff.org.uk \
    --to=ben-linux@fluff.org \
    --cc=gausinghnsit@gmail.com \
    --cc=linux-mtd@lists.infradead.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 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.