LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* mapping large amount of memory on physical addresses
@ 2005-03-17  8:51 scarayol
  2005-03-17  9:57 ` Jean-Christophe Dubois
  0 siblings, 1 reply; 3+ messages in thread
From: scarayol @ 2005-03-17  8:51 UTC (permalink / raw)
  To: linuxppc-embedded

Hello,

Could you help me : I work on embedded Linux on a MPC885 processor
(PowerPC). On my embedded system, i have 2 different components of RAM.=
 One
(name =3D DV, total size of 256 MB ) is only accessed by the processor,=
 the
other (name =3D MC, size =3D 2MB on the top of the RAM) is also access =
by an
FPGA. I want to do data transferts between each others. For that, I hav=
e to
allocate a big structure on DV for a size of 36 MB.
- Could I do like that to have contiguous memory on DV ?
For MC, it would be more complicated : I have to map on the physical
adresses of MC (for example 1300 0000-13FF FFFF) in order to be sure th=
at
the memory will be really allocated on MC and not on DV (as there is en=
ough
place on DV).
- How can I do that ?
- Do I have to write a driver and use ioremap on the physical address o=
f MC
(with reserving the top of memory with 'mem=3D' at boot time) ? Can i u=
se
physical addresses with ioremap or is it only virtual addresses ?
I think i can reserve the memory early in boot via the bootmem allocato=
r
but i think it isn't with physical addresses only an amount of memory a=
nd
it's only forbdrivers directly linked in  the kernel image and i want a=

module.
- Is there another solution to do that ?

Thank you really for your help.

Best regards.

----------------------------------------------------------
Sophie CARAYOL

TECHNOLOGIES & SYSTEMES
50 rue du Pr=E9sident Sadate
F - 29337 QUIMPER CEDEX

T=E9l: +33 2 98 10 30 06
mailto:scarayol@assystembrime.com
----------------------------------------------------------
=

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-17 10:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-17  8:51 mapping large amount of memory on physical addresses scarayol
2005-03-17  9:57 ` Jean-Christophe Dubois
2005-03-17 10:58   ` Jean-Christophe Dubois

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox