Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2007 18:45:28 -0700
From:      "Josh Carroll" <josh.carroll@gmail.com>
To:        "Thomas Quinot" <thomas@freebsd.org>
Cc:        freebsd-scsi@freebsd.org, bug-followup@freebsd.org, c47g@gmx.at
Subject:   Re: kern/103602: drive gets wedged on READ CD CAPACITY if no disc is in
Message-ID:  <8cb6106e0704241845r737dca05p50fc967a61d66677@mail.gmail.com>
In-Reply-To: <8cb6106e0704241132vfa6b312s3b4cbea0c823b796@mail.gmail.com>
References:  <8cb6106e0703261318o120c620ar6b2461802632fc01@mail.gmail.com> <8cb6106e0703262157m7fd0ae96p3bb5368af797dc6b@mail.gmail.com> <460AA9E3.4030106@samsco.org> <8cb6106e0703281531k4c5bebecp5566c64c8f458a74@mail.gmail.com> <8cb6106e0704030039if46397fvfc993d9c9e19e1fc@mail.gmail.com> <8cb6106e0704032107w457026b1t1e04ed11008af48a@mail.gmail.com> <20070424162008.GA7087@melamine.cuivre.fr.eu.org> <8cb6106e0704240929j38178df6k1b6391446c69a2ae@mail.gmail.com> <20070424165843.GD7087@melamine.cuivre.fr.eu.org> <8cb6106e0704241132vfa6b312s3b4cbea0c823b796@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > *And* you mentioned, very early in this PR, that disabling DMA
> > altogether made the problem disappear. So, let's try something: enable
> > DMA only for READ and WRITE commands (where it's most useful).
> >
> > Apparently it's not a completely unhead-of situation that some drives
> > have problems with DMA for commands other than READ and WRITE, see:
> > http://www.mail-archive.com/linux-ide@vger.kernel.org/msg05425.html
> >

I had to go back to my snapshot of -CURRENT from 4/2 (or so), as I was
getting panics with -CURRENT cvsup'd as of today.  But with the old
source, I think disabling DMA except for READ/WRITE did the trick.
When I run sg_readcap /dev/cd0 now, I get:

READ CAPACITY (10) failed, device not ready

I get this immediately with no delay! I decided to try to burn a disk
with growisofs,
which worked, though I saw the following in dmesg (I had disabled
CAMDEBUG once I knew it was working):

acd0: FAILURE - READ_BUFFER ILLEGAL REQUEST asc=0x24 ascq=0x00
acd0: FAILURE - MODE_SELECT_BIG ILLEGAL REQUEST asc=0x24 ascq=0x00
acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=0x24 ascq=0x00

The disk only burned at 6x, even though the media and drive support
16x. But that may not be related to the above at all, unless it's
related to the MODE_SELECT_BIG error?

Thanks,
Josh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cb6106e0704241845r737dca05p50fc967a61d66677>