All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Michal Simek <monstr@monstr.eu>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Ohad Ben-Cohen <ohad@wizery.com>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-arm-kernel@lists.arm.linux.org.uk
Subject: Re: CMA on arm from zero address
Date: Wed, 8 Feb 2012 13:26:22 +0000	[thread overview]
Message-ID: <20120208132622.GL889@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <4F3276D6.3060507@monstr.eu>

On Wed, Feb 08, 2012 at 02:21:26PM +0100, Michal Simek wrote:
> First of all I have found how to do it (by CONFIG_PHYS_OFFSET) so the
> problem is in QEMU.

So you're basically not telling the kernel about the first 32MB of memory.

> Currently experimenting how to convince CMA to allocate that memory for
> my purpose.

Which means it won't be part of the kernels normal memory map, and so
won't be in the page pool.  So CMA won't be able to help.

Instead, just ignore the first 32MB of RAM, and map it like any other
peripheral to gain access to it.  You might need to use ioremap_wc()
to avoid treating the memory as a 'device type' in ARMv6+.

  reply	other threads:[~2012-02-08 13:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-08 12:27 CMA on arm from zero address Michal Simek
2012-02-08 13:08 ` Russell King - ARM Linux
2012-02-08 13:21   ` Michal Simek
2012-02-08 13:26     ` Russell King - ARM Linux [this message]
2012-02-10 10:15       ` Michal Simek
2012-02-08 13:30     ` Marek Szyprowski

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=20120208132622.GL889@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=monstr@monstr.eu \
    --cc=ohad@wizery.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 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.