[Top] [All Lists]

Re: Kernel 2.6 for R4600 Indy

Subject: Re: Kernel 2.6 for R4600 Indy
From: Thiemo Seufer <>
Date: Sat, 2 Oct 2004 22:40:14 +0200
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
User-agent: Mutt/1.5.6i
Thiemo Seufer wrote:
> > With this fix the machines goes userspace (reverse engineered by sound
> > of hard disk) but seems to die somewhere. Probably the same bug as seen
> > on other archs - die on first fork.
> The last problem happens only on r4000 and r4400, and occasionally
> also shows up as "illegal instruction" or "unaligned access". It
> turned out to be a broken TLB handler. I temporarily switched (for
> 32bit kernels) from except_vec0_r4000 to except_vec0_r45k_bvahwbug.
> This may cause an avoidable performance loss, but at least it allows
> my R4400SC-200 (V6.0) Indy to run current 2.6 CVS.

One more nop is enough to make it work. This should probably go in
a hazard definition.


Index: arch/mips/mm/tlbex32-r4k.S
RCS file: /home/cvs/linux/arch/mips/mm/tlbex32-r4k.S,v
retrieving revision 1.1
diff -u -p -r1.1 tlbex32-r4k.S
--- arch/mips/mm/tlbex32-r4k.S  20 Jun 2004 23:52:17 -0000      1.1
+++ arch/mips/mm/tlbex32-r4k.S  2 Oct 2004 20:36:29 -0000
@@ -179,6 +179,7 @@
        P_MTC0  k1, CP0_ENTRYLO1                # load it
        tlbwr                                   # write random tlb entry
+       nop
        eret                                    # return from trap

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>