linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Making only part of memory DMA-able [CONFIG_DISCONTIGMEM?]
@ 2003-01-24 15:34 Anders Blomdell
  2003-01-24 16:14 ` Adrian Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Anders Blomdell @ 2003-01-24 15:34 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,

I'm trying to get my PrPMC800's running as NON-MONARCHS, but I have
problems with DMA memory. Since the system is a NON-MONARCH, it has to be
satisfied with whatever PCI-window is given to it by the PCI-monarch (which
is not a Linux system).

The simple solution to this is to tweak the 'zones_size' array passed to
'free_area_init' to only make as much memory DMA-able as is given by the
PCI-monarch, unfortunately this only works if the PCI-window is bigger than
'1<<(PAGE_SHIFT+MAX_ORDER-1)' (due to alignment requirements in 'page_alloc.
c'), and even then the DMA-able area will be less than optimal, since the
DMA adresses starts at low addresses, and thus are filled with kernel pages,
  which does not need to be DMA-able.

Is there anybody working on DISCONTIGOUS memory allocation for PowerPC's,
that could shed some light on what should be done? A lot of memory
management seems to be specialized for CONFIG_440, which further clutters
my vision...

Regards

Anders Blomdell

------------------------------------------------------------------------------
  Anders Blomdell
  Department of Automatic Control        Email: anders.blomdell@control.lth.
se
  Lund Institute of Technology           Phone: +46 46 222 4625
  Box 118, S-221 00 Lund, Sweden         Fax:   +46 46 138118


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: Making only part of memory DMA-able [CONFIG_DISCONTIGMEM?]
  2003-01-24 15:34 Making only part of memory DMA-able [CONFIG_DISCONTIGMEM?] Anders Blomdell
@ 2003-01-24 16:14 ` Adrian Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Cox @ 2003-01-24 16:14 UTC (permalink / raw)
  To: Anders Blomdell; +Cc: linuxppc-embedded


On Fri, 2003-01-24 at 15:34, Anders Blomdell wrote:

> Is there anybody working on DISCONTIGOUS memory allocation for PowerPC's,
> that could shed some light on what should be done? A lot of memory
> management seems to be specialized for CONFIG_440, which further clutters
> my vision...

I've dealt with a very similar system architecture^(1). The main lesson
I learned from this was to always use a non-transparent PCI-PCI bridge.

In your case, I presume that this is a fixed system design, and you
don't have to make every device driver in the Linux kernel work. You
might consider writing a special purpose allocator and modifying the
individual drivers you require to use it.


(1: http://www.varisys.co.uk/tpe3.html )

--
Adrian Cox
http://www.humboldt.co.uk/


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2003-01-24 16:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-24 15:34 Making only part of memory DMA-able [CONFIG_DISCONTIGMEM?] Anders Blomdell
2003-01-24 16:14 ` Adrian Cox

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).