* Writing to NAND using DMA
@ 2008-11-05 11:19 Gaurav Singh
2008-11-10 14:05 ` Ben Dooks
0 siblings, 1 reply; 2+ messages in thread
From: Gaurav Singh @ 2008-11-05 11:19 UTC (permalink / raw)
To: linux-mtd
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 ?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Writing to NAND using DMA
2008-11-05 11:19 Writing to NAND using DMA Gaurav Singh
@ 2008-11-10 14:05 ` Ben Dooks
0 siblings, 0 replies; 2+ messages in thread
From: Ben Dooks @ 2008-11-10 14:05 UTC (permalink / raw)
To: Gaurav Singh; +Cc: linux-mtd
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'
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-10 14:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-05 11:19 Writing to NAND using DMA Gaurav Singh
2008-11-10 14:05 ` Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox