public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Con Kolivas <kernel@kolivas.org>
To: Dave Jones <davej@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: IDE CD problems in 2.6.13rc6
Date: Sun, 14 Aug 2005 10:30:00 +1000	[thread overview]
Message-ID: <200508141030.00382.kernel@kolivas.org> (raw)
In-Reply-To: <200508141026.10734.kernel@kolivas.org>

On Sun, 14 Aug 2005 10:26, Con Kolivas wrote:
> On Sun, 14 Aug 2005 09:29, Dave Jones wrote:
> > I've noticed this week whilst trying to encode a bunch
> > of audio CDs to oggs that my boxes running the latest
> > kernels are having serious issues, whereas 2.6.12 seems
> > to cope just fine.
> >
> > The symptoms vary. On some of my machines just inserting
> > an audio CD makes the box instantly lock up.
> > If I boot with the same CD in the drive, sound-juicer
> > can read it just fine. When I get to the next CD, I have
> > to reboot again, or it locks up.
> >
> > On another box, it gets stuck in a loop where it
> > just prints out..
> >
> > hdc: irq timeout: status=0xd0 { Busy }    (This line sometimes has
> > status=0xc0) ide: failed opcode was: unknown
> >
> > The net result is that I've not got a single box that
> > will read audio CDs without doing something bad, and I've
> > tried it on several quite diverse systems.
> >
> >
> > I'll try and narrow down over the next few days when this
> > started happening, but IDE / CD folks may have some better
> > ideas about which changes were suspicious.
>
> Ok I just started noticing unusual things on my IDE DVD-RW as well,
> presumably related, on 2.6.13-rc6. Putting in a cd and trying to read it
> will cause huge delays and then error out with:
>
> ide-cd: cmd 0x28 timed out
> hdc: DMA timeout retry
> hdc: timeout waiting for DMA
> hdc: status timeout: status=0xd0 { Busy }
> ide: failed opcode was: unknown
> hdc: drive not ready for command
> hdc: ATAPI reset complete
>
> then it will read fine. If I start another read it goes through the same
> cycle. Forcing dma *off* with hdparm fixes the problem and all subsequent
> accesses don't have this pause, however this was never an issue on previous
> kernels with dma working fine.

> hdparm info of hdc:

>         DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4

I should also point out the above *udma2 is interesting because:
hdparm /dev/hdc

/dev/hdc:
 HDIO_GET_MULTCOUNT failed: Invalid argument
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)

This *thinks* that dma is off yet querying hdc says it's in udma2 mode and the 
actual performance very much suggests to me that dma is enabled as it doesn't 
have those awful lags that dma off dvd access usually has.

Even though it apparently works fine I do get these instead though:
hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdc: drive_cmd: error=0x04 { AbortedCommand }
ide: failed opcode was: 0xec
hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdc: drive_cmd: error=0x04 { AbortedCommand }
ide: failed opcode was: 0xec

blah...


Con

  reply	other threads:[~2005-08-14  2:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-13 23:29 IDE CD problems in 2.6.13rc6 Dave Jones
2005-08-14  0:26 ` Con Kolivas
2005-08-14  0:30   ` Con Kolivas [this message]
2005-08-14 13:53     ` Alan Cox
2005-08-14 11:35 ` Bartlomiej Zolnierkiewicz
2005-08-14 13:46   ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2005-08-14 17:43 Voluspa
2005-08-14 19:30 Voluspa
2005-08-14 19:55 Nick Warne
2005-08-14 20:10 Nick Warne
2005-08-14 22:51 Voluspa
2005-08-15  0:37 ` Alan Cox
2005-08-15  0:53   ` Voluspa
2005-08-15 18:30 Nick Warne

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=200508141030.00382.kernel@kolivas.org \
    --to=kernel@kolivas.org \
    --cc=davej@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /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