From nobody@FreeBSD.org  Sun Jul 10 22:08:41 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DC72616A41C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 10 Jul 2005 22:08:41 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B0CDC43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 10 Jul 2005 22:08:41 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j6AM8f0J028513
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 10 Jul 2005 22:08:41 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j6AM8fv4028496;
	Sun, 10 Jul 2005 22:08:41 GMT
	(envelope-from nobody)
Message-Id: <200507102208.j6AM8fv4028496@www.freebsd.org>
Date: Sun, 10 Jul 2005 22:08:41 GMT
From: Serg45 <ss45@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD does not work with my ATAPI CDROM if atapi.dma=1
X-Send-Pr-Version: www-2.3

>Number:         83236
>Category:       kern
>Synopsis:       [ata] FreeBSD does not work with my ATAPI CDROM if atapi.dma=1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 10 22:10:21 GMT 2005
>Closed-Date:    Wed Jan 04 21:47:40 GMT 2006
>Last-Modified:  Wed Jan 04 21:47:40 GMT 2006
>Originator:     Serg45
>Release:        5.4
>Organization:
-
>Environment:
>Description:
FreeBSD 5.3 did not boot on my EliteGroup i-Buddie (Transmeta Crusoe 5600 +
ALi M5229 PCI Bus Muster IDE + Sony DVD/CD-RW CRX830E) until I entered safe
mode or set atapi.dma=0 before booting the kernel. 

FreeBSD 5.4 boots and works, but CD operations are very slow (ATAPI DMA is
turned off by default, as I can see). If I try turn it on (in loader.conf
or later, by atacontrol), CDROM stops responding and "Failure read_big
medium error asc=0x00 ascq=0x00 error=4(aborted)" appears on the screen...
>How-To-Repeat:
Get motherboard with ALi chipset and set atapi.dma=1
>Fix:
Sorry, no idea...
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Fri Jul 29 22:02:12 GMT 2005 
State-Changed-Why:  
Don't do that then.  A lot of CDROM hardware cannot handle DMA. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83236 
State-Changed-From-To: closed->open 
State-Changed-By: kris 
State-Changed-When: Thu Aug 4 20:12:17 GMT 2005 
State-Changed-Why:  
Reopen and assign to ATA maintainer after submitter clarified that 
ATAPI DMA works on Linux and Windows 98 on the same hardware. 


Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: kris 
Responsible-Changed-When: Thu Aug 4 20:12:17 GMT 2005 
Responsible-Changed-Why:  
Reopen and assign to ATA maintainer after submitter clarified that 
ATAPI DMA works on Linux and Windows 98 on the same hardware. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83236 

From: Kris Kennaway <kris@obsecurity.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/83236: FreeBSD does not work with my ATAPI CDROM if atapi.dma=1
Date: Thu, 4 Aug 2005 16:15:56 -0400

 Adding to audit trail
 
 ----- Forwarded message from ss 45 <ss45@mail.ru> -----
 
 X-Original-To: kkenn@localhost
 Delivered-To: kkenn@localhost.obsecurity.org
 X-Original-To: kris@FreeBSD.org
 Delivered-To: kris@FreeBSD.org
 From: ss 45 <ss45@mail.ru>
 To: Kris Kennaway <kris@FreeBSD.org>
 Subject: Re[2]: kern/83236: FreeBSD does not work with my ATAPI CDROM if atapi.dma=1
 X-Mailer: mPOP Web-Mail 2.19
 X-Originating-IP: [212.58.206.220]
 Date: Thu, 04 Aug 2005 23:18:29 +0400
 In-Reply-To: <200507292202.j6TM2VIw070777@freefall.freebsd.org>
 Reply-To: ss 45 <ss45@mail.ru>
 X-UIDL: *g~"!k8$"!g(W"!Y&g!!
 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, version=0.94.14
 
Thank you very much for your reply.

The reason for writing my post was that any Linux (I tried 7 different
Linux versions with hdparm) and any Windows (from 98 to XP, with Device
Manager) work very well with CDROM DMA set. I could see speed and accuracy
increase in burning CDs and watching DVDs...

Sergey
 
State-Changed-From-To: open->analyzed 
State-Changed-By: sos 
State-Changed-When: Mon Aug 22 12:40:59 GMT 2005 
State-Changed-Why:  
You should try this on a fresh -current. If that still doesn't work I have 
no idea why. I'll need HW that fails here in the lab to test/instrument to  
figure out whats going on. 
At any rate, ATAPI DMA is something you can get to work on some subset of the 
devices out there, but no all subsets at once, sad but true.. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=83236 
State-Changed-From-To: analyzed->closed 
State-Changed-By: sos 
State-Changed-When: Wed Jan 4 21:46:47 UTC 2006 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83236 
>Unformatted:
