Re: CD-ROM unit attention errors

Andre M. Hedrick (hedrick@astro.dyer.vanderbilt.edu)
Fri, 25 Sep 1998 14:24:32 -0500 (CDT)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--998314481-939358671-906751458=:22815
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.3.96.980925142420.22815E@Astro.Dyer.Vanderbilt.Edu>

On Fri, 25 Sep 1998, George wrote:

> It's a Redhat 5.0 CD I was browsing through picking RPMs from:
>
> PIIX3: IDE controller on PCI bus 00 dev 39
> PIIX3: not 100% native mode: will probe irqs later
> ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio
> ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
> hda: Maxtor 71000 A, ATA DISK drive
> hdb: CD820E.1v0789108, ATAPI CDROM drive
> hdc: IBM-DTTA-371010, ATA DISK drive
> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> ide1 at 0x170-0x177,0x376 on irq 15
> hda: Maxtor 71000 A, 958MB w/64kB Cache, CHS=1946/16/63, DMA
> hdc: IBM-DTTA-371010, 9641MB w/465kB Cache, CHS=19590/16/63, (U)DMA
> Partition check:
> hda: hda1 hda2 hda3 hda4
> hdc: hdc1 hdc2 hdc3 hdc4
> [..]
> hdb: ATAPI 8X CDROM drive, 240kB Cache
> Uniform CDROM driver Revision: 2.14
> VFS: Disk change detected on device 03:40
> ISO 9660 Extensions: RRIP_1991A
> hdb: timeout waiting for DMA
> hdb: irq timeout: status=0xd0 { Busy }
> hdb: DMA disabled
> hdb: ATAPI reset complete
> ATAPI device hdb:
> Error: Unit attention -- (Sense key=0x06)
> Power on, reset or bus device reset occurred -- (asc=0x29, ascq=0x00)
> hdb: irq timeout: status=0xd0 { Busy }
> hdb: ATAPI reset complete
> end_request: I/O error, dev 03:40 (hdb), sector 860
> ATAPI device hdb:
> Error: Unit attention -- (Sense key=0x06)
> Power on, reset or bus device reset occurred -- (asc=0x29, ascq=0x00)
> hdb: irq timeout: status=0xd0 { Busy }
> hdb: ATAPI reset complete
> ATAPI device hdb:
> Error: Unit attention -- (Sense key=0x06)
> Power on, reset or bus device reset occurred -- (asc=0x29, ascq=0x00)
> hdb: irq timeout: status=0xd0 { Busy }
> hdb: ATAPI reset complete
> ATAPI device hdb:
> Error: Unit attention -- (Sense key=0x06)
> Power on, reset or bus device reset occurred -- (asc=0x29, ascq=0x00)
>
> Anything worth worrying about? First time the DMA has failed on it.

I believe this is the first time that it has be sensed and attemptd to
be default enabled. I am curious.......step back to 2.1.121 and apply
this patch against hdparm-3.3. Then call hdparm as follows and post the
report. I am waiting to see if dma was ever set to enable.

hdparm -v /dev/hdb

Cheers,
Andre Hedrick

--998314481-939358671-906751458=:22815
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="hdparm.udma.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96.980925142418.22815C@Astro.Dyer.Vanderbilt.Edu>
Content-Description:

LS0tIGhkcGFybS5jLm9yaWcJRnJpIEZlYiAyOCAxODowNzo0OSAxOTk3DQor
KysgaGRwYXJtLmMJVGh1IEF1ZyAgNiAwMTo0NTozMSAxOTk4DQpAQCAtMTYs
NiArMTYsOSBAQA0KICNpbmNsdWRlIDxzeXMvdGltZXMuaD4NCiAjaW5jbHVk
ZSA8c3lzL3R5cGVzLmg+DQogI2luY2x1ZGUgPGxpbnV4L2hkcmVnLmg+DQor
LyoNCisjaW5jbHVkZSAiLi4vaGRyZWcuaCINCisqLw0KICNpbmNsdWRlIDxs
aW51eC9mcy5oPg0KICNpbmNsdWRlIDxsaW51eC9tYWpvci5oPg0KIA0KQEAg
LTkyLDkgKzk1LDQ0IEBADQogCXByaW50ZigiJXMlZCglcykiLCBwcmVmaXgs
IGksIChpID4gbWF4aSkgPyAiPyIgOiBzW2ldKTsNCiB9DQogDQotc3RhdGlj
IHZv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3IoIiBIRElPX0RSSVZFX0NNRCBm
YWlsZWQiKTsNCiAJfQ0K
--998314481-939358671-906751458=:22815--

-
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/