All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] If you feel bored, test these 2.5 changes...
@ 2002-11-07  5:42 Carlos O'Donell
  2002-11-07 13:37 ` jsoe0708
  0 siblings, 1 reply; 6+ messages in thread
From: Carlos O'Donell @ 2002-11-07  5:42 UTC (permalink / raw)
  To: parisc-linux

[-- Attachment #1: Type: text/plain, Size: 564 bytes --]


pa's,

If you feel good and bored, or willing to test something,
the following cvs diff needs atleast a round of tests in 
2.5 before I commit. Right now I'm *uber* busy with glibc,
and tausq hid my kernel tree ;)

- Added the last enumerations to the cpu list.
	= These are probably incorrect.

- Forward port of trap handler changes.
	= Virtually identical to 2.4 code which 
	= has been running for almost 5 months without
	= problems.

- Added a code comment about non-returning functions.
	= Purely cosmetic...

Apply, test and get back to the list? :)

c.


[-- Attachment #2: traps-fault-2.5.changes --]
[-- Type: text/plain, Size: 4457 bytes --]

Index: arch/parisc/kernel/setup.c
===================================================================
RCS file: /var/cvs/linux-2.5/arch/parisc/kernel/setup.c,v
retrieving revision 1.9
diff -u -p -r1.9 setup.c
--- arch/parisc/kernel/setup.c	5 Nov 2002 22:16:49 -0000	1.9
+++ arch/parisc/kernel/setup.c	7 Nov 2002 05:31:26 -0000
@@ -212,6 +212,11 @@ static void parisc_proc_mkdir(void)
                         proc_runway_root = proc_mkdir("bus/runway", 0);
                 }
                 break;
+	case pcx:
+	case pcxs:
+	case pcxt:
+		/* Are not assured to have any of the above busses */
+		break;
 	}
 }
 
Index: arch/parisc/kernel/traps.c
===================================================================
RCS file: /var/cvs/linux-2.5/arch/parisc/kernel/traps.c,v
retrieving revision 1.16
diff -u -p -r1.16 traps.c
--- arch/parisc/kernel/traps.c	2 Nov 2002 03:00:29 -0000	1.16
+++ arch/parisc/kernel/traps.c	7 Nov 2002 05:31:26 -0000
@@ -434,9 +434,17 @@ void parisc_terminate(char *msg, struct 
 	if (!console_drivers)
 		pdc_console_restart();
 
-	if (code == 1)
-	    transfer_pim_to_trap_frame(regs);
+        /* Not all switch paths will gutter the processor... */
+        switch(code){
+
+        case 1:
+                transfer_pim_to_trap_frame(regs);
+                break;
 
+	default:
+		/* Fall through */
+	}
+		
 	show_stack((unsigned long *)regs->gr[30]);
 
 	printk("\n");
@@ -451,6 +459,7 @@ void parisc_terminate(char *msg, struct 
 	 * system will shut down immediately right here. */
 	pdc_soft_power_button(0);
 	
+	/* Gutter the processor */
 	for(;;)
 	    ;
 }
@@ -547,6 +556,7 @@ void handle_interruption(int code, struc
 
 		die_if_kernel("Privileged register usage", regs, code);
 		si.si_code = ILL_PRVREG;
+		/* Fall Through */		
 	give_sigill:
 		si.si_signo = SIGILL;
 		si.si_errno = 0;
@@ -561,21 +571,42 @@ void handle_interruption(int code, struc
 		si.si_addr = (void *) regs->iaoq[0];
 		force_sig_info(SIGFPE, &si, current);
 		return;
-
+		
+        case 13:
+		/* Conditional Trap:
+		   Thee condition succees in an instruction which traps on condition  */
+		si.si_signo = SIGFPE;
+		/* Set to zero, and let the userspace app figure it out from
+		   the insn pointed to by si_addr */
+		si.si_code = 0;
+		si.si_addr = (void *) regs->iaoq[0];
+		force_sig_info(SIGFPE, &si, current);
+		return;
+												
 	case 14:
 		/* Assist Exception Trap, i.e. floating point exception. */
 		die_if_kernel("Floating point exception", regs, 0); /* quiet */
 		handle_fpe(regs);
 		return;
 
-	case 17:
+	case 15:
+		/* Data TLB miss fault/Data page fault */
+		/* Fall thru */
+	case 16:
+		/* Non-access instruction TLB miss fault */
+		/* The instruction TLB entry needed for the target address of the FIC
+		   is absent, and hardware can't find it, so we get to cleanup */
+		/* Fall thru */			
+        case 17:
 		/* Non-access data TLB miss fault/Non-access data page fault */
 		/* TODO: Still need to add slow path emulation code here */
-		pdc_chassis_send_status(PDC_CHASSIS_DIRECT_PANIC);
+		/* TODO: Understand what is meant by the TODO listed
+		   above this one. (Carlos) */
 		
 		fault_address = regs->ior;
-		parisc_terminate("Non access data tlb fault!",regs,code,fault_address);
-
+		fault_space = regs->isr;
+		break;
+								
 	case 18:
 		/* PCXS only -- later cpu's split this into types 26,27 & 28 */
 		/* Check for unaligned access */
@@ -585,7 +616,6 @@ void handle_interruption(int code, struc
 		}
 		/* Fall Through */
 
-	case 15: /* Data TLB miss fault/Data page fault */
 	case 26: /* PCXL: Data memory access rights trap */
 		fault_address = regs->ior;
 		fault_space   = regs->isr;
@@ -710,7 +740,7 @@ void handle_interruption(int code, struc
 	    {
 		pdc_chassis_send_status(PDC_CHASSIS_DIRECT_PANIC);
 		parisc_terminate("Kernel Fault", regs, code, fault_address);
-	
+		/* NOT REACHED */	
 	    }
 	}
 
Index: arch/parisc/mm/fault.c
===================================================================
RCS file: /var/cvs/linux-2.5/arch/parisc/mm/fault.c,v
retrieving revision 1.3
diff -u -p -r1.3 fault.c
--- arch/parisc/mm/fault.c	20 Jul 2002 16:27:06 -0000	1.3
+++ arch/parisc/mm/fault.c	7 Nov 2002 05:31:26 -0000
@@ -257,7 +257,8 @@ no_context:
 	}
 
 	parisc_terminate("Bad Address (null pointer deref?)", regs, code, address);
-
+	/* NOT REACHED */
+	
   out_of_memory:
 	up_read(&mm->mmap_sem);
 	printk(KERN_CRIT "VM: killing process %s\n", current->comm);

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

* RE: [parisc-linux] If you feel bored, test these 2.5 changes...
  2002-11-07  5:42 [parisc-linux] If you feel bored, test these 2.5 changes Carlos O'Donell
@ 2002-11-07 13:37 ` jsoe0708
  2002-11-07 13:52   ` [parisc-linux] [Trap 26 -> EXT3?][If you feel bored, test these 2.5 changes...] Carlos O'Donell
  0 siblings, 1 reply; 6+ messages in thread
From: jsoe0708 @ 2002-11-07 13:37 UTC (permalink / raw)
  To: Carlos O'Donell, parisc-linux

Hi Carlos,
>
>- Added the last enumerations to the cpu list.
>	= These are probably incorrect.
>
>- Forward port of trap handler changes.
>	= Virtually identical to 2.4 code which 
>	= has been running for almost 5 months without
>	= problems.
>
>- Added a code comment about non-returning functions.
>	= Purely cosmetic...
>
Sorry but after the boot flop on my b2000, I try on a b180 but no more success:
Freeing unused kernel memory: 416k freed
Warning: unable to open an initial console.
Unable to find swap-space signature
EXT3 FS 2.4-0.9.16, 02 Dec 2001 on md(9,0), internal journal

Stack Dump:
 178f4300:  0006ff0f 00000000 00000000 00000000 
 178f42f0:  00000000 10262010 00000000 00000000           
 178f42e0:  106698c0 178f4210 00000000 178f4230           
 178f42d0:  178f4110 00000000 178f4210 17ff7760           
 178f42c0:  fffffff4 17c6c2c0 178f3988 17c6c2a0           
 178f42b0:  178f3680 101613d4 000002b1 178f3988 
 178f42a0:  17c6c2c0 10097c00 fffffffa 00000000 
 178f4290:  1066e600 00000812 17b7b1a0 1066e680 
 178f4280:  00000931 00000003 01c048f0 00000004 
 178f4270:  1066b005 10262ee0 40177000 17aaf9a0 
 178f4260:  17ff7760 40194000 178fec20 17aaf9a0 
 178f4250:  17ff7760 178f4190 00000000 00000000 

Kernel addresses on the stack:
 [<10262010>]  [<101613d4>]  [<10262ee0>]  [<102111fc>] 
 [<1015de7c>]  [<10166e40>]  [<1010b008>]  [<1010a094>] 


Kernel Fault: Code=26 regs=178f4300 (Addr=00000204)

     YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00000000000001101111111100001111 Not tainted
r00-03  00000000 1034f010 10262010 17eec260
r04-07  00000000 1034f010 00000812 1034f4b4
r08-11  1030a800 00000812 00027d40 000e0008
r12-15  00000008 000e04c8 000e0888 000e0648
r16-19  00000000 000d2430 0009e800 00000200
r20-23  1034f4b4 00000000 00000000 00000000
r24-27  00000000 00001000 178ec000 1031e010
r28-31  17eec260 b870fe25 178f4300 10044a78
sr0-3   00000000 0000010e 00000000 0000010e
sr4-7   00000000 00000000 00000000 00000000

IASQ: 00000000 00000000 IAOQ: 102620d0 102620d4
 IIR: 0e681094    ISR: 00000000  IOR: 00000204
 CPU:        0   CR30: 178f4000 CR31: 1035b000
 ORIG_R28: 00000008

Joel

PS: I will see to backport on 2.4.20-rc1

-------------------------------------------------------------
Tiscali ADSL: Activation et 1er mois GRATUITS. Plus d'info... http://www.tiscali.be/FR/subs/adsl.asp

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

* [parisc-linux] [Trap 26 -> EXT3?][If you feel bored, test these 2.5 changes...]
  2002-11-07 13:37 ` jsoe0708
