From owner-freebsd-current@FreeBSD.ORG Fri Oct 30 07:53:07 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B833F106566C for ; Fri, 30 Oct 2009 07:53:07 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 4302C8FC0A for ; Fri, 30 Oct 2009 07:53:06 +0000 (UTC) Received: by bwz5 with SMTP id 5so3255783bwz.3 for ; Fri, 30 Oct 2009 00:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=7RQ6y/nI6dhp+2OGCCpx1ZmTp47tavtnIeg1B/k1uxE=; b=H6VYuv0ft2IbWV5Iks02tCxOiedwYYbX7oYIEKWYrsli39obJWjjqKr6tR2GLqoVTU ExY9F0oXkYKoFI2Bhqp6QbBYG29lAIWq6rzMSSw5BRlOBgn4rj5dHo+jh9uHMcE1Uvsb b5Cwmacn9dieE1lP1Efrr8MwP9w0w+jY63ZNA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=UK8vRbCvM2L8ZIIx71D/1HAx8EUknpmhNcGVMeeHaHrhXz5dMynxsPYVsl8RvABzb7 ZHW3qF2Fx8ffB0hr7cWfU19W15xXxP+CnHgOBAC/J8pGHNs9aJVh843goKd9+RohcFMG ask2eICAvNLQuD2Nt6OlRQYpoVJVla+MQZFds= Received: by 10.103.125.23 with SMTP id c23mr485426mun.41.1256889185872; Fri, 30 Oct 2009 00:53:05 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id s11sm2603454mue.11.2009.10.30.00.53.04 (version=SSLv3 cipher=RC4-MD5); Fri, 30 Oct 2009 00:53:05 -0700 (PDT) Sender: Alexander Motin Message-ID: <4AEA9B5E.3080402@FreeBSD.org> Date: Fri, 30 Oct 2009 09:53:02 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20090901) MIME-Version: 1.0 To: "James R. Van Artsdalen" References: <4AEA624D.10602@jrv.org> In-Reply-To: <4AEA624D.10602@jrv.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: CAM/SIIS CAM_CMD_TIMEOUT hangs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 30 Oct 2009 07:53:07 -0000 James R. Van Artsdalen wrote: > I have problems with I/O hanging due to CAM/SIIS not handling the > CAM_CMD_TIMEOUT error. > Hangs happen every few hundred GB to every few TB. > The disks are behind SATA port multipliers. > > This command un-hangs the drive and lets things run again: > > # camcontrol reset all > > I assume this is sending a soft reset to the disk drive but haven't > checked yet. > > Is there a way xpt_done() or such might notice a CAM_CMD_TIMEOUT and > inject a "soft reset" request at the head of the I/O queue (to run > before the timed-out command retries)? Try my latest patch against HEAD: http://people.freebsd.org/~mav/cam-ata.20091028.patch It does hard reset after timeout, and what is important, it reinitializes PMP after reset, to re-enable it's ports back. -- Alexander Motin