Thread (25 messages) 25 messages, 4 authors, 2011-06-15

Re: [PATCH 06/15] 8xx: Always pin kernel instruction TLB

From: Joakim Tjernlund <hidden>
Date: 2011-06-14 18:00:14

Dan Malek [off-list ref] wrote on 2011/06/14 18:06:45:

Hi Joakim.

On Jun 14, 2011, at 6:54 AM, Joakim Tjernlund wrote:
quoted
Various kernel asm modifies SRR0/SRR1 just before executing
a rfi. .....
I'm going to argue we can easily visually inspect for this
since the code is static with just a couple of RFIs in these
exception handlers.
Yes, but then you also miss out on 8xx: Optimize ITLBMiss handler.
Some 8xx processors have few TLB entries, and always taking
one for the kernel, especially if it isn't needed, could have a
detrimental effect on the application performance.  Even the
"big" 8xx processors don't have that many entries.  Some
benchmarks run on an MPC850 would likely show this.
I don't have a mpc850, do you?
Anyone making modifications to this level of software should
know of this problem, or make it known in a comment.  If you
are making changes, just compile the code and manually
check it with the couple of configuration options that affect
the placement of the instructions.
Very fragile but then again, not much are expected to change
in this area for 8xx.
The better solution would be supporting large page sizes,
at least for the kernel.
Probably but that is another matter. You could continue with that
if you like but I am stopping here ATM.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help