[Top] [All Lists]

Re: Linux on a 100MHz r4000 indy?

To: "Ralf Baechle" <>, "Greg Johnson" <>
Subject: Re: Linux on a 100MHz r4000 indy?
From: "Kevin D. Kissell" <>
Date: Tue, 17 Jul 2001 07:50:00 +0200
Cc: <>
References: <> <> <> <>
I don't have access to old R4000 revision data, and I'll take your
word for the errata applicable to rev 0422.  A am a *little* surprised
that such early parts found their way into Indys, since the Indy was
not the first R4000 platform (I believe that honor belongs to the
"Crimson" graphics workstations), but it's certainly possible.


            Kevin K.

----- Original Message -----
From: "Ralf Baechle" <>
To: "Greg Johnson" <>
Cc: <>
Sent: Tuesday, July 17, 2001 5:00 AM
Subject: Re: Linux on a 100MHz r4000 indy?

> On Mon, Jul 16, 2001 at 10:39:02PM -0400, Greg Johnson wrote:
> > CPU revision is: 00000422
> That's a really old and buggy CPU.  Kevin Kissel may correct me but I
> it's the first series shipped to customers.  Among the fun bugs:
> --------------------------------------------------------------------------
> 4. R4000PC, R4000SC: An instruction sequence which contains a load which
>    a data cache miss and a jump, where the jump instruction is that last
>    instruction in the page and the delay slot of the jump is not currently
>    mapped, causes the exception vector to be overwritten by the jump
>    The R4000 will use the jump address as the exception vector.
>    Example: lw <---- data cache miss
> noop <---- one or two Noops
> jr <---- last instruction in the page (jump or branch in-
>       struction)
> --------------<---- page boundary
> noop
>    Workaround: Jump and branch instructions should never be in the last
>                tion of a page.
> 11. R4000PC, R4000SC: In the case:
> lw rA, (rn)
> noop (or any non-conflicting instruction)
> lw rn, (rA) (where the address in rA causes a TLB refill)
> --------------------> end of page
> page not mapped
>    where rn and RA are general purpose registers r0 through r31
>    This code sequence causes the second load instruction to slip due to a
>    load use interlock. When the R4000 crosses the page boundary after the
>    lw, it vectors to 0x8000 0000 and later causes an instruction cache
>    After the instruction cache miss is complete the LW causes another TLB
>    refill. This should vector to 0x8000 0000 but instead goes to 0x8000
> 14 (Just an update of erratum 4)
> --------------------------------------------------------------------------
> There's more but I don't want to paste the whole errata document in here
> and above bugs alone without the respective workarounds in kernel and
> are grave bugs.
>   Ralf

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