Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jan 1996 21:41:55 +0100
From:      se@zpr.uni-koeln.de (Stefan Esser)
To:        Alex Kluev <alex@tubank.msk.su>
Cc:        questions@freebsd.org
Subject:   Re: Adaptec 294x problem
Message-ID:  <199601012041.AA18165@Sysiphos>
In-Reply-To: Alex Kluev <alex@tubank.msk.su> "Re: Adaptec 294x problem" (Dec 30, 15:41)

next in thread | previous in thread | raw e-mail | index | archive | help
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			  <se@ZPR.Uni-Koeln.DE>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601012041.AA18165>