Subject: Re: wdc lost interrupt?
To: Patrick Welche <email@example.com>
From: Manuel Bouyer <firstname.lastname@example.org>
Date: 12/02/1998 19:17:52
On Dec 2, Patrick Welche wrote
> I don't think it's a CMD PCI0640, but I tried pciide anyhow:
> pciide0 at pci0 dev 0 function 1: Silicon Integrated System 5597/5598 IDE controller
> pciide0: bus-master DMA support present
> pciide0: primary channel wired to compatibility mode
> wd0 at pciide0 channel 0 drive 0: <SAMSUNG SV0322A>
> wd0: drive supports 16-sector pio transfers, lba addressing
> wd0: 3052MB, 11024 cyl, 9 head, 63 sec, 512 bytes/sect x 6250608 sectors
> wd0: 32-bits data port
> wd0: drive supports PIO mode 4, DMA mode 2, UDMA mode 2
> wd1 at pciide0 channel 0 drive 1: <Maxtor 71084 AP>
> wd1: drive supports 32-sector pio transfers, lba addressing
> wd1: 1036MB, 2105 cyl, 16 head, 63 sec, 512 bytes/sect x 2122780 sectors
> wd1: 32-bits data port
> wd1: drive supports PIO mode 4, DMA mode 2
> pciide0: secondary channel wired to compatibility mode
> pciide0: secondary channel ignored (disabled)
> wd0(pciide0:0:0): using PIO mode 4
> wd1(pciide0:0:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
There's a bug here: both drives should use DMA mode 2. I'll look at this and
ask you yo test a patch...
> But atapibus still attached to wdc1:
And that is very strange, the pciide driver said the secondary channel was
disabled, so it should not show up here.
Could you check in your BIOS if the secondary channel is enabled, and if not
enable it ?
> wdc1 at isa0 port 0x170-0x177 irq 15
> atapibus0 at wdc1 channel 0
> cd0 at atapibus0 drive 0: <SAMSUNG CD-ROM SCR-3231, , S101> type 5 cdrom removable
> cd0: 32-bits data port
> cd0: drive supports PIO mode 4, DMA mode 2
> Is this correct?
> # ATAPI bus support
> atapibus* at wdc?
> atapibus* at pciide? channel ?
> or should I have commented out wdc1..
No. It should not have showed up. However your box is a nice test case
for IDE DMA support with this chip :)
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr