From owner-freebsd-questions Thu Dec 28 07:18:24 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA08222 for questions-outgoing; Thu, 28 Dec 1995 07:18:24 -0800 (PST) Received: from hobbit.tubank.msk.su (hobbit.tubank.msk.su [194.58.146.97]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA08211 for ; Thu, 28 Dec 1995 07:17:49 -0800 (PST) Received: by hobbit.tubank.msk.su (IP Labs/BSDI/386 1.0) id SAA24194; Thu, 28 Dec 1995 18:06:03 +0300 Date: Thu, 28 Dec 1995 18:06:02 +0300 (GMT+0300) From: Alex Kluev To: Stefan Esser cc: questions@freebsd.org Subject: Re: Adaptec 294x problem In-Reply-To: <199512271208.AA11786@Sysiphos> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk Hi! I'm afraid we found the problem, and it wasn't the Adaptec's fault. Compaq's PCI controller is residing on the same addresses as the "normal" one, but differs in the identification code. Here's what we changed in /sys/i386/isa/pcibus.c : #define CONF1_ADDR_PORT 0x0cf8 #define CONF1_DATA_PORT 0x0cfc #define CONF1_ENABLE 0x80000000ul #define CONF1_ENABLE_CHK 0x80000000ul #define CONF1_ENABLE_CHK1 0xFF000001ul #define CONF1_ENABLE_MSK1 0x80000000ul #define CONF1_ENABLE_RES1 0x80000000ul #define CONF2_ENABLE_PORT 0x0cf8 #define CONF2_FORWARD_PORT 0x0cfa #ifdef COMPAQ #define CONF2_ENABLE_CHK 0x0c #define CONF2_ENABLE_RES 0x0c #else #define CONF2_ENABLE_CHK 0x0e #define CONF2_ENABLE_RES 0x0e #endif Of course we had to add "options COMPAQ" to the config file. We wonder if there could be another way to fix this problem. Could anybody work out a patch or something, because none of us had any experience with PCI until a few days ago when the problem arised, and we don't have any documentation. Another question is : how to make an installation floppy with a modified kernel? Regards, Alex Kluev Denis Talonin On Wed, 27 Dec 1995, Stefan Esser wrote: > > Sorry for the late reply! > > I'll try to get you going ... > > Please send VERBOSE boot messages (obtained > by '-v' entered at the 'Boot: ' prompt), at > least of the PCI probe: > > pcibus_setup(1): mode 1 addr port (0x0cf8) is 0x00000000 > pcibus_setup(1a): mode1res=0x00000000 (0x80000000) > pcibus_setup(1b): mode1res=0x00000000 (0xff000001) > pcibus_setup(2): mode 2 enable port (0x0cf8) is 0x00 > pcibus_setup(2a): mode2res=0x0e (0x0e) > pcibus_setup(2a): now trying mechanism 2 > pcibus_check: device 0 is there (id=04838086) > Probing for devices on the PCI bus: > configuration mode 2 allows 16 devices. > chip0 rev 4 on pci0:0 > CPU: 486DX2 or 486DX4, bus=33MHz, CPU->Memory posting ON > Warning: NO cache parity! NO DRAM parity! > Cache: 256KB writethrough, cache clocks=2-1-1-1 > DRAM: page mode code fetch, read and write, memory clocks=X-1-2-1 > CPU->PCI: posting ON, burst mode ON > PCI->Memory: posting ON > ncr0 rev 1 int a irq 9 on pci0:1 > mapreg[10] type=1 addr=0000e800 size=0100. > mapreg[14] type=0 addr=fbfef000 size=0100. > reg20: virtual=0xf2cfa000 physical=0xfbfef000 size=0x100 > > I need the contents (at least ALL numbers) > of all lines starting with pcibus_setup() or > pcibus_check. And additionally lines like > those for chip0 or ncr0 above ... > > Regards, STefan > ------------------------------------------------------------------------------- + Alex Kluev ..."The life is a short warm moment, + + Internet: alex@tubank.msk.su And the death is a long cold rest..."+ + Phone: +7 (095) 330-1080 Pink Floyd "Obscured by clouds" + + Fax: +7 (095) 330-6793 + + PGP Key fingerprint = 2E 46 74 FB D1 B4 E4 63 D3 9D A1 16 2B F0 F3 6B + +------------------------------------------------------------------------------