linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* use of BAT before taking over the MMU
@ 2010-10-02 18:32 Albert Cahalan
  2010-10-04  4:25 ` Segher Boessenkool
  2010-10-05  8:09 ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 13+ messages in thread
From: Albert Cahalan @ 2010-10-02 18:32 UTC (permalink / raw)
  To: linuxppc-dev

On the prom boot path, with the firmware supposed to
be managing the MMU, there is a case where:

1. Linux changes some BAT registers.
2. Bits 0x00000070 are/become set in the MSR.
3. Linux takes an MMU fault.
4. The firmware handles it.

AFAIK, you can't expect the firmware to leave the BAT alone.
If the firmware provides mapping services by using the BAT
as a software-filled TLB, Linux's BAT changes may be lost.

You also can't expect that your BAT changes will not conflict
with mappings that the firmware uses for itself. The firmware
might write to your new BAT mapping, relying on those virtual
addresses to be something else entirely.

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

end of thread, other threads:[~2010-10-07  8:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-02 18:32 use of BAT before taking over the MMU Albert Cahalan
2010-10-04  4:25 ` Segher Boessenkool
2010-10-04 16:06   ` Albert Cahalan
2010-10-05  7:54     ` Segher Boessenkool
2010-10-05  8:11     ` Benjamin Herrenschmidt
2010-10-05  8:10   ` Benjamin Herrenschmidt
2010-10-05 12:05     ` Albert Cahalan
2010-10-05 12:28       ` Benjamin Herrenschmidt
2010-10-05 15:31       ` Segher Boessenkool
2010-10-07  2:05         ` Albert Cahalan
2010-10-07  8:00           ` Benjamin Herrenschmidt
2010-10-05 15:22     ` Segher Boessenkool
2010-10-05  8:09 ` Benjamin Herrenschmidt

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