From: Michele Pallaro <michele.pallaro@alcatel-lucent.it>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, Aaron Pace <kodiakuppercut@gmail.com>
Subject: Re: Non-contiguous physical memory
Date: Fri, 23 Jan 2009 18:52:08 +0100 [thread overview]
Message-ID: <1232733128.6271.19.camel@ITVIMNXI34497> (raw)
In-Reply-To: <3725D962-7F25-4A77-8D87-9BBA0A78D406@kernel.crashing.org>
Hello,
I have a similar problem with my custom board CPU mpc8548 (E500V2) with
4Gbytes of RAM
0x0000_0000 -- 0x7FFF_FFFF 2Gbytes
0x1_0000_0000 -- 0x1_7FFF_FFFF 2Gbytes
I Enable the option PHYS_64BIT, and set in dts
memory {
#address-cells = <2>;
#size-cells = <1>;
device_type = "memory";
reg = <00000000 00000000 00000000 7FFFFFFF
00000001 00000000 00000000 7FFFFFFF>;
};
But the kernel can see just 2Gbytes of memory.
How the kernel can see the other 2Gbytes ?
Michele
On Wed, 2009-01-21 at 11:28 -0600, Kumar Gala wrote:
> On Jan 21, 2009, at 9:18 AM, Aaron Pace wrote:
>
> > Hello,
> >
> > I'm working on a design using a Freescale MPC8572 processor.
> > We are using 4 gigs of memory, and also need a window of 512 megs for
> > PCI-E devices.
> > What I have done is set up the first 2G of memory from 0x0 - 0x7f, the
> > PCI windows from 0x8 - 0x9f, localbus devices + CCSRBAR from 0xf -
> > 0xffffffff, and the second 2G of ram from 0x1.0000.0000 -
> > 0x1.8000.0000.
> > I've got this set up in U-boot (although it only uses the low mem),
> > but Linux will only use the first contiguous physical area (the
> > message is "Only using first contiguous memory region").
> > Is it possible to have multiple non-contiguous physical memory chunks
> > used for memory allocation?
> > If not, is there a better way to set this up without losing large
> > chunks of memory?
>
> Its possible in that Linux supports this. However the PPC32 code does
> not exist and would need to be added to support non-contiguous memory
> ranges.
>
> What exact PCI-E needs do you have? Is PCI-E performance critical?
> Is (are) your pci device(s) 64-bit address capable?
>
> I ask because depending on the answers doing straight 4G and PCI above
> that range might be sufficient for your needs.
>
> - k
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
next prev parent reply other threads:[~2009-01-23 18:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-21 15:18 Non-contiguous physical memory Aaron Pace
2009-01-21 17:28 ` Kumar Gala
2009-01-21 18:00 ` Aaron Pace
2009-01-21 23:25 ` Kumar Gala
2009-01-23 17:52 ` Michele Pallaro [this message]
2009-01-23 19:50 ` Kumar Gala
-- strict thread matches above, loose matches on Subject: below --
2004-06-24 12:46 non-contiguous " Yaron Presente
2004-06-24 23:31 ` Ralf Baechle
2004-06-27 8:06 ` Yaron Presente
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=1232733128.6271.19.camel@ITVIMNXI34497 \
--to=michele.pallaro@alcatel-lucent.it \
--cc=galak@kernel.crashing.org \
--cc=kodiakuppercut@gmail.com \
--cc=linuxppc-dev@ozlabs.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 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.