From: m.szyprowski@samsung.com (Marek Szyprowski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: fix ioremap to allow mapping some specific RAM areas
Date: Tue, 07 Jun 2011 12:49:36 +0200 [thread overview]
Message-ID: <004001cc2500$97d4dfc0$c77e9f40$%szyprowski@samsung.com> (raw)
In-Reply-To: <20110607085446.GC20929@n2100.arm.linux.org.uk>
Hello,
On Tuesday, June 07, 2011 10:55 AM Russell King - ARM Linux wrote:
> On Tue, Jun 07, 2011 at 10:44:15AM +0200, Marek Szyprowski wrote:
> > On Tuesday, June 07, 2011 10:06 AM Russell King - ARM Linux wrote:
> > > NAK. pfn_valid is already defined like this:
> > >
> > > int pfn_valid(unsigned long pfn)
> > > {
> > > return memblock_is_memory(pfn << PAGE_SHIFT);
> > > }
> > >
> > > provided you enable ARCH_HAS_HOLES_MEMORYMODEL, which you must do if
> > > you're punching holes in the memory map.
> >
> > Ok, I see the point in ARCH_HAS_HOLES_MEMORYMODEL, but it doesn't solve
> my
> > problem. In case of Samsung Exynos4 and S5PV210 platforms we use
> SPARSEMEM,
> > but the above definition of pfn_valid() function is correct only if
> SPARSEMEM
> > is not enabled.
>
> Sparsemem has been fixed recently (during the merge window) so that this
> is now correct.
OK, thanks for help.
Best regards
--
Marek Szyprowski
Samsung Poland R&D Center
prev parent reply other threads:[~2011-06-07 10:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-07 7:12 [PATCH] ARM: fix ioremap to allow mapping some specific RAM areas Marek Szyprowski
2011-06-07 8:05 ` Russell King - ARM Linux
2011-06-07 8:44 ` Marek Szyprowski
2011-06-07 8:54 ` Russell King - ARM Linux
2011-06-07 10:49 ` Marek Szyprowski [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='004001cc2500$97d4dfc0$c77e9f40$%szyprowski@samsung.com' \
--to=m.szyprowski@samsung.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).