Re: application needs fast access to physical memory

2010-11-18 Thread Michael Ellerman
On Wed, 2010-11-17 at 16:03 -0600, steven@teradyne.com wrote: My application needs a fast way to access a specific physical DDR memory region. The application runs on an MPC8548 PowerPC which has an MMU. I've tried two approaches that are typical for Linux, mmap() and using a kernel module

RE: application needs fast access to physical memory

2010-11-18 Thread David Laight
On Wed, 2010-11-17 at 16:03 -0600, steven@teradyne.com wrote: My application needs a fast way to access a specific physical DDR memory region. The application runs on an MPC8548 PowerPC which has an MMU. I've tried two approaches that are typical for Linux, mmap() and using a kernel

Re: application needs fast access to physical memory

2010-11-18 Thread David Gibson
On Thu, Nov 18, 2010 at 11:24:22PM +1100, Michael Ellerman wrote: On Wed, 2010-11-17 at 16:03 -0600, steven@teradyne.com wrote: My application needs a fast way to access a specific physical DDR memory region. The application runs on an MPC8548 PowerPC which has an MMU. I've tried two

Re: application needs fast access to physical memory

2010-11-18 Thread steven . lin
Re: application needs fast access to physical memory

Re: application needs fast access to physical memory

2010-11-18 Thread Scott Wood
On Thu, 18 Nov 2010 10:55:21 -0600 steven@teradyne.com wrote: Thanks for the replies. In the Linux Device Drivers book regarding mmap(), it states: Mapping a device means associating a range of user-space addresses to device memory. Whenever the program reads or writes in

Re: application needs fast access to physical memory

2010-11-18 Thread Scott Wood
On Thu, 18 Nov 2010 14:46:16 -0600 steven@teradyne.com wrote: Hello Scott, Do you know whether this patch is necessary if I were to use alloc_bootmem () (to set aside a region of contiguous physical memory) instead of the kernel parameter mem=256? It should not be needed in that case.

Re: application needs fast access to physical memory

2010-11-18 Thread steven . lin
mich...@ellerman.id.au, linuxppc-dev@lists.ozlabs.org Subject Re: application needs fast access