Linux MIPS Architecture development
 help / color / mirror / Atom feed
* segfaults with 2.4.8
@ 2001-09-01 16:11 George Gensure
  2001-09-02 18:28 ` Florian Lohoff
  0 siblings, 1 reply; 4+ messages in thread
From: George Gensure @ 2001-09-01 16:11 UTC (permalink / raw)
  To: linux-mips

I'm running an r5000 indy with the latest (as of 8/31/01) cvs kernel and 
the fast-sysmips patch, and I'm having segfaults and strange errors in 
building tools like gcc and in building X.  The sysmips is correcting 
things like find, but I can't have these other errors (meant for lab 
machines).  Any takers?

George
werkt@csh.rit.edu

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: segfaults with 2.4.8
  2001-09-01 16:11 segfaults with 2.4.8 George Gensure
@ 2001-09-02 18:28 ` Florian Lohoff
  2001-09-03  8:01   ` Guido Guenther
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Lohoff @ 2001-09-02 18:28 UTC (permalink / raw)
  To: George Gensure; +Cc: linux-mips

On Sat, Sep 01, 2001 at 12:11:10PM -0400, George Gensure wrote:
> I'm running an r5000 indy with the latest (as of 8/31/01) cvs kernel and 
> the fast-sysmips patch, and I'm having segfaults and strange errors in 
> building tools like gcc and in building X.  The sysmips is correcting 
> things like find, but I can't have these other errors (meant for lab 
> machines).  Any takers?

That is definitly a cache issue - The 2nd level Boardcache of
the R5000 indy is still unfixed.


Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: segfaults with 2.4.8
  2001-09-02 18:28 ` Florian Lohoff
@ 2001-09-03  8:01   ` Guido Guenther
  2001-09-03  8:35     ` Atsushi Nemoto
  0 siblings, 1 reply; 4+ messages in thread
From: Guido Guenther @ 2001-09-03  8:01 UTC (permalink / raw)
  To: linux-mips

On Sun, Sep 02, 2001 at 08:28:10PM +0200, Florian Lohoff wrote:
> On Sat, Sep 01, 2001 at 12:11:10PM -0400, George Gensure wrote:
> > I'm running an r5000 indy with the latest (as of 8/31/01) cvs kernel and 
> > the fast-sysmips patch, and I'm having segfaults and strange errors in 
> > building tools like gcc and in building X.  The sysmips is correcting 
> > things like find, but I can't have these other errors (meant for lab 
> > machines).  Any takers?
Which toolchain did you use?
> 
> That is definitly a cache issue - The 2nd level Boardcache of
> the R5000 indy is still unfixed.
Not 100% sure about that. 2.4.5 handles this stuff fine while 2.4.8
segfaults(it might be that we just trigger this caching issues
occasionaly though). I will run this stuff on an R4k and see what
happens ... at least it's good to see that other people see this too - I
tended to blame it on my binutils experiments. Can you explain the
R5k Indys' caching issues?
 -- Guido

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: segfaults with 2.4.8
  2001-09-03  8:01   ` Guido Guenther
@ 2001-09-03  8:35     ` Atsushi Nemoto
  0 siblings, 0 replies; 4+ messages in thread
From: Atsushi Nemoto @ 2001-09-03  8:35 UTC (permalink / raw)
  To: linux-mips

>>>>> On Mon, 3 Sep 2001 10:01:56 +0200, Guido Guenther <guido.guenther@gmx.net> said:
flo> That is definitly a cache issue - The 2nd level Boardcache of the
flo> R5000 indy is still unfixed.
guenther> Not 100% sure about that. 2.4.5 handles this stuff fine
guenther> while 2.4.8 segfaults(it might be that we just trigger this
guenther> caching issues occasionaly though).

This might be the problem of recent entry.S I reported on 8/31.

I saw a strange SEGFAULT too and a following patch fixed the problem
(at least for me).


diff -ur linux.sgi/arch/mips/kernel/entry.S linux/arch/mips/kernel/entry.S
--- linux.sgi/arch/mips/kernel/entry.S	Sun Aug 26 22:32:47 2001
+++ linux/arch/mips/kernel/entry.S	Mon Sep  3 17:15:51 2001
@@ -44,17 +44,15 @@
 tracesys_exit:	jal	syscall_trace
 		b	ret_from_sys_call
 
-EXPORT(ret_from_irq)
-EXPORT(ret_from_exception)
-		lw	t0, PT_STATUS(sp)	# returning to kernel mode?
-		andi	t0, t0, KU_USER
-		bnez	t0, ret_from_sys_call
-		j	restore_all
-
 reschedule:	jal	schedule 
 
+EXPORT(ret_from_irq)
+EXPORT(ret_from_exception)
 EXPORT(ret_from_sys_call)
 		.type	ret_from_irq,@function
+		lw	t0, PT_STATUS(sp)	# returning to kernel mode?
+		andi	t0, t0, KU_USER
+		beqz	t0, restore_all
 
 		mfc0	t0, CP0_STATUS	# need_resched and signals atomic test
 		ori	t0, t0, 1
---
Atsushi Nemoto

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-09-03  8:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-01 16:11 segfaults with 2.4.8 George Gensure
2001-09-02 18:28 ` Florian Lohoff
2001-09-03  8:01   ` Guido Guenther
2001-09-03  8:35     ` Atsushi Nemoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox