From owner-freebsd-questions Wed Jan 3 09:48:30 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA25601 for questions-outgoing; Wed, 3 Jan 1996 09:48:30 -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 JAA25469 for ; Wed, 3 Jan 1996 09:48:12 -0800 (PST) Received: by hobbit.tubank.msk.su (IP Labs/BSDI/386 1.0) id UAA22401; Wed, 3 Jan 1996 20:46:13 +0300 Date: Wed, 3 Jan 1996 20:46:12 +0300 (GMT+0300) From: Alex Kluev To: Stefan Esser cc: questions@freebsd.org Subject: Re: Adaptec 294x problem In-Reply-To: <199601012041.AA18165@Sysiphos> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk Hi! this is what we got after compiling in the pcibus.c from the FreeBSD-current : [cut here] pcibus_setup(1a): mode1res=0x00000000(0x80000000) pcibus_setup(1b): mode1res=0x80000000(0xff000001) pcibus_check: device - is there (id=20000e11) Probing for devices on the PCI bus: configuration mode 1 allows 32 devices pci0:0 Compaq, device 0x2000, class=old (misc)[no driver assigned] map(10): mem32(23c08) map(14): mem32(1c3c98) map(18): mem32(1c3ca8) map(1c): mem32(39940) map(20): io(20000e10) vga0 rev 252 on pci0:10 mapreg[10] type=0 addr=40000000 size=1000000 ahc0: rev 3 int a irq255 on pci0:14 ahc0: reading board settings ahc0: Reading SEEPROM... ahc0: SEEPROM read failed, using leftover BIOS values ahc0: 2940 single channel , SCSI Id=7, aic=7870, 0 SCBs. stray irq 0 ahc: Downloading sequencer program ... start irq 0 stray irq 0 stray irq 0 stray irq 0 too many stray irq 0's; not logging any more [cut here] After this point everything hangs with a continous bell from the speaker. Stefan, if only we had some docs on the PCI chipsets, we could try to help with this situation. Could you spare any docs? Regards, Alex ------------------------------------------------------------------------------- + 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) 913-3089 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 + +------------------------------------------------------------------------------ On Mon, 1 Jan 1996, Stefan Esser wrote: > On Dec 30, 15:41, Alex Kluev wrote: > } Subject: Re: Adaptec 294x problem > } OK, here comes two verbose boot logs. First one is GENERIC, second one is > } a fixed kernel. Sorry, the AHA board was taken from me, but I will get it > } back after the NewYear's celebrations. > } > } I hope this will help. > > Thanks! > > } pcibus_setup(1): mode1res=0x8000000c (0x80000000), mode2res=0x0c (0x0e) > > Yes, this is a know buggy chip set ... > But they seem to have broken it even more by now! > > } pcibus_setup(1): mode1res=0x8000000c (0x80000000), mode2res=0x0c (0x0c) > } pcibus_setup(2): mode1res=0x00000000 (0x80000000) > } pcibus_setup(3): mode1res=0x80000000 (0xff000001) > } pcibus_check: device 0 is there (id=20000e11) > } Probing for devices on the PCI bus: > } configuration mode 1 allows 32 devices. > } pci0:0: Compaq, device=0x2000, class=old (misc) [no driver assigned] > > The fix I put in before was for the Compaq chip set > with device ID 0x1000, and this one behaves different > even again. > > But the code in FreeBSD-current does know how to deal > with them ... > > Your proposed fix is in fact only working by accident. > The 0x0e is for Configuration Mode 2 detecion, while > the Compaq uses Mode 1. By changing the 0x0e into 0x0c, > you make the Mode 2 test succeed, but later Mode 1 is > (correctly) used to access the PCI configuration space > anyway. > > You can of course use the kernel with your patch on > the Compaq, but the better solution would be to use > /sys/i386/isa/pcibus.c from FreeBSD-current, since > that file contains a new and improved probe code ... > > Regards, STefan > -- > Stefan Esser, Zentrum fuer Paralleles Rechnen Tel: +49 221 4706021 > Universitaet zu Koeln, Weyertal 80, 50931 Koeln FAX: +49 221 4705160 > ============================================================================== > http://www.zpr.uni-koeln.de/~se >