Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Manish Lachwani <mlachwani@mvista.com>
To: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: Ralf Baechle <ralf@linux-mips.org>,
	Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Linux/MIPS Development <linux-mips@linux-mips.org>
Subject: Re: [PATCH] Synthesize TLB refill handler at runtime
Date: Tue, 23 Nov 2004 15:41:01 -0800	[thread overview]
Message-ID: <41A3CA8D.1060804@mvista.com> (raw)
In-Reply-To: <Pine.LNX.4.58L.0411232018390.19941@blysk.ds.pg.gda.pl>

Hi Maciej,

Maciej W. Rozycki wrote:
> On Mon, 22 Nov 2004, Manish Lachwani wrote:
> 
> 
>>However, the crash still occurs. I dont think your patch was intended to 
>>fix the problem that I see below (resulting in crash).
> 
> 
>  Certainly, it wasn't, but it couldn't have hurt, either.

I never said that your patch could have hurt ;)

> 
> 
>>Data bus error, epc == 801f83b8, ra == 80323f04
> 
> 
>  The reason are cp0 hazards, likely leading to an incorrect mapping.  Try
> the following patch; already applied to the mainline as obviously correct.


I did sync with the latest CVS sometime back and have been trying it out 
on the MIPS Malta 24Kc. Looks stable upto now ...

Thanks
Manish Lachwani



> 
>   Maciej
> 
> patch-mips-2.6.10-rc1-20041112-mips-tlb-ehb-0
> diff -up --recursive --new-file linux-mips-2.6.10-rc1-20041112.macro/arch/mips/mm/tlbex.c linux-mips-2.6.10-rc1-20041112/arch/mips/mm/tlbex.c
> --- linux-mips-2.6.10-rc1-20041112.macro/arch/mips/mm/tlbex.c	2004-11-23 19:52:53.000000000 +0000
> +++ linux-mips-2.6.10-rc1-20041112/arch/mips/mm/tlbex.c	2004-11-23 19:58:31.000000000 +0000
> @@ -448,7 +448,8 @@ L_LA(_split)
>  #define i_bnez(buf, rs, off) i_bne(buf, rs, 0, off)
>  #define i_move(buf, a, b) i_ADDU(buf, a, 0, b)
>  #define i_nop(buf) i_sll(buf, 0, 0, 0)
> -#define i_ssnop(buf) i_sll(buf, 0, 2, 1)
> +#define i_ssnop(buf) i_sll(buf, 0, 0, 1)
> +#define i_ehb(buf) i_sll(buf, 0, 0, 3)
>  
>  #if CONFIG_MIPS64
>  static __init int in_compat_space_p(long addr)
> @@ -799,12 +800,12 @@ static __init void build_tlb_write_rando
>  	default:
>  		/*
>  		 * Others are assumed to have one cycle mtc0 hazard,
> -		 * and one cycle tlbwr hazard.
> +		 * and one cycle tlbwr hazard or to understand ehb.
>  		 * XXX: This might be overly general.
>  		 */
> -		i_nop(p);
> +		i_ehb(p);
>  		i_tlbwr(p);
> -		i_nop(p);
> +		i_ehb(p);
>  		break;
>  	}
>  }

  reply	other threads:[~2004-11-23 23:41 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-21 17:02 [PATCH] Synthesize TLB refill handler at runtime Thiemo Seufer
2004-11-21 19:50 ` Geert Uytterhoeven
2004-11-21 20:37   ` Thiemo Seufer
2004-11-22  7:01     ` Ralf Baechle
2004-11-23  0:26       ` Manish Lachwani
2004-11-23  0:40         ` Maciej W. Rozycki
2004-11-23  2:17           ` Manish Lachwani
2004-11-23 20:24             ` Maciej W. Rozycki
2004-11-23 23:41               ` Manish Lachwani [this message]
2004-11-24  1:40               ` Thiemo Seufer
2004-11-24  9:44                 ` Ralf Baechle
2004-11-24 15:04                   ` Maciej W. Rozycki
2004-11-24 21:46                     ` Maciej W. Rozycki
2004-11-24 22:12                       ` Ralf Baechle
2004-11-24 22:39                         ` Maciej W. Rozycki
2004-11-24 22:45                           ` Ralf Baechle
2004-11-24 23:13                             ` Maciej W. Rozycki
2004-11-24  2:16               ` Thiemo Seufer
2004-11-24  8:52                 ` Ralf Baechle
2004-11-24 22:24       ` Manish Lachwani
2004-11-22 14:37     ` Maciej W. Rozycki
2004-11-22 15:56       ` Thiemo Seufer
2004-11-22 18:39         ` Maciej W. Rozycki
2004-11-21 20:43   ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2004-11-29 19:14 Brad Larson
2004-11-29 19:47 ` Maciej W. Rozycki
2004-11-29 19:57 Brad Larson
2004-11-29 20:20 ` Maciej W. Rozycki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41A3CA8D.1060804@mvista.com \
    --to=mlachwani@mvista.com \
    --cc=geert@linux-m68k.org \
    --cc=ica2_ts@csv.ica.uni-stuttgart.de \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox