From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 25747 invoked from network); 31 May 2000 23:44:49 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 31 May 2000 23:44:49 -0000 Received: from tarwebok (hostb234.creativedesign.com [216.39.6.234]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id TAA09001 for ; Wed, 31 May 2000 19:44:48 -0400 Received: from dhd by tarwebok with local (Exim 3.12 #1 (Debian)) id 12xI9v-0005YZ-00 for ; Wed, 31 May 2000 16:44:23 -0700 To: axp-list@redhat.com Subject: Re: XFree 4.0 crashes with SRM References: <3935A218.1B91FEDA@appnet.com> From: David Huggins-Daines Organization: Linuxcare, Inc. Date: 31 May 2000 16:44:22 -0700 Message-ID: <874s7emgix.fsf@linuxcare.com> User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Jeff Sturm writes: > Thanks Rich. I ran XFree86 under gdb (remotely) to get some better > data. It dies with a SIGILL in miIntersect(): > > 0x120178258 : 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 #include #include +#include #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.