@ 2002-11-07 13:52   ` Carlos O'Donell
  2002-11-07 15:39     ` jsoe0708
  0 siblings, 1 reply; 6+ messages in thread
From: Carlos O'Donell @ 2002-11-07 13:52 UTC (permalink / raw)
  To: jsoe0708; +Cc: parisc-linux

Joel,

Wow, you added those changes and EXT3 stopped functioning? :}
Please revert the patch and try to build/boot a kernel again.

Code 26 -> "Data Memory Access Rights" trap, looks like a 
misbehaving EXT3.

c.

> >- Added the last enumerations to the cpu list.
> >	= These are probably incorrect.
> >
> >- Forward port of trap handler changes.
> >	= Virtually identical to 2.4 code which 
> >	= has been running for almost 5 months without
> >	= problems.
> >
> >- Added a code comment about non-returning functions.
> >	= Purely cosmetic...
> >
> Sorry but after the boot flop on my b2000, I try on a b180 but no more success:
> Freeing unused kernel memory: 416k freed
> Warning: unable to open an initial console.
> Unable to find swap-space signature
> EXT3 FS 2.4-0.9.16, 02 Dec 2001 on md(9,0), internal journal
> 
> Stack Dump:
>  178f4300:  0006ff0f 00000000 00000000 00000000 
>  178f42f0:  00000000 10262010 00000000 00000000           
>  178f42e0:  106698c0 178f4210 00000000 178f4230           
>  178f42d0:  178f4110 00000000 178f4210 17ff7760           
>  178f42c0:  fffffff4 17c6c2c0 178f3988 17c6c2a0           
>  178f42b0:  178f3680 101613d4 000002b1 178f3988 
>  178f42a0:  17c6c2c0 10097c00 fffffffa 00000000 
>  178f4290:  1066e600 00000812 17b7b1a0 1066e680 
>  178f4280:  00000931 00000003 01c048f0 00000004 
>  178f4270:  1066b005 10262ee0 40177000 17aaf9a0 
>  178f4260:  17ff7760 40194000 178fec20 17aaf9a0 
>  178f4250:  17ff7760 178f4190 00000000 00000000 
> 
> Kernel addresses on the stack:
>  [<10262010>]  [<101613d4>]  [<10262ee0>]  [<102111fc>] 
>  [<1015de7c>]  [<10166e40>]  [<1010b008>]  [<1010a094>] 
> 
> 
> Kernel Fault: Code=26 regs=178f4300 (Addr=00000204)
> 
>      YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
> PSW: 00000000000001101111111100001111 Not tainted
> r00-03  00000000 1034f010 10262010 17eec260
> r04-07  00000000 1034f010 00000812 1034f4b4
> r08-11  1030a800 00000812 00027d40 000e0008
> r12-15  00000008 000e04c8 000e0888 000e0648
> r16-19  00000000 000d2430 0009e800 00000200
> r20-23  1034f4b4 00000000 00000000 00000000
> r24-27  00000000 00001000 178ec000 1031e010
> r28-31  17eec260 b870fe25 178f4300 10044a78
> sr0-3   00000000 0000010e 00000000 0000010e
> sr4-7   00000000 00000000 00000000 00000000
> 
> IASQ: 00000000 00000000 IAOQ: 102620d0 102620d4
>  IIR: 0e681094    ISR: 00000000  IOR: 00000204
>  CPU:        0   CR30: 178f4000 CR31: 1035b000
>  ORIG_R28: 00000008
> 
> Joel
> 
> PS: I will see to backport on 2.4.20-rc1
> 

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

