* Boot time memory allocation
@ 2006-05-09 14:35 Alex Gonzalez
2006-05-09 16:34 ` Ralf Baechle
0 siblings, 1 reply; 9+ messages in thread
From: Alex Gonzalez @ 2006-05-09 14:35 UTC (permalink / raw)
To: linux-mips
Hi,
I have two independent processors with access to a shared memory
region, mapped in the 256MB to 512MB region (kseg0).
One is running a propietary OS, and the second one is running Linux 2.6.12.
How would I arrange to leave that shared memory region out of the
scope of Linux's memory management system, but at the same time make
it possible for a driver to access it?
I have done similar things before with the help of alloc_bootmem, but
this time I don't want the kernel to reserve the memory, I want the
kernel to be completely unaware of it, and I need to specify its start
and end.
Any idea very much welcomed, thanks
Alex
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Boot time memory allocation
2006-05-09 14:35 Boot time memory allocation Alex Gonzalez
@ 2006-05-09 16:34 ` Ralf Baechle
2006-05-10 2:21 ` Mark.Zhan
0 siblings, 1 reply; 9+ messages in thread
From: Ralf Baechle @ 2006-05-09 16:34 UTC (permalink / raw)
To: Alex Gonzalez; +Cc: linux-mips
On Tue, May 09, 2006 at 03:35:14PM +0100, Alex Gonzalez wrote:
> I have two independent processors with access to a shared memory
> region, mapped in the 256MB to 512MB region (kseg0).
>
> One is running a propietary OS, and the second one is running Linux 2.6.12.
>
> How would I arrange to leave that shared memory region out of the
> scope of Linux's memory management system, but at the same time make
> it possible for a driver to access it?
>
> I have done similar things before with the help of alloc_bootmem, but
> this time I don't want the kernel to reserve the memory, I want the
> kernel to be completely unaware of it, and I need to specify its start
> and end.
At kernel initialization time just don't tell the kernel about the
existence of your memory region. For many systems that just means you
shrink the memory region passed to the add_memory_region() call to
something that suits your platform.
Ralf
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Boot time memory allocation
2006-05-09 16:34 ` Ralf Baechle
@ 2006-05-10 2:21 ` Mark.Zhan
2006-05-10 9:11 ` Alex Gonzalez
2006-05-10 15:35 ` Boot time memory allocation Ralf Baechle
0 siblings, 2 replies; 9+ messages in thread
From: Mark.Zhan @ 2006-05-10 2:21 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Alex Gonzalez, linux-mips
Ralf Baechle wrote:
> On Tue, May 09, 2006 at 03:35:14PM +0100, Alex Gonzalez wrote:
>
>> I have two independent processors with access to a shared memory
>> region, mapped in the 256MB to 512MB region (kseg0).
>>
>> One is running a propietary OS, and the second one is running Linux 2.6.12.
>>
>> How would I arrange to leave that shared memory region out of the
>> scope of Linux's memory management system, but at the same time make
>> it possible for a driver to access it?
>>
>> I have done similar things before with the help of alloc_bootmem, but
>> this time I don't want the kernel to reserve the memory, I want the
>> kernel to be completely unaware of it, and I need to specify its start
>> and end.
>
> At kernel initialization time just don't tell the kernel about the
> existence of your memory region. For many systems that just means you
> shrink the memory region passed to the add_memory_region() call to
> something that suits your platform.
>
> Ralf
>
Maybe it is a more flexible way to specify the memory regions via
command line. You know, this will produce User-defined memory regions to
kernel.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Boot time memory allocation
2006-05-10 2:21 ` Mark.Zhan
@ 2006-05-10 9:11 ` Alex Gonzalez
2006-05-12 0:41 ` SOAP Ratin
2006-05-10 15:35 ` Boot time memory allocation Ralf Baechle
1 sibling, 1 reply; 9+ messages in thread
From: Alex Gonzalez @ 2006-05-10 9:11 UTC (permalink / raw)
To: Mark.Zhan; +Cc: Ralf Baechle, linux-mips
Thanks for the answers.
I wrongly assumed I wouldn't be able to access unspecified memory
regions, or that I'd have to tweak it somehow.
Regards,
Alex
On 5/10/06, Mark.Zhan <rongkai.zhan@windriver.com> wrote:
> Ralf Baechle wrote:
> > On Tue, May 09, 2006 at 03:35:14PM +0100, Alex Gonzalez wrote:
> >
> >> I have two independent processors with access to a shared memory
> >> region, mapped in the 256MB to 512MB region (kseg0).
> >>
> >> One is running a propietary OS, and the second one is running Linux 2.6.12.
> >>
> >> How would I arrange to leave that shared memory region out of the
> >> scope of Linux's memory management system, but at the same time make
> >> it possible for a driver to access it?
> >>
> >> I have done similar things before with the help of alloc_bootmem, but
> >> this time I don't want the kernel to reserve the memory, I want the
> >> kernel to be completely unaware of it, and I need to specify its start
> >> and end.
> >
> > At kernel initialization time just don't tell the kernel about the
> > existence of your memory region. For many systems that just means you
> > shrink the memory region passed to the add_memory_region() call to
> > something that suits your platform.
> >
> > Ralf
> >
>
> Maybe it is a more flexible way to specify the memory regions via
> command line. You know, this will produce User-defined memory regions to
> kernel.
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Boot time memory allocation
2006-05-10 2:21 ` Mark.Zhan
2006-05-10 9:11 ` Alex Gonzalez
@ 2006-05-10 15:35 ` Ralf Baechle
1 sibling, 0 replies; 9+ messages in thread
From: Ralf Baechle @ 2006-05-10 15:35 UTC (permalink / raw)
To: Mark.Zhan; +Cc: Alex Gonzalez, linux-mips
On Wed, May 10, 2006 at 10:21:03AM +0800, Mark.Zhan wrote:
> >At kernel initialization time just don't tell the kernel about the
> >existence of your memory region. For many systems that just means you
> >shrink the memory region passed to the add_memory_region() call to
> >something that suits your platform.
> Maybe it is a more flexible way to specify the memory regions via
> command line. You know, this will produce User-defined memory regions to
> kernel.
Maybe for a specific application or platform. For a sourcebase like
linux-mips.org's with a very large number of users on sometimes very
complex platforms I'd never ever think of exposing such details.
Ralf
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-05-12 7:52 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-09 14:35 Boot time memory allocation Alex Gonzalez
2006-05-09 16:34 ` Ralf Baechle
2006-05-10 2:21 ` Mark.Zhan
2006-05-10 9:11 ` Alex Gonzalez
2006-05-12 0:41 ` SOAP Ratin
2006-05-12 0:41 ` SOAP Ratin
2006-05-12 7:08 ` SOAP Leon Zhang
2006-05-12 7:50 ` SOAP Ralf Roesch
2006-05-10 15:35 ` Boot time memory allocation Ralf Baechle
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.