Re: IDE/SCSI emulation kills machine when using CD-Rom.

Andre M. Hedrick (hedrick@astro.dyer.vanderbilt.edu)
Tue, 22 Dec 1998 21:50:15 -0600 (CST)


Graham,

I am posting the private help in solving the IDE/SCSI CDRom for general
public info..........

******************************

Date: Tue, 22 Dec 1998 15:04:47 -0800
From: Graham TerMarsch <gtermars@home.com>
To: "Andre M. Hedrick" <hedrick@Astro.Dyer.Vanderbilt.Edu>
Subject: Re: Get Your Hot Fresh Proposed IDE-Updates.......

"Andre M. Hedrick" wrote:
> Recompile but skip this option ::
> 'Use DMA by default when available' CONFIG_IDEDMA_AUTO
>
> Add to the append line in lilo.conf
>
> ide0=dma
>
> This should have ide0 default to (U)DMA and make ide1 revert to PIO.

Obviously I didn't appreciate this information enough until I ripped the
machine apart and put the Toshiba over onto the secondary channel. As one
would expect, I had tons of problems with 'Use DMA by default...' enabled.
And, after making the change you outlined above, it all works like a charm.
Got both the CD and the burner working, and UDMA support for the HD on the
primary channel.

Many thanks for bearing through my questions and for taking the time to work
through this with me Andre. Happy holidays!!!

--
Graham TerMarsch

******************************

On Tue, 15 Dec 1998, Graham TerMarsch wrote:

> Perhaps someone else out there in the enlightened world of Linux Kernel > development can help me figure this one out. I've got 2 CD-Roms installed in > this machine right now; a Toshiba XM-6202B and a Panasonic CW-7582 Writer. > I've managed to get the IDE/SCSI driver working, and can access the Panasonic > writer beautifully, works like a charm. However, whenever I try to do > anything with the Toshiba drive mount or read raw data, it kills the machine. > Playing audio CDs works fine in the Toshiba, but I can't access it as a CD-Rom > any more. Yes, I've tried accessing it as any combination of /dev/hdb, sg0, > sr0, scd0 and none of them worked. I do end up with the following information > dumped into my /var/log/messages file, I'm hoping someone can help me figure > out why this thing isn't working any more (it works fine if I recompiled > _without_ ide-scsi emulation). Currently running 2.1.131-ac11, but have had > this problem on all kernels since 2.1.28 (which was the first kernel I ever > tried running ide-scsi on). > > As for other info on this machine, it's a K6 233Mhz, running on an Asus P5A-B > motherboard. I've also got the ALI15x3 UDMA patch installed, and have > /dev/hda running in UDMA mode. Toshiba used to be /dev/hdb, and the Panasonic > writer used to be /dev/hdc.

Please note that Graham reports that the new ALI UDMA updates.....

****************************** <snip> Can totally understand that. I've found the ALI driver to give me a nice boost in performance on this drive though; from 8.3MB/s up to about 12.5MB/s. Talked to the manufacturer of the drive about something else and had mentioned this when I spoke with them and they were quite impressed. Response was something like, "Wow! That's great performance, you're not running Windows are you?". :)

******************************

> sr0: disc change detected. > scsi : aborting command due to timeout : pid 408, scsi0, channel 0, > id 0, lun 0 0x28 00 00 00 00 10 00 00 01 00 > hdb: timeout waiting for DMA > hdb: irq timeout: status=0x58 { DriveReady SeekComplete DataRequest } > hdb: DMA disabled > hdb: ATAPI reset complete > hdb: irq timeout: status=0xc0 { Busy } > scsi : aborting command due to timeout : pid 408, scsi0, channel 0, > id 0, lun 0 0x28 00 00 00 00 10 00 00 01 00 > SCSI host 0 abort (pid 408) timed out - resetting > SCSI bus is being reset for host 0 channel 0. > hdb: ATAPI reset timed-out, status=0xd0 > hda: DMA disabled > ide0: reset: success > hdb: irq timeout: status=0xc0 { Busy } > hdb: status timeout: status=0xd0 { Busy } > hdb: drive not ready for command > hdb: ATAPI reset complete > SCSI CD error : host 0 id 0 lun 0 return code = 27000002 > extra data not valid Current error sr0b:00: sns = 70 0 > Raw sense data:0x70 0x00 0x00 0x00 0x00 0x00 0x00 0x0a > 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 > CD-ROM I/O error: dev 0b:00, sector 64 > isofs_read_super: bread failed, dev=0b:00, iso_blknum=16, block=16 > kmem_free: Either bad obj addr or double free (objp=c037b4c4, name=size-512)

All of this error reporting is also observed under the 'W-word' OS if you try to burn cd's with (U)DMA enable. There is a buffer under run, due to something not yet determined by me to date. This statement is based on imperical evidence and lots of skeet shooting of those little gold disk. Also I don't believe that there is enough code support for (U)DMA xfers run through the ide-scsi translator (this is what I call it). Not that I have not truly looked at the 'ide-scsi' stuff yet but should.........

> -- > Graham TerMarsch > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.rutgers.edu > Please read the FAQ at http://www.tux.org/lkml/ >

Cheers, Andre Hedrick The IDE-FNG for Linux The APC UPS Specialist for Linux

http://www.dyer.vanderbilt.edu/server/udma/ http://www.dyer.vanderbilt.edu/server/apcupsd/apcupsd-3.5.2.bin.tar.gz

You just need a bigger hammer, or learn how to swing the one you have better. (C) me.....

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/