Date: Tue, 27 May 1997 02:15:03 -0700 (PDT) From: Joel.Faedi@esial.u-nancy.fr To: freebsd-gnats-submit@FreeBSD.ORG Subject: kern/3696: kernel panic during wd hard disk probe if CMD640 is enabled Message-ID: <199705270915.CAA04686@hub.freebsd.org> Resent-Message-ID: <199705270920.CAA04768@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 3696
>Category: kern
>Synopsis: kernel panic during wd hard disk probe if CMD640 is enabled
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue May 27 02:20:00 PDT 1997
>Last-Modified:
>Originator: ESIAL - Nancy (France)
>Organization:
>Release: 2.2.1 and 2.2.2 and above
>Environment:
FreeBSD meduse.scinfo.u-nancy.fr 2.2.1-RELEASE FreeBSD 2.2.1-RELEASE #0: Sun May 25 10:08:52 CEST 1997 faedi@meduse.scinfo.u-nancy.fr:/usr/src/sys/compile/MEDUSE i386
>Description:
kernel panics while testing wd hard drive if "options CMD640" is activated and if you don't have wd1 connected (even if the controleris a CMD640 or not).
>How-To-Repeat:
compile a kernel with "options CMD640", put a single hard disk onyour first IDE controler, system panic while testing hard disks.
>Fix:
in file /usr/src/sys/i386/isa/wd.c, in function "wdattach", change the lines:-------------------------------------------------#ifdef CMD640
wdtab[du->dk_ctrlr_cmd640].b_active = 2;
#else
wdtab[dvp->id_unit].b_active = 2;
#endif-------------------------------------------------
by the lines:-------------------------------------------------
#ifdef CMD640
if (eide_quirks & Q_CMD640B) {
wdtab[PRIMARY].b_active = 2;
} else {
wdtab[dvp->id_unit].b_active = 2;
}
#else
wdtab[dvp->id_unit].b_active = 2;
#endif
-------------------------------------------------
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705270915.CAA04686>
