From owner-freebsd-drivers@FreeBSD.ORG Mon Jun 6 11:29:52 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 C91C7106564A for ; Mon, 6 Jun 2011 11:29:52 +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 5460A8FC08 for ; Mon, 6 Jun 2011 11:29:51 +0000 (UTC) Received: by fxm11 with SMTP id 11so3492734fxm.13 for ; Mon, 06 Jun 2011 04:29:51 -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=QT5qwaWkps276x6t91VE4buLmEeHjYn/35w2PcLykDg=; b=I2n0kZ/ATY36DVy++wKzZpTQujGExx2/q2o7PcDKtS6aUfu2XoLpfcFw8Fmovn97tE uDzIX6P9SJJ2qNzyUmcjhSWeOmhdZ86MHOkDbdBQIwxA/UwB5Nm1FmNE2mpEvFeByuOV AMUuQgS9E4jt6hJ+wy7tvqO6hLfjYQUKgaLH8= 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=lWR+Mi4Z7QUVfy45rVbpOc51KjgaITwpoAcxNWpxP55FpedmUj3ubFgMzja/4KOsR9 qsgkHHBtTIabvvUJwDInNueYfOdisjVNrMX8lG4zPJvMNA/lR5M+jNH58R6YZkcj2VnN M+eR3sft/5xsCN9FDHALPfQevkA++0DX99/4g= Received: by 10.223.6.198 with SMTP id a6mr455056faa.130.1307359791150; Mon, 06 Jun 2011 04:29:51 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id x15sm1326305fah.46.2011.06.06.04.29.48 (version=SSLv3 cipher=OTHER); Mon, 06 Jun 2011 04:29:49 -0700 (PDT) Sender: Alexander Motin Message-ID: <4DECBA08.7050709@FreeBSD.org> Date: Mon, 06 Jun 2011 14:29:12 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Dieter BSD References: <20110605225033.198080@gmx.com> In-Reply-To: <20110605225033.198080@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: Mon, 06 Jun 2011 11:29:52 -0000 Dieter BSD wrote: > Testing the 3 TB disk with the 3132 controller went fine. > Smartctl -a works. Reading and writing with dd work. > Switched it back to the JMB363 controller. > > Smartctl -a does not work. > Still says 150 MB/s rather than 300. > > It would be nice if hint.ahcich.1.sata_rev could be set > with a sysctl to avoid the need for a reboot. > > Reads smaller than about 90KB appears to always work as expected. > Reads larger than about 90KB sometimes works fine, sometimes are > very slow and give timeout error: > > dd if=/dev/ada11 bs=1m count=1 > /dev/null > > 1048576 bytes transferred in 0.008948 secs (117184368 bytes/sec) > 1048576 bytes transferred in 0.008901 secs (117802714 bytes/sec) > 1048576 bytes transferred in 0.009025 secs (116184459 bytes/sec) > 1048576 bytes transferred in 0.009055 secs (115802062 bytes/sec) > 1048576 bytes transferred in 0.008970 secs (116897815 bytes/sec) > 1048576 bytes transferred in 0.009054 secs (115814260 bytes/sec) > 1048576 bytes transferred in 60.234137 secs (17408 bytes/sec) > > ahcich1: Timeout on slot 0 > ahcich1: is 00000000 cs 00000000 ss 00000001 rs 00000001 tfd 50 serr 00000000 > > The larger the read the more likely it is to timeout. > > Behaviour is the same with hint.ahcich.1.sata_rev="1" or ="2" I have no ideas. I still think it is JMicron's PHY level issue. -- Alexander Motin