Subject: E-class: partial success
To: None <port-hp700@netbsd.org>
From: Sergey Svishchev <svs@ropnet.ru>
List: port-hp700
Date: 05/22/2004 17:51:07
--d9ADC0YsG2v16Js0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

G'day,

I know that E-class has no SCSI support, but what the hell...

The autoconfig code would not attach cpu at mainbus, so I had to force it
(see below).

>> NetBSD/hp700 LIF/FFS/LFS Boot, Revision 1.2
>> (svs@mononoke, Sun Feb 29 22:32:54 MSK 2004)
>> Enter "reset" to reset system.
Boot: [[[lf0a:]netbsd][-a][-c][-d][-s][-v][-q]] :-=20
1542300+57344+237568\[84992+71146]=3D0x26e478
Start @ 0x200000 [1=3D0x448000-0x46e478]...
PDC_CACHE_SETCS: 0, 0, 0, 0 (-2)
SPID bits: 0x0, error =3D -2
HP9000/806/E23 (Orville), PA7100LC
  [ BTLB slot 0: r-x--- 0x00200000 @ 0x0:0x00200000 len 0x00200000 ] =20
  [ BTLB slot 1: rw---- 0x00400000 @ 0x0:0x00400000 len 0x00400000 ] =20
phys segment: 0x12 0x200
phys segment: 0x379 0x400
phys segment: 0x62c 0x2000
pdc_coproc: c0, c0
Loaded initial symtab at 0x448000, strtab at 0x45ce8c, # entries 5301
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6ZK (TAMAHOME) #19: Mon Mar  1 01:42:18 MSK 2004
	svs@mononoke:/u/b/sys/o/TAMAHOME
HP9000/806/E23 (Orville)
real mem =3D 32768 KB (73728 reserved for PROM, 28964 KB used by NetBSD)
avail mem =3D 28372 KB
mainbus0 (root) [flex fff80000]
pdc0 at mainbus0
cpu0 at mainbus0: PA7100LC (Hummingbird) rev 5
cpu0: PCX-L, PA-RISC 1.1c, lev 1, cat A, 48 MHz clk
cpu0: shadows, 32K/32K D/I caches, 64 shared TLB, 8 shared BTLB
cpu0: PCX-L (CMOS-26B) floating point, rev 1
lasi0 at mainbus0 hpa 0xf0000000 path 60 irq 28: rev 3.0
gsc0 at lasi0
ie0 at gsc0 hpa 0xf0107000 path 60/6 irq 8 ipl 1: v1.0 address 08:00:09:XX:=
XX:XX, type LASI/i82596CA
biomask 0000000c netmask 0000000e ttymask 0000001e
Stopped in pid 0.1 (swapper) at netbsd:cpu_configure+0x68:      ldil    L'3=
78000
,%r19
db>=20

--- sys/arch/hp700/hp700/mainbus.c	20 Feb 2004 20:22:10 -0000	1.17
+++ sys/arch/hp700/hp700/mainbus.c	22 May 2004 13:14:30 -0000
@@ -1488,6 +1488,15 @@
 	nca.ca_dmatag =3D &hppa_dmatag;
 	config_found(self, &nca, mbprint);
=20
+	/* XXX */
+	memset(&nca, 0, sizeof(nca));
+	nca.ca_name =3D "cpu";
+	nca.ca_hpa =3D 0;
+	nca.ca_irq =3D 31;
+	nca.ca_iot =3D &hppa_bustag;
+	nca.ca_dmatag =3D &hppa_dmatag;
+	config_found(self, &nca, mbprint);
+
 	/*
 	 * How to do device scaning? Try to use PDC_SYSTEM_MAP.
 	 * We are on a "new" system if it succedes, so use PDC_SYSTEM_MAP.

--=20
Sergey Svishchev

--d9ADC0YsG2v16Js0
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Comment: ''

iD8DBQFAr1rL3P+wmuUns7URAk+1AJ9riPDriExX28e5r+k9isF/3iKTewCfUl+/
a4bGjg96Db/XC7GMCf8gHLw=
=AHRD
-----END PGP SIGNATURE-----

--d9ADC0YsG2v16Js0--