Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  5 Dec 2000 20:10:16 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Wilko Bulte <wkb@freebie.demon.nl>
Cc:        Daniel Nilsson <daniel.n.nilsson@home.se>, freebsd-alpha@freebsd.org
Subject:   Re: Mikasa boot problems
Message-ID:  <14893.37128.710735.340327@grasshopper.cs.duke.edu>
In-Reply-To: <20001205204431.C346@freebie.demon.nl>
References:  <976022855.158daniel.n.nilsson@home.se> <14893.194.420965.77884@grasshopper.cs.duke.edu> <20001205204431.C346@freebie.demon.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

Wilko Bulte writes:
 > > I ported the AS1000/AS1000A support from NetBSD.  I don't think the
 > > 1000A support has been tested yet.
 > 
 > Go and washed thou mouth with soap..!
 > 
 > I have 4.2-something running on a AS1000A at work. Actually I use it as my
 > FreeBSD-builder. Mine is a EV5/400 BTW.
 > 
 > So, I don't understand why mine has worked for a long time now..

Actually, the problem is worse than I thought. I think your machine
works only because we've been lucky.

As things stand now, I think only ev4 1000's and ev5 1000a's will
work, because I misread the NetBSD source code.  It turns out the
chipset is dependant on the CPU and the interrupt hardware is
dependant on the systype.

See the appended patch to see what I mean.  

Drew

Index: alpha/alpha/dec_1000a.c
===================================================================
RCS file: /home/ncvs/src/sys/alpha/alpha/dec_1000a.c,v
retrieving revision 1.2.2.2
diff -u -r1.2.2.2 dec_1000a.c
--- alpha/alpha/dec_1000a.c	2000/07/20 06:12:12	1.2.2.2
+++ alpha/alpha/dec_1000a.c	2000/12/06 00:55:11
@@ -146,6 +146,15 @@
 	case PCS_PROC_EV4:
 	case PCS_PROC_EV45:
 		platform.iobus = "apecs";
+		break;
+
+	default:
+		platform.iobus = "cia";
+		break;
+	}
+	platform.cons_init = dec_1000a_cons_init;
+	switch (cputype) {
+	case ST_DEC_1000:
 		platform.pci_intr_map = dec_1000_intr_map;
 		platform.pci_intr_disable = dec_1000_intr_disable;
 		platform.pci_intr_enable = dec_1000_intr_enable;
@@ -153,14 +162,13 @@
 		break;
 
 	default:
-		platform.iobus = "cia";
 		platform.pci_intr_map = dec_1000a_intr_map;
 		platform.pci_intr_disable = dec_1000a_intr_disable;
 		platform.pci_intr_enable = dec_1000a_intr_enable;
 		platform.pci_intr_init = dec_1000a_intr_init;
 		break;
 	}
-	platform.cons_init = dec_1000a_cons_init;
+
 }
 
 /* XXX for forcing comconsole when srm serial console is used */
@@ -401,5 +409,5 @@
 /*
  * Enable cascade interrupt.
  */
-	dec_1000_intr_enable(2);
+	dec_1000a_intr_enable(2);
 }


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14893.37128.710735.340327>