Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: David Huggins-Daines <dhd@linuxcare.com>
To: axp-list@redhat.com
Subject: Re: XFree 4.0 crashes with SRM
Date: 31 May 2000 16:44:22 -0700	[thread overview]
Message-ID: <874s7emgix.fsf@linuxcare.com> (raw)
In-Reply-To: 3935A218.1B91FEDA@appnet.com

Jeff Sturm <jeff.sturm@appnet.com> writes:

> Thanks Rich.  I ran XFree86 under gdb (remotely) to get some better
> data.  It dies with a SIGILL in miIntersect():
> 
> 0x120178258 <miIntersect+280>:	maxsw4	t6,t1,t1
> 
> That mean anything to anybody?  I'm using SRM V5.6-3, kernel 2.2.14.

Yup.  SRM on the SX disables the MVI instructions.  Try this patch
(from Ivan Koshaysky via linux-alpha@vger):

diff -urN linux-2.2.15-vanilla/arch/alpha/kernel/sys_sx164.c linux-2.2.15/arch/alpha/kernel/sys_sx164.c
--- linux-2.2.15-vanilla/arch/alpha/kernel/sys_sx164.c	Mon Feb 22 04:06:36 1999
+++ linux-2.2.15/arch/alpha/kernel/sys_sx164.c	Fri May 26 09:33:16 2000
@@ -24,6 +24,7 @@
 #include <asm/io.h>
 #include <asm/pgtable.h>
 #include <asm/core_pyxis.h>
+#include <asm/hwrpb.h>
 
 #include "proto.h"
 #include "irq.h"
@@ -186,6 +187,35 @@
 	SMC669_Init(0);
 }
 
+static void __init
+sx164_init_arch(unsigned long *mem_start, unsigned long *mem_end)
+{
+	/*
+	 * OSF palcode v1.23 forgets to enable PCA56 Motion Video
+	 * Instructions. Let's enable it.
+	 * We have to check palcode revision because CSERVE interface
+	 * is subject to change without notice. For example, it
+	 * has been changed completely since v1.16 (found in MILO
+	 * distribution). -ink
+	 */
+	struct percpu_struct *cpu = (struct percpu_struct*)
+				((char*)hwrpb + hwrpb->processor_offset);
+
+	if (alpha_using_srm && (cpu->pal_revision & 0xffff) == 0x117) {
+		__asm__ __volatile__(
+		"lda	$16,8($31)\n"
+		"call_pal 9\n"		/* Allow PALRES insns in kernel mode */
+		".long	0x64000118\n"	/* hw_mfpr $0,icsr */
+		"ldah	$16,(1<<(19-16))($31)\n"
+		"or	$0,$16,$0\n"	/* set MVE bit */
+		".long  0x74000118\n"	/* hw_mtpr $0,icsr */
+		"lda	$16,9($31)\n"
+		"call_pal 9"		/* Disable PALRES insns */
+		: : : "$0", "$16");
+		printk("PCA56 MVI set enabled\n");
+	}
+	pyxis_init_arch(mem_start, mem_end);
+}
 
 /*
  * The System Vector
@@ -206,7 +236,7 @@
 	ack_irq:		generic_ack_irq,
 	device_interrupt:	sx164_device_interrupt,
 
-	init_arch:		pyxis_init_arch,
+	init_arch:		sx164_init_arch,
 	init_irq:		sx164_init_irq,
 	init_pit:		generic_init_pit,
 	pci_fixup:		sx164_pci_fixup,


-- 
David Huggins-Daines, Senior GNU/Linux Consultant, Linuxcare, Inc.
613.562.1239 desk, 613.223.0225 mobile
dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.


  reply	other threads:[~2000-05-31 23:44 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-31 17:14 XFree 4.0 crashes with SRM Jeff Sturm
2000-05-31 17:14 ` Craig P Prescott
2000-05-31 17:40   ` Rich Payne
2000-05-31 23:36     ` Jeff Sturm
2000-05-31 23:44       ` David Huggins-Daines [this message]
2000-06-01  0:31         ` Michal Jaegermann
2000-06-01 14:59           ` SX MVI patch (was Re: XFree 4.0 crashes with SRM) Craig P Prescott
2000-06-01 22:12             ` Ivan Kokshaysky
2000-06-01 13:20         ` XFree 4.0 crashes with SRM Jeff Sturm
2000-06-01 13:35           ` Jay Estabrook
2000-06-01 14:02             ` SRM For the UP1000? Edwin Koshimoto
2000-06-01 14:23               ` Rich Payne
2000-06-01 14:47                 ` Edwin Koshimoto
2000-06-01 14:34               ` Kevin Wood
2000-06-01 14:36             ` XFree 4.0 crashes with SRM Jeff Sturm
2000-06-01 14:36           ` Craig P Prescott
2000-06-01 15:36             ` Rich Payne
2000-06-01 16:05             ` Jeff Sturm
2000-06-01 21:48               ` Craig P Prescott
2000-05-31 19:14   ` Jeff Sturm
2000-05-31 18:36     ` Jay Estabrook
2000-06-01 13:23       ` Jeff Sturm
2000-06-01 13:50         ` Jay Estabrook
2000-06-01 14:46           ` Jeff Sturm
2000-06-01 15:55             ` Jay Estabrook
2000-06-01 14:25     ` Craig P Prescott
read-only archive

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