From owner-freebsd-stable@FreeBSD.ORG Sun Feb 24 00:13:09 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 54300480 for ; Sun, 24 Feb 2013 00:13:09 +0000 (UTC) (envelope-from jdc@koitsu.org) Received: from qmta01.emeryville.ca.mail.comcast.net (qmta01.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:16]) by mx1.freebsd.org (Postfix) with ESMTP id 24371B4E for ; Sun, 24 Feb 2013 00:13:09 +0000 (UTC) Received: from omta01.emeryville.ca.mail.comcast.net ([76.96.30.11]) by qmta01.emeryville.ca.mail.comcast.net with comcast id 3rbB1l00B0EPchoA10D8NZ; Sun, 24 Feb 2013 00:13:08 +0000 Received: from koitsu.strangled.net ([67.180.84.87]) by omta01.emeryville.ca.mail.comcast.net with comcast id 40D71l00R1t3BNj8M0D8NT; Sun, 24 Feb 2013 00:13:08 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id BD34A73A31; Sat, 23 Feb 2013 16:13:07 -0800 (PST) Date: Sat, 23 Feb 2013 16:13:07 -0800 From: Jeremy Chadwick To: Michael BlackHeart Subject: Re: Old ICH7 SATA-2 question Message-ID: <20130224001307.GA43436@icarus.home.lan> References: <20130223211932.GA41809@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1361664788; bh=LkXew1ac7JdaqMoqeh0szjo+OlcwIFC/rlqZe0x66og=; h=Received:Received:Received:Date:From:To:Subject:Message-ID: MIME-Version:Content-Type; b=JTxi9OtMDrq08ZV53q2+lW2iib7YTaZuUAH0gL1v06RLcmnVanx0C1JxU3MeHuI5s Q74WVDoXx2CgBA8WUNrEapll+RNlxHWTzXdI7GrHslzDy5kFQhSRgC6JqUN+CuP/V4 Uo0rulbJS5+h6SPHc3P2OOOhbbzvsq84Sb6qzEg1Ekk4cGNYySlIQ11mHP4lfev8pO mSTVagu0ZpjQzDs/anTtI4Hn9ZTwrPY2cFW1C6kYyt5ReojNd0SN/juip+elsioMTH kKFQ/4mq35LMTMclEJtqgcMy7OJZUs53fhB1JCWaWZDsjEPul1WwJoXTmn1HtgWs2/ zoWn63qV7cOtw== Cc: freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2013 00:13:09 -0000 On Sun, Feb 24, 2013 at 02:28:08AM +0400, Michael BlackHeart wrote: > 2013/2/24 Jeremy Chadwick : > > {snipping irrelevant stuff and fixing formatting} > > atapci1@pci0:0:31:2: class=0x01018f card=0x26011043 chip=0x27c08086 rev=0x01 hdr=0x00 > vendor = 'Intel Corporation' > device = 'N10/ICH7 Family SATA IDE Controller' > > {snip} I had written up a significantly longer reply to this Email, but once I finished and went back reviewing the information provided, my memory recalled having this exact conversation some time ago. After some extensive digging, I found it -- circa late 2008: http://lists.freebsd.org/pipermail/freebsd-stable/2008-October/046306.html The result of this conversation was that FreeBSD at the time -- this would have been probably FreeBSD 8.0 or 8.1 -- contained a bug: ata_chipset.c (part of the classic ata(4) driver) was misidentifying the different revisions of ICH7 and therefore limiting controller capacities incorrectly. Possibly a regression has been introduced as a result of the ATA-via-CAM migration (now the default), which uses a completely different set of code. All the PCI IDs shown (particularly class and chip) play a huge role in this. I will try to review the relevant kernel bits to see if that's the case today. I may have to review the Linux kernel code for a comparison as well; sigh. While I fully believe mistakes/bugs/regressions should be fixed, I'm not sure how much time/effort should be put into this one. The ICH7 was RTM'd in early 2007, and most people using ICH7 controllers that lack AHCI are probably not going to be using disks that can exceed SATA150 interface speed. If there are people out there using, for example, SSDs on an ICH7 in non-AHCI mode, it would be good to know and get "pciconf -lvbc" output (specifically the entry for their ATA/SATA controller). But as with all publicly released operating systems, most Requests For Feedback are ignored, things are then changed, and only afterwards do people crawl out of their hobbit holes and speak up. :-) > And can you recommend any good HDD performance test? "diskinfo -t" is your best choice. But none of your disks (even the WD20EARX) are going to reach throughput rates that exceed SATA150 interface speed. You would need an SSD or similar device to exceed it. -- | Jeremy Chadwick jdc@koitsu.org | | UNIX Systems Administrator http://jdc.koitsu.org/ | | Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |