From: Herbert Rosmanith <kernel@wildsau.enemy.org>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: linux-kernel@vger.kernel.org,
Herbert Rosmanith <kernel@wildsau.enemy.org>
Subject: Re: cdrom: a dirty CD can freeze your system
Date: Thu, 4 May 2006 14:56:15 +0200 (MET DST) [thread overview]
Message-ID: <200605041256.k44CuFLf004425@wildsau.enemy.org> (raw)
In-Reply-To: <4459F757.8070408@tls.msk.ru>
> It's worse than that. See http://marc.theaimsgroup.com/?t=114003595500002&r=1&w=2
> and other similar reports. So far, noone cares it seems (for several years already).
woops ... fortunately, I dont have that kind of problem. my code just does:
loop {
ioctl( SG_IO - timeout=3 seconds);
write block to disk.
}
SG_IO behaves a bit more friendly.... than, say, "CDROMREAD{MODE1,MODE2,AUDIO}" does.
nevertheless, the IDE interface becomes unusable until you reboot the system.
e.g., just right now, I did:
o insert bad CD
o read it until an error occurs.
o "hdparm -w /dev/hdb" - this will turn DMA off. kernel log shows:
hdb: DMA disabled
hdb: ATAPI reset complete
o "hdparm -d 1 /dev/hdb" to reenable DMA, "hdparm /dev/hdb" to look at the
drive settings. the kernel log then shows:
hdb: irq timeout: status=0xd0 { Busy }
ide: failed opcode was: unknown
hdb: ATAPI reset complete
hdb: status error: status=0x49 { DriveReady DataRequest Error }
hdb: status error: error=0x04 { AbortedCommand }
ide: failed opcode was: unknown
hdb: drive not ready for command
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
ide: failed opcode was: unknown
hdb: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdb: request sense failure: error=0x44 { AbortedCommand LastFailedSense=0x04 }
hdparm is now in state "D" -> reboot required.
not so good, da?
kind regards,
herbert rosmanith
next prev parent reply other threads:[~2006-05-04 13:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-04 12:32 Herbert Rosmanith
2006-05-04 12:45 ` Michael Tokarev
2006-05-04 12:56 ` Herbert Rosmanith [this message]
2006-05-04 14:41 ` Joseph Cheek
2006-05-04 13:48 ` Alan Cox
2006-05-04 14:14 ` Christian Trefzer
2006-05-04 15:28 ` Alan Cox
2006-05-04 17:54 ` Christian Trefzer
2006-05-04 16:50 ` Wakko Warner
2006-05-04 17:10 ` Alan Cox
2006-05-04 17:27 ` Joshua Hudson
2006-05-04 20:47 ` Wakko Warner
2006-05-05 0:10 ` Joshua Hudson
2006-05-05 0:20 ` Wakko Warner
2006-05-04 20:56 ` kernel keeps empty CDROM(DVD)-drive "busy"; (was Re: cdrom: a dirty CD can freeze your system) Linda Walsh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200605041256.k44CuFLf004425@wildsau.enemy.org \
--to=kernel@wildsau.enemy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjt@tls.msk.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome