From owner-freebsd-current@FreeBSD.ORG Sat Sep 20 12:53:16 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F0CA16A4BF; Sat, 20 Sep 2003 12:53:16 -0700 (PDT) Received: from melusine.cuivre.fr.eu.org (melusine.cuivre.fr.eu.org [62.212.105.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD8C343FEC; Sat, 20 Sep 2003 12:53:13 -0700 (PDT) (envelope-from thomas@cuivre.fr.eu.org) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id C9FB12A42B; Sat, 20 Sep 2003 21:53:11 +0200 (CEST) Date: Sat, 20 Sep 2003 21:53:11 +0200 From: Thomas Quinot To: deischen@FreeBSD.ORG, yosimoto@waishi.jp Message-ID: <20030920195311.GA97748@melusine.cuivre.fr.eu.org> References: <200309200755.h8K7t4fA049614@spider.deepcore.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4i X-message-flag: WARNING! Using Outlook can damage your computer. cc: Soren Schmidt cc: current@FreeBSD.ORG Subject: Re: ATAng no good for me/REQUEST_SENSE recovered from missing interrupt X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2003 19:53:16 -0000 Le 2003-09-20, Daniel Eischen écrivait : > No, using latest sources, with or without atapicam, does > not solve the problem. It still hangs. Please try the patch below, it should at least work around the problem. > http://people.freebsd.org/~deischen/ata_hang.091903 Interesting, the last 2 lines are : ata0: spurious interrupt - status=0x50 error=0x00 acd0: WARNING - REQUEST_SENSE recovered from missing interrupt so I'd suspect there is some race condition between the interrupt and the REQUEST_SENSE command. Søren, shouldn't ata_interrupt lock the channel before copying ch->running? Thomas. Index: atapi-cam.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/atapi-cam.c,v retrieving revision 1.23 diff -u -r1.23 atapi-cam.c --- atapi-cam.c 19 Sep 2003 16:25:44 -0000 1.23 +++ atapi-cam.c 20 Sep 2003 19:29:41 -0000 @@ -561,6 +561,7 @@ #endif if (hcb_status != 0) { csio->scsi_status = SCSI_STATUS_CHECK_COND; +#if 0 if ((csio->ccb_h.flags & CAM_DIS_AUTOSENSE) == 0) { int8_t ccb[16] = { ATAPI_REQUEST_SENSE, 0, 0, 0, sizeof(struct atapi_sense), 0, 0, 0, 0, 0, 0, @@ -572,6 +573,7 @@ csio->ccb_h.status |= CAM_AUTOSNS_VALID; } } +#endif free_hcb_and_ccb_done(hcb, CAM_SCSI_STATUS_ERROR); } else { -- Thomas.Quinot@Cuivre.FR.EU.ORG