Subject: Some changes
To: None <port-bebox@netbsd.org>
From: Allen Briggs <briggs@wasabisystems.com>
List: port-bebox
Date: 02/12/2001 01:24:47
--tThc/1wpZn/ma/RB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I've done a bit of work on my bebox this weekend.  Some frustrating
(SCSI), and some positive progress.

I've added enough to be able to add the ex (3Com PCI DMA driver)
and use it for an NFS-based boot.  This involves configuring the
PCI bus at boot time.  I'm not sure if this will work with non-serial
consoles.

In any case, this requires the PCI_NETBSD_CONFIGURE option to be
defined.  I think that any PCI device that works in macppc should
now work in the bebox.  I'm not entirely sure about the interrupt
mapping for bridges, but it does work in the cases that I can try
easily here (3Com adapter on a bridge card in the three different
slots--a pretty simplistic test, but the best I can do without taking
everything apart).

I had trouble booting current (uvm_km_suballoc failure between printing
the physical and available memory).  I kludged around it with the attached
patch.  ** This is a kludge -- YMMV **
I don't know what the real problem is, but it's on my list to figure
out if no one gets to it first.

I'm still stuck on SCSI, though.  I get the first interrupt and nothing
else.  I am currently thinking that there is something wrong with the
siop driver, not with the interrupts, since the 3Com card now works fine.

Cheers,
-allen

-- 
 Allen Briggs                     briggs@wasabisystems.com
 http://www.wasabisystems.com/    Quality NetBSD CDs, Sales, Support, Service

--tThc/1wpZn/ma/RB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=ptch

Index: param.h
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/bebox/include/param.h,v
retrieving revision 1.7
diff -u -r1.7 param.h
--- param.h	2000/06/30 17:55:13	1.7
+++ param.h	2001/02/12 06:17:34
@@ -55,7 +55,7 @@
 #define	DEV_BSHIFT	9		/* log2(DEV_BSIZE) */
 #define	DEV_BSIZE	(1 << DEV_BSHIFT)
 #define	BLKDEV_IOSIZE	NBPG
-#define	MAXPHYS		(64 * 1024)	/* max raw I/O transfer size */
+#define	MAXPHYS		(8 * 1024)	/* max raw I/O transfer size */
 
 #define	UPAGES		4
 #define	USPACE		(UPAGES * NBPG)

--tThc/1wpZn/ma/RB--