From owner-freebsd-questions Mon Jan 1 12:42:09 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA09225 for questions-outgoing; Mon, 1 Jan 1996 12:42:09 -0800 (PST) Received: from Sysiphos (Sysiphos.MI.Uni-Koeln.DE [134.95.212.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA09218 for ; Mon, 1 Jan 1996 12:42:05 -0800 (PST) Received: by Sysiphos id AA18165 (5.67b/IDA-1.5 for questions@freebsd.org); Mon, 1 Jan 1996 21:41:56 +0100 Message-Id: <199601012041.AA18165@Sysiphos> From: se@zpr.uni-koeln.de (Stefan Esser) Date: Mon, 1 Jan 1996 21:41:55 +0100 In-Reply-To: Alex Kluev "Re: Adaptec 294x problem" (Dec 30, 15:41) X-Mailer: Mail User's Shell (7.2.6 alpha(2) 7/9/95) To: Alex Kluev Subject: Re: Adaptec 294x problem Cc: questions@freebsd.org Sender: owner-questions@freebsd.org Precedence: bulk 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