From: Huang Shijie <b32955@freescale.com>
To: Kamal Dasu <kdasu.kdev@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH v2] mtd: nand: Add support to use nand_base poi databuf as bounce buffer
Date: Fri, 25 Apr 2014 15:59:45 +0800 [thread overview]
Message-ID: <20140425075943.GA2221@localhost> (raw)
In-Reply-To: <20140425074310.GA2117@localhost>
On Fri, Apr 25, 2014 at 03:43:13PM +0800, Huang Shijie wrote:
> On Thu, Apr 24, 2014 at 11:52:41PM -0400, Kamal Dasu wrote:
> > Huang,
> >
> > "could you show us how do the driver use the highmem buffer?"
> >
> > This is the stack on a BMIPS platform we are doing a read dma transaction.
> > drv_* calls are from out of tree nand controller driver. This
> I can read the driver since it is not in the l2-mtd. :(
s/can/can't/
>
> > example shows the driver trying to map
> > highmem virtual address(0xfe1141e0) for DMA operation passed from
>
> Which dma api do you use?
In the ARM platform, we use the sg_init_one to initialize the sg.
It can only convert the kmalloc memory, please see the code:
#define __virt_to_phys(x) ((x) - PAGE_OFFSET + PHYS_OFFSET)
It does a linear convert for a kernel address.
So in the ARM platform, it can _NOT_ support the highmem which is not linear.
I am not familiar with MIPS.
I do not know how the MIPS convert the highmem address.
thanks
Huang Shijie
next prev parent reply other threads:[~2014-04-25 8:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-24 21:40 [PATCH v2] mtd: nand: Add support to use nand_base poi databuf as bounce buffer Kamal Dasu
2014-04-25 2:07 ` Huang Shijie
2014-04-25 3:52 ` Kamal Dasu
2014-04-25 7:43 ` Huang Shijie
2014-04-25 7:59 ` Huang Shijie [this message]
2014-04-25 16:10 ` Kamal Dasu
2014-04-28 9:08 ` Huang Shijie
2014-04-28 9:16 ` Huang Shijie
2014-04-28 15:42 ` Huang Shijie
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=20140425075943.GA2221@localhost \
--to=b32955@freescale.com \
--cc=kdasu.kdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox