Subject: Re: IDE controller not recognized on Iwill P55XB2 motherboard
To: Manuel BOUYER <bouyer@antioche.lip6.fr>
From: Sean Doran <smd@ebone.net>
List: port-i386
Date: 08/03/1997 07:31:22
Manuel BOUYER <bouyer@antioche.lip6.fr> writes:

> Well, can you #define ATAPI_DEBUG, ATAPI_DEBUG2 and ATAPI_DEBUG_PROBE in
> sys/atapi/atapilink.h, recompile a kernel and send me the dmesg ?
> (attention, there is 2 #undef ATAPI_DEBUG in sys/atapi/atapilink.h, be sure
> to remplace or remove them !).

Dmesg attached below.

> The problem is in wdcprobe (file sys/dev/isa/wdc.c). You can add some
> prinf's here to find at which place it does "return 0".

Did that.  

It happens in this code

                /*
                 * Test for a controller with no IDE master, just one
                 * ATAPI device. Select drive 1, and try again.
                 */
                outb(iobase+wd_sdh, WDSD_IBM | 0x10);
                outb(iobase+wd_error, 0x5a);
                outb(iobase+wd_cyl_lo, 0xa5);
                if (inb(iobase+wd_error) == 0x5a || inb(iobase+wd_cyl_lo)
                    != 0xa5) { /* smd */
                        printf("smd_atapi: 1 5a/a5 test, return 0\n");
                        return 0;
                        }

Hmmm...

	Sean.

- --
NetBSD 1.2G (EBONE) #0: Sun Aug  3 07:18:51 CEST 1997
    smd@sean.ebone.net:/usr/src/sys/arch/i386/compile/EBONE
cpu0: family 5 model 2 step c
cpu0: Intel Pentium (P54C) (586-class)
real mem  = 66715648
avail mem = 60592128
using 840 buffers containing 3440640 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
Intel product 0x7100 (host bridge, revision 0x01) at pci0 dev 0 function 0 not configured
Intel 82371AB PIIX4 ISA Bridge (ISA bridge, revision 0x01) at pci0 dev 7 function 0 not configured
Intel product 0x7111 (IDE mass storage, interface 0x80, revision 0x01) at pci0 dev 7 function 1 not configured
Intel product 0x7112 (USB serial bus, revision 0x01) at pci0 dev 7 function 2 not configured
Intel product 0x7113 (miscellaneous bridge, revision 0x01) at pci0 dev 7 function 3 not configured
ahc1 at pci0 dev 8 function 0
ahc1: interrupting at irq 9
ahc1: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
scsibus0 at ahc1 channel 0: 16 targets
ahc1: target 0 using 16Bit transfers
ahc1: target 0 synchronous at 20.0MHz, offset = 0x8
sd0 at scsibus0 targ 0 lun 0: <QUANTUM, XP34550W, LXY4> SCSI2 0/direct fixed
sd0: 4341MB, 5899 cyl, 10 head, 150 sec, 512 bytes/sec x 8890760 sectors
S3 ViRGE (VGA display, revision 0x06) at pci0 dev 9 function 0 not configured
isa0 at mainbus0
ep0 at isa0 port 0x300-0x30f irq 10: 3Com 3C509 Ethernet
ep0: MAC address 00:60:97:da:37:70
ep0: 8KB byte-wide FIFO, 1:1 Rx:Tx split, utp/aui/bnc (default bnc)
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
smd_atapi: 1 5a/a5 test, return 0
smd_atapi: 1 5a/a5 test, return 0
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
spkr0 at pc0 port 0x61
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
isapnp0 at isa0 port 0x279: read port 0x207
sb1 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,5
sb1: Creative ViBRA16C PnP Audio: dsp v4.13
audio0 at sb1
isapnp0: <Creative ViBRA16C PnP, CTL7001, Game> ignored; resource conflict
apm0 at mainbus0: Power Management spec V1.1 (slowidle)
apm0: A/C state: on
apm0: battery charge state: no battery
biomask 240 netmask 640 ttymask 6c2
boot device: sd0
root on sd0a dumps on sd0b