Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 1997 18:41:00 +0200 (MET DST)
From:      Wolfgang Helbig <helbig@MX.BA-Stuttgart.De>
To:        nadav@barcode.co.il (Nadav Eiron)
Cc:        bazilio@economic.acnit.ac.ru, freebsd-questions@FreeBSD.ORG
Subject:   Re: PCI IDE CMD640 ?
Message-ID:  <199705051641.SAA21078@helbig.informatik.ba-stuttgart.de>
In-Reply-To: <Pine.BSF.3.91.970505175659.29941A-100000@gatekeeper.barcode.co.il> from Nadav Eiron at "May 5, 97 05:59:25 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 
> On Mon, 5 May 1997, Vasily V. Grechishnikov wrote:
> 
> > 			Hi !
> > 	I have P5 motherboard with onboard PCI IDE controller. And I have 2.2R.
> > I compiled kernel with option CMD640. How I can see wdc0 works as PCI IDE 
> > or no ?
> 
> It seems that you *don't* have a CMD640b. Don't use CMD640 then. It just 
> slows down your machine (does not allow concurrent I/O on both channels). 

Sorry Nadav, but this is not true anymore. (It was for the 2.1.5
version you were using) If you enable the option CMD640 the pci-
system is used to detect the presence of this chip and only if it
detected it, the diskdriver serializes access to primary and
secondary IDE channels.

If you do not have this chip the driver does not slow down disk
access even with option CMD640 set.

That's why it's set in the current GENERIC kernel by default.  Here
are dmesg lines that you get with option CMD640 set *and* chip
detected (because I am still using it on both channels):

Copyright (c) 1992-1997 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 3.0-CURRENT #0: Fri May  2 21:37:49 MET DST 1997
    helbig@helbig.informatik.ba-stuttgart.de:/usr/sys.bisdn/compile/RVC1
CPU: i486DX (486-class CPU)
real memory  = 25165824 (24576K bytes)
avail memory = 22777856 (22244K bytes)
Probing for devices on PCI bus 0:
vga0 <VGA-compatible display device> rev 0 int a irq ?? on pci0:14:0
wdc0 <CMD 640B IDE> rev 2 int a irq 14 on pci0:15:0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[...]
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: CMD640B workaround enabled
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
wdc0: unit 0 (wd0): <Conner Peripherals 850MB - CFS850A>
wd0: 812MB (1664208 sectors), 1651 cyls, 16 heads, 63 S/T, 512 B/S
wdc0: unit 1 (atapi): <FX001DE/G06>, removable, intr, iordis
wcd0: 689Kb/sec, 128Kb cache, audio play, 255 volume levels, ejectable tray
wcd0: no disc inside, unlocked
wdc1 at 0x170-0x177 irq 15 on isa
wdc1: unit 0 (wd2): <Seagate Technology 1275MB - ST31276A>
wd2: 1221MB (2501856 sectors), 2482 cyls, 16 heads, 63 S/T, 512 B/S
tel0 at 0xd80 irq 9 on isa

[...]

This option is documented in LINT and in the FAQ.


Wolfgang



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