* RE: [parisc-linux] [Trap 26 -> EXT3?][If you feel bored, test these 2.5 changes...]
  2002-11-07 13:52   ` [parisc-linux] [Trap 26 -> EXT3?][If you feel bored, test these 2.5 changes...] Carlos O'Donell
@ 2002-11-07 15:39     ` jsoe0708
  2002-11-08 12:12       ` Andrew Shugg
  0 siblings, 1 reply; 6+ messages in thread
From: jsoe0708 @ 2002-11-07 15:39 UTC (permalink / raw)
  To: Carlos O'Donell; +Cc: parisc-linux

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="US-ASCII", Size: 937 bytes --]

Carlos,

>
>Joel,
>
>Wow, you added those changes and EXT3 stopped functioning? :}
>Please revert the patch and try to build/boot a kernel again.
>
>Code 26 -> "Data Memory Access Rights" trap, looks like a 
>misbehaving EXT3.
>
I test your patch on my 2.4.20-rc1(-pa24) and the kernel boot and run well
:)).

I try to trigger the usage of this traps
double a=1., b=0., c;
c=a/b;
printf ("Ratio a/b: %f);

but it do not cause any fp interrupt error? (well that is an another question)

Back to 2.5.46-pa1, I revert the patch and rebuild the kernel and the kernel
won't boot more. So it seems that problem comes from ext3 usage.
How may I come back to ext2 (tune2fs -O ^has_journal /dev/md0 [my boot partition]
) I nerver do it and a bit affraid to loose my system :(

Joel


-------------------------------------------------------------
Tiscali Complete, l'accès Internet moins cher que gratuit ! Plus d'info:
http://complete.tiscali.be

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

* Re: [parisc-linux] [Trap 26 -> EXT3?][If you feel bored, test these 2.5 changes...]
  2002-11-07 15:39     ` jsoe0708
