kern/61129: atapicam / UDMA cdrom loop

Jan Stocker Jan.Stocker at t-online.de
Fri Jan 9 07:50:36 PST 2004


>Number:         61129
>Category:       kern
>Synopsis:       atapicam / UDMA cdrom loop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 09 07:50:13 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jan Stocker
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD Twoflower.intra.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Dec 31 15:16:12 CET 2003 root at Twoflower.intra.net:/usr/obj/usr/src/sys/Twoflower50 i386


	
>Description:
Booting with atapicam and atapi_dma on on my system with Traxdata CDRW 2224 Plus leads to an endless loop while checking for ATAPICAM cd1 drive.

Here are some lines i got with some additional output i created with Thomas.

acd1: WARNING - INQUIRY ... 0cbc21100 retries = 1
acd1: WARNING - INQUIRY ... 0cbc21100 retries = 0
atapi_cb: hcb at 0xcbc0f780 error=b0: (sk=0b)
dev acd1: cmd12 status 51 result 05
(probe3: ata1:0:1:0): REQUEST SENSE CDB 3 0 0 0 0 20 0
atapi_action: hcb at 0xcbc0f740: 3 0 0 0 0 20 0
acd1: WARNING - REQUEST SENSE ... 0xcbc21080 retries 1
acd1: WARNING - REQUEST SENSE ... 0xcbc21080 retries 0
atapi_cb: hcb at 0xcbc0f740 error=b0: (sk=0b)
dev acd1: cmd 03 status 51 result 05
(probe3: ata1:0:1:0): INQUIRY. CDB: 12 0 0 0 24 0
atapi_action: hcb at 0xcbc0f6c0: 12 0 0 0 24 0

this repeats from start with different base addresses all the time.

Doing some debugging leads to nothing special:

The output is from ata_completed, so i made a breakpoint and created
some steps until the ata_prtdev gives some output.... this leads to a
trace of this:

ata_completed
taskqueue_run + 0xcd
taskqueue_swi_run + 0x13
ithread_loop + 0x1d8
fork_exit + 0xB1
fork_trampoline + 0x8

in all the different output cases.... So nowhere a loop is visible into one
thread....

P.S:
The calling of ata_completed is the following

a) ata_completed failed with "WARNING - INQUIRE UDMA ICRC error (retrying request)"
b) the same as a): "WARNING - INQUIRE UDMA ICRC error (retrying request)"
c) producing no output
d) print "WARNING - SENSE UDMA ICRC error (retrying request)"
e) like d)

That's it.


P.S. This bug is on my system since september 2003.

>How-To-Repeat:
Turn on ATAPICAM
Turn on atapi_dma
Use these two drives: CDRW <CDRW2224 PLUS> at ata1-slave
                      CDROM <ASUS CD-S500/A> at ata1-master
>Fix:
	<precise description of the problem (multiple lines)>
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list