[PATCH 2.4.22] Re: PPC405 support in later 2.4.x kernels

STALE8408d

2 messages, 2 authors, 2003-08-31 · open the first message on its own page

[PATCH 2.4.22] Re: PPC405 support in later 2.4.x kernels

From: Wouter Cloetens <hidden>
Date: 2003-08-29 15:01:15

On Thu, 31 Jul 2003 23:32:41 -0400, Trevor Woerner wrote:
I grabbed 2.4.22-pre8 and found the ppc4xx code back, but the strangest
thing is now happening: I've lost my user-space.
I had the same problem with 2.4.22. I diffed 2.4.21-pre7 with 2.4.22
and found some 405-specific code to be missing in the fault handler.
The attached patch fixes the problem.

Re: [PATCH 2.4.22] Re: PPC405 support in later 2.4.x kernels

From: Paul Mackerras <hidden>
Date: 2003-08-31 11:59:58

Wouter Cloetens writes:
On Thu, 31 Jul 2003 23:32:41 -0400, Trevor Woerner wrote:
quoted
I grabbed 2.4.22-pre8 and found the ppc4xx code back, but the strangest
thing is now happening: I've lost my user-space.
I had the same problem with 2.4.22. I diffed 2.4.21-pre7 with 2.4.22
and found some 405-specific code to be missing in the fault handler.
The attached patch fixes the problem.
The patch is half of an optimization.  We have ended up with code
which never sets execute permission on the PTEs (my fault).  We should
either just add code (in the TLB miss handler or elsewhere) to set
execute permission on all pages, or else do the full lazy-flush
optimization, which involves the change in do_page_fault plus another
change to flush_icache_page to make it turn off hardware execute
permission rather than flushing the page.  (The latter half doesn't
seem to be in linuxppc-2.4 or linuxppc_2_4_devel, which is
interesting.)

I'll check in a proper fix in the next day or so.  In the meantime the
patch to do_page_fault will fix the problem.

Paul.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help