mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: how to use TLB to prevent Linux accessing a particular memory region
@ 2007-10-20  0:27 Jim Brooks
  0 siblings, 0 replies; 4+ messages in thread
From: Jim Brooks @ 2007-10-20  0:27 UTC (permalink / raw)
  To: linux-kernel

> Out of 32MB of DDR 8MB is reserved for use by DSP
> processor. But the MIPS processor downloads firmware
> into this reserved memory for the DSP.
>
> Now, is it possible to use the TLB to prevent Linux
> from accessing the reserved memory after the
firmware
> has been downloaded?

Well, even if you did remap PTEs (TLBs are N/A),
or claimed that special memory, that may be too late.
The kernel might've already allocated
and stomped over it.

A reliable way is to redefine the kernel's "memory
map"
which takes effect during boot.
Look for the memory map as a .h in arch/ (IIRC).

--
Jim Brooks


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 4+ messages in thread
* how to use TLB to prevent Linux accessing a particular memory region
@ 2007-10-16 13:36 veerasena reddy
  2007-10-16 14:13 ` J. Scott Kasten
  2007-10-16 14:53 ` linux-os (Dick Johnson)
  0 siblings, 2 replies; 4+ messages in thread
From: veerasena reddy @ 2007-10-16 13:36 UTC (permalink / raw)
  To: linux-kernel.org, linux-mips

Hi,

I have a board, which has two processors ( one is MIPS
on which Linux-2.6.18 kernel runs and another is DSP
based processor) and 32MB DDR.

Out of 32MB of DDR 8MB is reserved for use by DSP
processor. But the MIPS processor downloads firmware
into this reserved memory for the DSP.

Now, is it possible to use the TLB to prevent Linux
from accessing the reserved memory after the firmware
has been downloaded?

Also we'd need to remove those TLB entries if the
firmware would ever need to be reloaded to the DSP'
memory region.

What are the APIs to be used to achieve the above?


Thanks in advance.

Regards,
Veerasena.


      5, 50, 500, 5000 - Store N number of mails in your inbox. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

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

end of thread, other threads:[~2007-10-20  0:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-20  0:27 how to use TLB to prevent Linux accessing a particular memory region Jim Brooks
  -- strict thread matches above, loose matches on Subject: below --
2007-10-16 13:36 veerasena reddy
2007-10-16 14:13 ` J. Scott Kasten
2007-10-16 14:53 ` linux-os (Dick Johnson)

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

all inboxes | Powered by JetHome®