Re: [RFC][PATCH v5] MPC5121 TLB errata workaround

2009-06-08 Thread Kumar Gala
On Jun 6, 2009, at 5:42 PM, Benjamin Herrenschmidt wrote: On Sun, 2009-06-07 at 00:07 +0200, Wolfgang Denk wrote: Dear David Jander, In message <200903161652.09747.david.jan...@protonic.nl> you wrote: Complete workaround for DTLB errata in e300c2/c3/c4 processors. Due to the bug, the hardwa

Re: [RFC][PATCH v5] MPC5121 TLB errata workaround

2009-06-06 Thread Benjamin Herrenschmidt
On Sun, 2009-06-07 at 00:07 +0200, Wolfgang Denk wrote: > Dear David Jander, > > In message <200903161652.09747.david.jan...@protonic.nl> you wrote: > > Complete workaround for DTLB errata in e300c2/c3/c4 processors. > > > > Due to the bug, the hardware-implemented LRU algorythm always goes to wa

Re: [RFC][PATCH v5] MPC5121 TLB errata workaround

2009-06-06 Thread Wolfgang Denk
Dear David Jander, In message <200903161652.09747.david.jan...@protonic.nl> you wrote: > Complete workaround for DTLB errata in e300c2/c3/c4 processors. > > Due to the bug, the hardware-implemented LRU algorythm always goes to way > 1 of the TLB. This fix implements the proposed software workarou

Re: [RFC][PATCH v5] MPC5121 TLB errata workaround

2009-03-17 Thread Kumar Gala
On Mar 17, 2009, at 5:38 AM, David Jander wrote: On Monday 16 March 2009 19:05:00 Kumar Gala wrote: On Mar 16, 2009, at 10:52 AM, David Jander wrote: Complete workaround for DTLB errata in e300c2/c3/c4 processors. Due to the bug, the hardware-implemented LRU algorythm always goes to way 1 of

Re: [RFC][PATCH v5] MPC5121 TLB errata workaround

2009-03-17 Thread David Jander
On Monday 16 March 2009 19:05:00 Kumar Gala wrote: > On Mar 16, 2009, at 10:52 AM, David Jander wrote: > > Complete workaround for DTLB errata in e300c2/c3/c4 processors. > > > > Due to the bug, the hardware-implemented LRU algorythm always goes > > to way > > 1 of the TLB. This fix implements the

Re: [RFC][PATCH v5] MPC5121 TLB errata workaround

2009-03-16 Thread Kumar Gala
On Mar 16, 2009, at 10:52 AM, David Jander wrote: Complete workaround for DTLB errata in e300c2/c3/c4 processors. Due to the bug, the hardware-implemented LRU algorythm always goes to way 1 of the TLB. This fix implements the proposed software workaround in form of a LRW table for chosing t

Re: [RFC][PATCH v5] MPC5121 TLB errata workaround

2009-03-16 Thread Kumar Gala
On Mar 16, 2009, at 11:09 AM, David Jander wrote: In this patch, I placed the LRW table in SPRG6 like before, but Kumar's code seems a little more compact, so I decided to use that one and fix it ;-) It's a pity we seem to have one register short in the handler, so we need to load SPR

Re: [RFC][PATCH v5] MPC5121 TLB errata workaround

2009-03-16 Thread Kenneth Johansson
On Mon, 2009-03-16 at 16:52 +0100, David Jander wrote: > Complete workaround for DTLB errata in e300c2/c3/c4 processors. > > Due to the bug, the hardware-implemented LRU algorythm always goes to way > 1 of the TLB. This fix implements the proposed software workaround in > form of a LRW table for c

Re: [RFC][PATCH v5] MPC5121 TLB errata workaround

2009-03-16 Thread David Jander
In this patch, I placed the LRW table in SPRG6 like before, but Kumar's code seems a little more compact, so I decided to use that one and fix it ;-) It's a pity we seem to have one register short in the handler, so we need to load SPRN_SRR1 twice :-( Allthough the code-path now has 1 instruct

[RFC][PATCH v5] MPC5121 TLB errata workaround

2009-03-16 Thread David Jander
Complete workaround for DTLB errata in e300c2/c3/c4 processors. Due to the bug, the hardware-implemented LRU algorythm always goes to way 1 of the TLB. This fix implements the proposed software workaround in form of a LRW table for chosing the TLB-way. Signed-off-by: Kumar Gala Signed-off-by: Da