From owner-freebsd-drivers@FreeBSD.ORG Mon May 30 17:39:40 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B03201065672 for ; Mon, 30 May 2011 17:39:40 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by mx1.freebsd.org (Postfix) with SMTP id 2493D8FC0C for ; Mon, 30 May 2011 17:39:40 +0000 (UTC) Received: (qmail 6541 invoked by uid 0); 30 May 2011 17:39:38 -0000 Received: from 67.206.163.100 by rms-us010.v300.gmx.net with HTTP Content-Type: text/plain; charset="utf-8" Date: Mon, 30 May 2011 17:39:34 +0000 From: "Dieter BSD" Message-ID: <20110530173936.95200@gmx.com> MIME-Version: 1.0 To: mav@freebsd.org X-Authenticated: #74169980 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: buPRdQcWmCvxdUmKXTE2D8E7MTE2NYkj Cc: freebsd-drivers@freebsd.org Subject: Re: Siis(4) does not play well with others! :-( X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2011 17:39:40 -0000 > My todo list: > 1) Build new kernel with the latest siis(4) and achi(4) bits. > 2) Test if a read error causes achi(4) to lock out Ethernet for too long. > 3) Test with achi(4) with and without a port multiplier. > 3) Test with siis(4) with and without a port multiplier. 5) Learn how to count to 4.  :-) 6) Learn how to spell ahci.  :-) Built a new kernel, tested ahci without PM and siis with PM. Neither driver created a problem.  Hopefully this is due to your improvements (thank you) rather than the machine not being as busy, random chance, etc.  Maybe I should try the previous kernel and see if the problem is repeatable. FYI here's what I'm getting now: siisch3: siis_wait_ready() calling DELAY(1000) siisch3: siis_wait_ready() calling DELAY(1000) siisch3: Error while READ LOG EXT siisch3: siis_wait_ready() calling DELAY(1000) siisch3: SIIS reset... siisch3: siis_sata_connect() calling DELAY(100) siisch3: SATA connect time=100us status=00000123 siisch3: SIIS reset done: devices=00000001 siisch3: siis_wait_ready() calling DELAY(1000) siisch3: siis_wait_ready() calling DELAY(1000) siisch3: Error while READ LOG EXT siisch3: siis_wait_ready() calling DELAY(1000) siisch3: SIIS reset... siisch3: siis_sata_connect() calling DELAY(100) siisch3: SATA connect time=100us status=00000123 siisch3: SIIS reset done: devices=00000001 siisch3: siis_wait_ready() calling DELAY(1000) ----- Update: This reply has been sitting around for a couple weeks waiting for me to have time to post it.  I think the disk may have died completely, so I probably will not be able to complete the testing. From owner-freebsd-drivers@FreeBSD.ORG Fri Jun 3 01:57:05 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A780F1065672 for ; Fri, 3 Jun 2011 01:57:05 +0000 (UTC) (envelope-from dieterbsd@engineer.com) Received: from mailout-us.gmx.com (mailout-us.gmx.com [74.208.5.67]) by mx1.freebsd.org (Postfix) with SMTP id 268808FC19 for ; Fri, 3 Jun 2011 01:57:05 +0000 (UTC) Received: (qmail 7885 invoked by uid 0); 3 Jun 2011 01:57:03 -0000 Received: from 67.206.161.211 by rms-us007.v300.gmx.net with HTTP Content-Type: text/plain; charset="utf-8" Date: Fri, 03 Jun 2011 01:56:59 +0000 From: "Dieter BSD" Message-ID: <20110603015700.198120@gmx.com> MIME-Version: 1.0 To: mav@freebsd.org X-Authenticated: #74169980 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: WA3RdVJ4x3+iKRjNCmJp2c58amthcxsF Cc: freebsd-drivers@freebsd.org Subject: ahci(4) doesn't work with Hitachi 3TB drive X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2011 01:57:05 -0000 FreeBSD 8.2 amd64 ahci(4) and siis(4) were updated 2011-05-15. Connected a shiny new Hitachi 3 TB disk to JMB363 (no PM): ada11 at ahcich1 bus 0 scbus5 target 0 lun 0 ada11: ATA-8 SATA 3.x device ada11: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes) ada11: Command Queueing enabled ada11: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) Should connect at 300 MB/s but says 150. smartctl is not happy: /dev/ada11: Unable to detect device type Smartctl: please specify device type with the -d option. Use smartctl -h to get a usage summary Attempt to read disk with dd does not work. ahcich1: Timeout on slot 0 ahcich1: is 00000000 cs 00000000 ss 00000001 rs 00000001 tfd 50 serr 00000000 ahcich1: Timeout on slot 0 ahcich1: is 00000000 cs 00000000 ss 00000001 rs 00000001 tfd 50 serr 00000000 ... kill -9 dd process, wait for ahci to eventually give up, unplug disk from JMB363, plug disk into 3132 controller via 3726 PM (ada11:ahcich1:0:0:0): lost device (ada11:ahcich1:0:0:0): removing device entry siisch3: SNTF 0x8000 siisch3: siis_wait_ready() calling DELAY(1000) ada11 at siisch3 bus 0 scbus3 target 2 lun 0 ada11: ATA-8 SATA 3.x device ada11: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada11: Command Queueing enabled ada11: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) Siis talks to it at 300 MB/s, smartctl works, and dd is reading from it. Ahci talks to Hitachi 2 TB okay, not sure what is different with 3 TB. From owner-freebsd-drivers@FreeBSD.ORG Fri Jun 3 05:49:41 2011 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5820A106566C for ; Fri, 3 Jun 2011 05:49:41 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id D39FC8FC15 for ; Fri, 3 Jun 2011 05:49:40 +0000 (UTC) Received: by bwz12 with SMTP id 12so2288047bwz.13 for ; Thu, 02 Jun 2011 22:49:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature: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=wRegNfhfCi+KJJESBo0Teuyf3fAjstOYXWlo616Fqi4=; b=H/Aj6wzfuhlaTrNoXlhraMmzKv/RKkB0LoW7O2YItNZx1/ec+zJTd4sHwqcMAxXG3J vVJy/hjqMiP5dwg95deg629kaSsm3DrbUl4YRjh+rIhVgdWdKRZPdUGPfA5lcDXhY/nv t8p7f6flxscMgV8S016W/4AZyFLqGnJjpwLRY= 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=mAb7rqd7aF4q/DqxnGTcCn1psJbBQ5yuxbfbMzSyFAAXEOJEFp4Q4vH1cfTFqWc6jq 4GS9/A9+2n5Kloa9i3O7yNCifbjR2uElq9y1lWW81MjkXQULcsXoC+jUb4p0Rjz+ZczJ 2opTzXnhbPm7be2kMEiLVgvXVA3crGCvp/EfU= Received: by 10.204.126.14 with SMTP id a14mr1522124bks.157.1307080179289; Thu, 02 Jun 2011 22:49:39 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id af13sm988204bkc.19.2011.06.02.22.49.37 (version=SSLv3 cipher=OTHER); Thu, 02 Jun 2011 22:49:38 -0700 (PDT) Sender: Alexander Motin Message-ID: <4DE875CE.1030200@FreeBSD.org> Date: Fri, 03 Jun 2011 08:49:02 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Dieter BSD References: <20110603015700.198120@gmx.com> In-Reply-To: <20110603015700.198120@gmx.com> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-drivers@freebsd.org Subject: Re: ahci(4) doesn't work with Hitachi 3TB drive X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2011 05:49:41 -0000 Dieter BSD wrote: > FreeBSD 8.2 amd64 > ahci(4) and siis(4) were updated 2011-05-15. > > > > > Connected a shiny new Hitachi 3 TB disk to JMB363 (no PM): > > ada11 at ahcich1 bus 0 scbus5 target 0 lun 0 > ada11: ATA-8 SATA 3.x device > ada11: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes) > ada11: Command Queueing enabled > ada11: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) > > Should connect at 300 MB/s but says 150. > > smartctl is not happy: > > /dev/ada11: Unable to detect device type > Smartctl: please specify device type with the -d option. > Use smartctl -h to get a usage summary > > Attempt to read disk with dd does not work. > > ahcich1: Timeout on slot 0 > ahcich1: is 00000000 cs 00000000 ss 00000001 rs 00000001 tfd 50 serr 00000000 > ahcich1: Timeout on slot 0 > ahcich1: is 00000000 cs 00000000 ss 00000001 rs 00000001 tfd 50 serr 00000000 > ... > > kill -9 dd process, wait for ahci to eventually give up, > unplug disk from JMB363, plug disk into 3132 controller via 3726 PM > > (ada11:ahcich1:0:0:0): lost device > (ada11:ahcich1:0:0:0): removing device entry > siisch3: SNTF 0x8000 > siisch3: siis_wait_ready() calling DELAY(1000) > ada11 at siisch3 bus 0 scbus3 target 2 lun 0 > ada11: ATA-8 SATA 3.x device > ada11: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada11: Command Queueing enabled > ada11: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) > > Siis talks to it at 300 MB/s, smartctl works, and dd is reading from it. > > Ahci talks to Hitachi 2 TB okay, not sure what is different with 3 TB. Is the 2TB disk is also SATA3? It looks like some link misnegotiation. You may try to manually limit JMicron's port to SATA1 to simplify negotiation and see what happen. -- Alexander Motin