@ 2002-11-08 12:12       ` Andrew Shugg
  2002-11-08 15:57         ` jsoe0708
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Shugg @ 2002-11-08 12:12 UTC (permalink / raw)
  To: parisc-linux

jsoe0708@tiscali.be said:
> Back to 2.5.46-pa1, I revert the patch and rebuild the kernel and the kernel
> won't boot more. So it seems that problem comes from ext3 usage.
> How may I come back to ext2 (tune2fs -O ^has_journal /dev/md0 [my boot partition]
> ) I nerver do it and a bit affraid to loose my system :(
> 
> Joel

It should be as simple as changing your root fs type from 'ext3' or
'auto' to 'ext2' in /etc/fstab.

Andrew.

-- 
Andrew Shugg <andrew@neep.com.au>                   http://www.neep.com.au/

"Just remember, Mr Fawlty, there's always someone worse off than yourself."
"Is there?  Well I'd like to meet him.  I could do with a good laugh."

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

* Re: [parisc-linux] [Trap 26 -> EXT3?][If you feel bored, test these 2.5 changes...]
  2002-11-08 12:12       ` Andrew Shugg
@ 2002-11-08 15:57         ` jsoe0708
  0 siblings, 0 replies; 6+ messages in thread
From: jsoe0708 @ 2002-11-08 15:57 UTC (permalink / raw)
  To: Andrew Shugg, parisc-linux

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="US-ASCII", Size: 908 bytes --]

Andrew,
>jsoe0708@tiscali.be said:
>> Back to 2.5.46-pa1, I revert the patch and rebuild the kernel and the
kernel
>> won't boot more. So it seems that problem comes from ext3 usage.
>> How may I come back to ext2 (tune2fs -O ^has_journal /dev/md0 [my boot
>partition]
>> ) I nerver do it and a bit affraid to loose my system :(
>> 
>> Joel
>
>It should be as simple as changing your root fs type from 'ext3' or
>'auto' to 'ext2' in /etc/fstab.

You have perfectly right, just at boot time:
EXT2-fs warning (device md(9,0)): ext2_fill_super: mounting ext3 fs as ext2

...

But it would not help to make the system boot (I also remove ext3 support
from kernel):
...
Unable to find swap-space signature

Stack Dump:
....

Thanks a lot,
    Joel



-------------------------------------------------------------
Tiscali Complete, l'accès Internet moins cher que gratuit ! Plus d'info:
http://complete.tiscali.be

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

end of thread, other threads:[~2002-11-08 15:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-07  5:42 [parisc-linux] If you feel bored, test these 2.5 changes Carlos O'Donell
2002-11-07 13:37 ` jsoe0708
2002-11-07 13:52   ` [parisc-linux] [Trap 26 -> EXT3?][If you feel bored, test these 2.5 changes...] Carlos O'Donell
2002-11-07 15:39     ` jsoe0708
2002-11-08 12:12       ` Andrew Shugg
2002-11-08 15:57         ` jsoe0708

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.