From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 9 07:50:35 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D199D16A4CE for ; Fri, 9 Jan 2004 07:50:35 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70D0C43D6A for ; Fri, 9 Jan 2004 07:50:13 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i09FoDFR026068 for ; Fri, 9 Jan 2004 07:50:13 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i09FoDfQ026067; Fri, 9 Jan 2004 07:50:13 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 9 Jan 2004 07:50:13 -0800 (PST) Resent-Message-Id: <200401091550.i09FoDfQ026067@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Stocker Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BED916A4CE for ; Fri, 9 Jan 2004 07:44:22 -0800 (PST) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E3B643D31 for ; Fri, 9 Jan 2004 07:44:19 -0800 (PST) (envelope-from Jan.Stocker@t-online.de) Received: from fwd07.aul.t-online.de by mailout03.sul.t-online.com with smtp id 1Aeyo6-0006Ha-01; Fri, 09 Jan 2004 16:44:18 +0100 Received: from Twoflower.intra.net (Ek8pN4ZHQeP5mM7WGd65-RfkInRvceTirynh6TLVTLcGkKpM2cC8k2@[217.225.123.32]) by fwd07.sul.t-online.com with esmtp id 1Aeyno-0txB0y0; Fri, 9 Jan 2004 16:44:00 +0100 Received: (from jstocker@localhost) by Twoflower.intra.net (8.12.10/8.12.10/Submit) id i09FhxZ7001121; Fri, 9 Jan 2004 16:43:59 +0100 (CET) (envelope-from jstocker) Message-Id: <200401091543.i09FhxZ7001121@Twoflower.intra.net> Date: Fri, 9 Jan 2004 16:43:59 +0100 (CET) From: Jan.Stocker@t-online.de (Jan Stocker) To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/61129: atapicam / UDMA cdrom loop X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jan Stocker List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2004 15:50:36 -0000 >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@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@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@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@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@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 at ata1-slave CDROM at ata1-master >Fix: >Release-Note: >Audit-Trail: >Unformatted: