Subject: Re: -current can't find my root device!
To: None <port-alpha@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-alpha
Date: 03/02/2000 12:41:55
In <200003020151.KAA01833@axp46.aist-nara.ac.jp>
nisimura@itc.aist-nara.ac.jp wrote:

> > WARNING: can't figure what device matches "SCSI 0 4 0 0 0 0 FLAMG-IO"
> >
> > What does this warning message mean?

> 3000/300 device_register() routine failed to decode the booting
> device.  I will take care of this, making sure CD-ROM boot.  See also
> PR#9407.

I have already discussed with mrg about this problem.
Currently built-in TC device infos are hardcoded
in alpha/tc/tc_3000_300.c and they do not seem to match
reality. (reported by "show config" command on SRM)

The attached patch seems to fix this problem,
but we think the "real fix" is to get TC device infos
from SRM in TC attachment code (or elsewhere).

We are waiting cgd to come back from his vacation. :-)
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp


--- tc_3000_300.c.orig	Sat Feb  5 18:36:41 2000
+++ tc_3000_300.c	Sat Feb 26 17:23:54 2000
@@ -69,17 +69,19 @@
 struct tc_slotdesc tc_3000_300_slots[] = {
 	{ KV(0x100000000), C(TC_3000_300_DEV_OPT0), },	/* 0 - opt slot 0 */
 	{ KV(0x120000000), C(TC_3000_300_DEV_OPT1), },	/* 1 - opt slot 1 */
-	{ KV(0x180000000), C(TC_3000_300_DEV_BOGUS), },	/* 2 - TCDS ASIC */
-	{ KV(0x1a0000000), C(TC_3000_300_DEV_BOGUS), },	/* 3 - IOCTL ASIC */
-	{ KV(0x1c0000000), C(TC_3000_300_DEV_CXTURBO), }, /* 4 - CXTurbo */
+	{ KV(0x140000000), C(TC_3000_300_DEV_BOGUS), },	/* 2 - opt slot 2 */
+	{ KV(0x160000000), C(TC_3000_300_DEV_BOGUS), },	/* 3 - opt slot 3 */
+	{ KV(0x180000000), C(TC_3000_300_DEV_TCDS), },	/* 4 - TCDS ASIC */
+	{ KV(0x1a0000000), C(TC_3000_300_DEV_IOASIC), }, /* 5 - IOCTL ASIC */
+	{ KV(0x1c0000000), C(TC_3000_300_DEV_CXTURBO), }, /* 6 - CXTurbo */
 };
 int tc_3000_300_nslots =
     sizeof(tc_3000_300_slots) / sizeof(tc_3000_300_slots[0]);
 
 struct tc_builtin tc_3000_300_builtins[] = {
-	{ "PMAGB-BA",	4, 0x02000000, C(TC_3000_300_DEV_CXTURBO),	},
-	{ "FLAMG-IO",	3, 0x00000000, C(TC_3000_300_DEV_IOASIC),	},
-	{ "PMAZ-DS ",	2, 0x00000000, C(TC_3000_300_DEV_TCDS),		},
+	{ "PMAGB-BA",	6, 0x02000000, C(TC_3000_300_DEV_CXTURBO),	},
+	{ "FLAMG-IO",	5, 0x00000000, C(TC_3000_300_DEV_IOASIC),	},
+	{ "PMAZ-DS ",	4, 0x00000000, C(TC_3000_300_DEV_TCDS),		},
 };
 int tc_3000_300_nbuiltins =
     sizeof(tc_3000_300_builtins) / sizeof(tc_3000_300_builtins[0]);