linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: magnus.damm@gmail.com (Magnus Damm)
To: linux-arm-kernel@lists.infradead.org
Subject: CONSISTENT_DMA_SIZE limitations
Date: Wed, 28 Apr 2010 16:53:40 +0900	[thread overview]
Message-ID: <m2gaec7e5c31004280053kbc268921g75f7d447ea966576@mail.gmail.com> (raw)
In-Reply-To: <EAF47CD23C76F840A9E7FCE10091EFAB02C5172F4B@dbde02.ent.ti.com>

Hi Santosh,

On Wed, Apr 28, 2010 at 4:07 PM, Shilimkar, Santosh
<santosh.shilimkar@ti.com> wrote:
>> On Wed, Apr 28, 2010 at 2:25 PM, Magnus Damm <magnus.damm@gmail.com> wrote:
>> > Extending CONSISTENT_DMA_SIZE seems like a good idea to me, but I'm
>> > not sure if doing so will break something else. Perhaps I need to
>> > rework some code in arch/arm/mm/dma-mapping.c?

> Not the best way but works is :
> You can override the default setting of 2MB to whatever memory you need and
> then use the dma_alloc_coherent(), to allocate from this space.
>
> Just ensure that you don't ioremap this memory with different cache-attribute
> otherwise you will end up in the alias mapping of same memory which is not
> allowed on newer ARMv7.

Good idea. =) Thanks for your suggestions.

/ magnus

  reply	other threads:[~2010-04-28  7:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-28  6:25 CONSISTENT_DMA_SIZE limitations Magnus Damm
2010-04-28  6:47 ` Eric Miao
2010-04-28  7:07   ` Shilimkar, Santosh
2010-04-28  7:53     ` Magnus Damm [this message]
2010-04-28  7:08   ` Magnus Damm

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=m2gaec7e5c31004280053kbc268921g75f7d447ea966576@mail.gmail.com \
    --to=magnus.damm@gmail.com \
    --cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).