From nobody  Sun Nov  8 14:53:30 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id OAA02780;
          Sun, 8 Nov 1998 14:53:30 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199811082253.OAA02780@hub.freebsd.org>
Date: Sun, 8 Nov 1998 14:53:30 -0800 (PST)
From: dgies@yikes.com
To: freebsd-gnats-submit@freebsd.org
Subject: wdc1 is not detected on motherboards with Aladdin V chipsets
X-Send-Pr-Version: www-1.0

>Number:         8608
>Category:       i386
>Synopsis:       wdc1 is not detected on motherboards with Aladdin V chipsets
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov  8 15:00:01 PST 1998
>Closed-Date:    Wed Jan 13 05:08:14 PST 1999
>Last-Modified:  Wed Jan 13 05:10:49 PST 1999
>Originator:     Daniel Gies
>Release:        3.0-RELEASE
>Organization:
none
>Environment:
FreeBSD hugh.reshall.berkeley.edu 3.0-RELEASE FreeBSD 3.0-RELEASE #2: Sun Oct 25 12:40:36 PST 1998     dgies@hugh.reshall.berkeley.edu:/usr/src/sys/compile/CONRAD  i386

>Description:
My machine has a Microstar MS-5169 motherboard.It uses an ALi Aladdin V 
chipset.  At bootup, the secondary IDE channel is never detected, 
regardless of warm or cold boot.  By watching comp.unix.bsd.freebsd.misc.
it was inferred that this problem affects all Super7 motherboards with
an ALi Aladdin V chipset.  The primary IDE channel works fine, and
the secondary channel is detected both by the BIOS and by Win95.
I checked my kernel config file, and the kernel is looking in the right
place (IRQ 15, port 0x170).

Possible cause:  Device ID not recognized?
>How-To-Repeat:
Install 3.0-RELEASE on computer with Microstar MS-5169 motherboard.
May also occur on any motherboard using an ALi Aladdin V chipset.
>Fix:

>Release-Note:
>Audit-Trail:

From: Barry Tigner <tigner@pa.msu.edu>
To: freebsd-gnats-submit@freebsd.org, dgies@yikes.com
Cc:  Subject: Re: i386/8608: wdc1 is not detected on motherboards with Aladdin V chipsets
Date: Tue, 24 Nov 1998 09:06:47 -0500

 I can verify this happens with an ASUS P5A with an Aladdin chipset.  The
 probe can not find wdc1.
 ASUS P5A (ATX) Mainboard with BIOS version 1005
 AMD K6-2/350 cpu    192MB PC100 SDRAM
 wdc0 master is Maxtor 10GB UDMA HD (jumpered as master)
 wdc0 slave is Maxtor 4.3GB UDMA HD (jumpered as master)
 wdc1 master is 24X EIDE CDROM (jumpered as master) (wdc1 not found so
 this doesn't show up )
 wdc1 slave -none-
 
 The BIOS, W95, and WinNT all find all IDE devices and controllers ok.
 FreeBSD 3.0 probe can't find
 the wdc1 controller . I've heard that if you boot to the 2.2.7 install
 floppy, that it's probe finds both
 controllers, and that you can then boot to FreeBSD 3.0 ok.
 
 This looks like a problem with /usr/src/sys/i386/isa/wd.c but I haven't
 really go the faintest clue at this
 time where it might be.
 
 This system was working fine on a FIC PA2012 (ATX) mainboard with a VIA
 chipset.
 
 Barry
 
 

From: Alan Cox <alc@rice.edu>
To: freebsd-gnats-submit@freebsd.org, dgies@yikes.com
Cc:  Subject: Re: i386/8608: wdc1 is not detected on motherboards with Aladdin V chipsets
Date: Sat, 19 Dec 1998 20:29:56 +0000

 Try the following patch to wdprobe:
 
 # cvs diff -c src/sys/i386/isa/wd.c
 Index: src/sys/i386/isa/wd.c
 ===================================================================
 RCS file: /home/ncvs/src/sys/i386/isa/wd.c,v
 retrieving revision 1.181
 diff -c -r1.181 wd.c
 *** wd.c        1998/12/15 09:16:57     1.181
 --- wd.c        1998/12/16 08:01:53
 ***************
 *** 313,320 ****
         interface = du->dk_ctrlr / 2;
         du->dk_interface = interface;
   #if !defined(DISABLE_PCI_IDE) && (NPCI > 0)
 !       if (wddma[interface].wdd_candma) {
 !               du->dk_dmacookie =
 wddma[interface].wdd_candma(dvp->id_iobase, du->dk_ctrlr);
                 du->dk_port = dvp->id_iobase;
                 du->dk_altport =
 wddma[interface].wdd_altiobase(du->dk_dmacookie);
         } else {
 --- 313,321 ----
         interface = du->dk_ctrlr / 2;
         du->dk_interface = interface;
   #if !defined(DISABLE_PCI_IDE) && (NPCI > 0)
 !       if ((wddma[interface].wdd_candma != NULL) &&
 !           ((du->dk_dmacookie =
 wddma[interface].wdd_candma(dvp->id_iobase,
 !
 du->dk_ctrlr)) != NULL)) {
                 du->dk_port = dvp->id_iobase;
                 du->dk_altport =
 wddma[interface].wdd_altiobase(du->dk_dmacookie);
         } else {
 
 This patch won't enable DMA on wdc1, but will permit access to devices
 attached to it.
 
 
State-Changed-From-To: open->closed 
State-Changed-By: foxfair 
State-Changed-When: Wed Jan 13 05:08:14 PST 1999 
State-Changed-Why:  
Correct in $Id: ide_pci.c,v 1.23 1999/01/13 04:40:50 julian Exp $ 

Submitted by Lee Cremeans <lee@st-lcremean.tidalwave.net> 



>Unformatted:
