From: Nick Spence <nick.spence@freescale.com>
To: benh@kernel.crashing.org
Cc: linuxppc-dev@ozlabs.org, Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH] [POWERPC] Reintroduce O_SYNC flag to make DRAM non-cached.
Date: Thu, 08 May 2008 00:17:04 -0700 [thread overview]
Message-ID: <4822A8F0.1010602@freescale.com> (raw)
In-Reply-To: <1210229743.1421.36.camel@pasglop>
Benjamin Herrenschmidt wrote:
> On Wed, 2008-05-07 at 23:31 -0700, Spence Nick wrote:
>
> Then you should completely carve it out of the LMB's which will ensure
> it's not seen as RAM by /dev/mem and not mapped by the linear mapping
> (well, the later depends ... if it's carved out of the top of RAM it
> should work fine, if it's a hole, I'm not sure we handle holes in the
> linear mapping on 32 bits).
>
Unfortunately the memory window is 4 MBytes into the DDR and not at the
end. It would be hard to put it at the end because the contents are
location dependent and we can change the memory size.
The region is reserved with an lmb_reserve().
/* Set the location and size of the shared DDR memory region */
void* shared_mem_base = (void *)0x400000;
long shared_mem_size = 0x100000;
....
lmb_reserve((unsigned long)shared_mem_base, shared_mem_size);
The page protection seemed to be allocated on a per pte basis, where
each PTE is a small fixed size. I will need to check the TLB setup further.
Nick
next prev parent reply other threads:[~2008-05-08 7:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-08 5:26 [PATCH] [POWERPC] Reintroduce O_SYNC flag to make DRAM non-cached nick.spence
2008-05-08 5:50 ` Paul Mackerras
2008-05-08 6:31 ` Spence Nick
2008-05-08 6:55 ` Benjamin Herrenschmidt
2008-05-08 7:17 ` Nick Spence [this message]
2008-05-08 7:21 ` Benjamin Herrenschmidt
2008-05-08 9:54 ` Segher Boessenkool
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=4822A8F0.1010602@freescale.com \
--to=nick.spence@freescale.com \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.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).