From owner-freebsd-stable@FreeBSD.ORG Tue Jun 1 07:16:05 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 077BD1065673 for ; Tue, 1 Jun 2010 07:16:05 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6AD5D8FC0A for ; Tue, 1 Jun 2010 07:16:04 +0000 (UTC) Received: by fxm5 with SMTP id 5so3266935fxm.13 for ; Tue, 01 Jun 2010 00:16:03 -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:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=C2BqdDdN29U4+8NI6qtckkBYzHTrxYdp+/uqNrpLlYQ=; b=HhMgA3l8+L5WNm15Hl6u+c3rY+B/kOqn90yI8/ilH3BQ3E3pHx6f1es5TSu2OtzlUf CQ8sw/NYXxfYm1rRXC2qfGAHtEaiOe2RnqK2GW9of7AI5Rs9+pm0uhkZ3a8yHrMN+GPs jM9LHx/RLCMuw9AyLqiw8Q7kKBbT2dp98ogW8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=bWA7FNR5V2MGvLOqoARhkYNw0RB6L82WuH9NMssSLXcneIXBYkYCocPOQyVP3qwxk1 UDfblFarB8SmY0C4C/F6zgp0xQ4NKaLeOb7UOGF2avPkGL1RIn8z6/u006I32QC2jcnO WKRrklWoUQbrJs1xfh6ws+VXIOB8XEU2PzquE= Received: by 10.223.18.67 with SMTP id v3mr6531189faa.93.1275376563263; Tue, 01 Jun 2010 00:16:03 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 13sm45741389fad.19.2010.06.01.00.16.01 (version=SSLv3 cipher=RC4-MD5); Tue, 01 Jun 2010 00:16:01 -0700 (PDT) Sender: Alexander Motin Message-ID: <4C04B39D.8060503@FreeBSD.org> Date: Tue, 01 Jun 2010 10:15:41 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Phil , FreeBSD Stable References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: AHCI timeouts - 8.1-PRERELEASE 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, 01 Jun 2010 07:16:05 -0000 Hi. Phil wrote: > Is it expected behaviour that ahci performs a time-out during boot, even > though camcontrol indicates success? This is on 8.1-PRERELEASE csup'ed > today. > > I've enclosed dmesg, camcontrol and pciconf information. The timeout is > approximately 12 to 14 seconds for each connected disk-drive. If I > run with only usb devices, there are no timeouts. The following > dmesg is when I connect two HDD's on a VIA SN18000 motherboard, and > the BIOS has ahci selected, i.e. not IDE nor RAID. > > # pciconf -lv | grep -A 4 ahci > ahci0@pci0:0:15:0: class=0x010601 card=0x62871106 chip=0x62871106 > rev=0x20 hdr=0x00 > vendor = 'VIA Technologies, Inc.' > device = 'VT8251 AHCI Controller' > class = mass storage > subclass = SATA It seems like timeout during Port Multiplier probe. I don't have such chip to test it, but I can see that Linux disables PMP and NCQ support for it. You may try it in different combinations by adding to respective line in device list in the beginning of the ahci.c quirks AHCI_Q_NOPMP and AHCI_Q_NONCQ. Instead of AHCI_Q_NONCQ (if it is needed for you) you may try to set AHCI_Q_EDGEIS. Report me please about the result. -- Alexander Motin