NetBSD Problem Report #8858

Received: (qmail 21209 invoked from network); 23 Nov 1999 03:42:17 -0000
Message-Id: <199911230342.WAA05338@zygorthian-space-raiders.mit.edu>
Date: Mon, 22 Nov 1999 22:42:12 -0500 (EST)
From: "Charles M. Hannum" <mycroft@MIT.EDU>
Reply-To: "Charles M. Hannum" <mycroft@MIT.EDU>
To: gnats-bugs@gnats.netbsd.org
Subject: Need ATAPI-layer hack for DVD commands
X-Send-Pr-Version: 3.95

>Number:         8858
>Category:       kern
>Synopsis:       Need ATAPI-layer hack for DVD commands
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 22 19:45:00 +0000 1999
>Closed-Date:    Thu Feb 28 16:37:53 +0000 2002
>Last-Modified:  Thu Feb 28 16:37:53 +0000 2002
>Originator:     Charles M. Hannum
>Release:        -current as of 19991117
>Organization:
	The NetBSD Mission
>Environment:
	i386, Toshiba 6x or Hitachi 2x DVD-ROM drive

>Description:
	With some DVD-ROM drives (at least the two mentioned, probably
	others), the DVD commands do not work correctly in DMA mode.
	After timing out a few times and falling back to PIO mode,
	they eventually work.

	We need to do some kluge to make these execute in PIO-only
	mode.  I'm not sure offhand whether they are strictly non-DMA,
	or simply require special handling because they do not use
	multiple of 512 transfers, though I suspect the former.

>How-To-Repeat:
	Use the recently added DVD commands on most drives, and ponder
	for a couple of weeks why they always time out at least once
	per boot before working.

>Fix:
	Not supplied.

>Release-Note:
>Audit-Trail:

From: Manuel Bouyer <bouyer@antioche.lip6.fr>
To: "Charles M. Hannum" <mycroft@MIT.EDU>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/8858: Need ATAPI-layer hack for DVD commands
Date: Sun, 28 Nov 1999 23:19:11 +0100

 On Mon, Nov 22, 1999 at 10:42:12PM -0500, Charles M. Hannum wrote:
 > >Description:
 > 	With some DVD-ROM drives (at least the two mentioned, probably
 > 	others), the DVD commands do not work correctly in DMA mode.
 > 	After timing out a few times and falling back to PIO mode,
 > 	they eventually work.
 > 
 > 	We need to do some kluge to make these execute in PIO-only
 > 	mode.  I'm not sure offhand whether they are strictly non-DMA,
 > 	or simply require special handling because they do not use
 > 	multiple of 512 transfers, though I suspect the former.

 What IDE controller do you have ? Any chance to try it on another IDE
 controller ?
 I've seen the same CD drive behave differently depending on the controller
 (but a controller which doesn't support ATAPI DMA with one drive can with
  another one).
 Maybe it's the controller which has problems with some transfer length ...
 I don't know how to fix this. Unconditionally disabling DMA for non-512
 transfers is a bit agressive.

 --
 Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
 --
State-Changed-From-To: open->closed 
State-Changed-By: bouyer 
State-Changed-When: Thu Feb 28 08:36:43 PST 2002 
State-Changed-Why:  
Fixed by atapi_wdc.c 1.39 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.