From owner-freebsd-stable@FreeBSD.ORG Tue Feb 23 16:19:03 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A79C1065672 for ; Tue, 23 Feb 2010 16:19:03 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f223.google.com (mail-fx0-f223.google.com [209.85.220.223]) by mx1.freebsd.org (Postfix) with ESMTP id 9BC5A8FC12 for ; Tue, 23 Feb 2010 16:19:02 +0000 (UTC) Received: by fxm23 with SMTP id 23so3910335fxm.3 for ; Tue, 23 Feb 2010 08:18:59 -0800 (PST) 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=9lVfgIfaHxtDCaoClHEaetHwxF7ptB5G0IP3nPYD2Zk=; b=LUPEhVlXSA5k1FE1xoO5fWyjXd/7NXMVB2MgN2BG4OiVK0APApxi5Jf1Jb2B5C11fy 6DvsTHnQcGyW2iTfghi0171qZHgzaaIhlIldliYkfLyprF2BgafV7EIGaQORl/+3TndU F3MGzo0oHw3vUhnHh/51cQ91Sy7vuhjWTPJg4= 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=ZFi6FmEkkNK7OMQ3Br43zLSVwZi+54a0FQ372D0uNloijL5nH/MLJB/IyJRU0kg1XS lF21ALnhiaOxLZDTwx5alQXJeZbq1gaflZNLsRxIkpr0w1TjB8TNGcRbpsU65nUlYRd2 CU401afO9DJbhUsUSXWZTyV2xm/0i2PFhIisU= Received: by 10.223.77.136 with SMTP id g8mr1593302fak.10.1266941938891; Tue, 23 Feb 2010 08:18:58 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 15sm2581040fxm.8.2010.02.23.08.18.57 (version=SSLv3 cipher=RC4-MD5); Tue, 23 Feb 2010 08:18:57 -0800 (PST) Sender: Alexander Motin Message-ID: <4B83FFEF.7010509@FreeBSD.org> Date: Tue, 23 Feb 2010 18:18:55 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Harald Schmalzbauer References: <1266934981.00222684.1266922202@10.7.7.3> <4B83EFD4.8050403@FreeBSD.org> <4B83FD62.2020407@omnilan.de> In-Reply-To: <4B83FD62.2020407@omnilan.de> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@FreeBSD.org Subject: Re: ahcich timeouts, only with ahci, not with ataahci X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 16:19:04 -0000 Harald Schmalzbauer wrote: > Maybe it's helpful to you. Since I haven't seen the hang after > upgrading, although doing extensive network transfer tests, I thought it > vanished and haven't kept logs safe... Enabling verbose kernel messages may give a bit more info. >>> Kernel is from Feb. 19, so recent ahci improovements are active. >>> Controller is ICH9R with 3 Samsung F3 SpinPoints. >>> >>> Any ideas how to work arround the hangs other than using the old ahci >>> driver? >> >> Old ataahci driver wasn't using NCQ. NCQ may trigger some bugs in drive >> firmware or expose some protocol inconsistencies. I would recommend you >> to search for some errata for your drive and possibly firmware update. > > Sounds reasonable. > How can I disable NCQ with new ahci? There is no user-level control for this yet. It can be done via writing quirk for this specific device in ata_xpt.c, or via commenting setting ADA_FLAG_CAN_NCQ flag in ata_da.c, or by adding AHCI_Q_NONCQ quirk for your controller in ahci.c. > I guess if it's a HDD firmware issue with NCQ the hang shouldn't happen > when NCQ is disabled. Just for case of real I/O timeout, run full surface test with SMART. > Btw, I found camcontrol cmd ada0 -a "EF 85 00 00 00 00 00 00 00 00 00 > 00" for disabling APM and another one for disabling AAM. I did that for > my drives. Is there a wiki where we can place such valuable commands? Probably not. It is just ATA commands, taken from ATA specification, but definitely it is not very easy way. -- Alexander Motin