From owner-freebsd-stable@FreeBSD.ORG Wed Oct 15 05:13:08 2008 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 DF2C51065693 for ; Wed, 15 Oct 2008 05:13:07 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA05.emeryville.ca.mail.comcast.net (qmta05.emeryville.ca.mail.comcast.net [76.96.30.48]) by mx1.freebsd.org (Postfix) with ESMTP id C12AC8FC13 for ; Wed, 15 Oct 2008 05:13:07 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by QMTA05.emeryville.ca.mail.comcast.net with comcast id Ssza1a00U0b6N64A5tD7zf; Wed, 15 Oct 2008 05:13:07 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA03.emeryville.ca.mail.comcast.net with comcast id StD51a00H2P6wsM8PtD6nv; Wed, 15 Oct 2008 05:13:07 +0000 X-Authority-Analysis: v=1.0 c=1 a=B1MEe26n1WkA:10 a=NZA-GfGjcrAA:10 a=SKLNrZPzAAAA:20 a=eVUyA3bpAAAA:8 a=QycZ5dHgAAAA:8 a=kRFhBT2Uze_lfzFRhSkA:9 a=1VKjnV3TWS6bdf31Oe0A:7 a=l-DIk42uKjp9fQSCBaZUdRzvjuIA:4 a=Nn94S3qFhd8A:10 a=EoioJ0NPDVgA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id BAB92C9419; Tue, 14 Oct 2008 22:13:05 -0700 (PDT) Date: Tue, 14 Oct 2008 22:13:05 -0700 From: Jeremy Chadwick To: "John R. Huston" Message-ID: <20081015051305.GA67579@icarus.home.lan> References: <976ac5b80810141852n85e87das9f4e11544e0222a6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <976ac5b80810141852n85e87das9f4e11544e0222a6@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: "Andrey V. Elsukov" , freebsd-stable@freebsd.org, sos@freebsd.org Subject: Re: SATA devices not added/probed from ICH7 sata300 controller, FreeBSD7.0, 7.1beta, 8.0 Daily 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: Wed, 15 Oct 2008 05:13:08 -0000 On Tue, Oct 14, 2008 at 09:52:09PM -0400, John R. Huston wrote: > Hi, I am not very familiar with using mailing lists so if I have made > a mistake in the format or scope of the message please correct me. I > am pretty desperate for an answer by now so any help at all is really > very appreciated. > > I have a Shuttle SD30G2 computer (Specs: > http://preview.tinyurl.com/3knjrp ) which utilizes the intel ICH7 > southbridge for sata devices. I am currently running FreeBSD > 7.0-STABLE. The issue is that although the sata controller is > apparently detected correctly (It shows up by name in dmesg) the > devices attached to it do not show up when running 'atacontrol list'. > There are no errors produced on a normal boot, but booting in verbose > mode produces a few repetetive messages that may be telling, although > I am unable to decipher them. First and foremost: I can assure you the ICH7 works fine on FreeBSD, because all of our production servers use it. Of course, they are not Shuttle systems. You didn't provide any detail of what hardware you have hooked up to the motherboard. Do you actually have any SATA devices hooked up to the SATA ports? What devices? This is why I ask: I see a Western Digital hard disk which shows up as ad0 on that system. It's claiming ATA100 mode, but there are features of the ICH7 (often called "Compatibility Mode" in BIOSes) which allow a SATA device to appear as a PATA device to work with older operating systems such as MS-DOS. I've looked at the SD30G2 user manual, and they do not appear to let you enable that mode. "Enhanced Mode" causes SATA devices to operate as SATA devices, and PATA devices to operate as PATA devices -- which in this case, is what you want. (This BIOS does not offer AHCI, so you can't use that either). > Some other symptoms; When booting from an installer or bootonly iso, > the installer is unable to find the sata drive to install to and will > exit with error. This applies to 7.0-release, 7.1 beta (From Oct 11), > and the daily 8.0 bootonly (From may.) I have successfully installed > Ubuntu 7.04 to the machine however, and it correctly installs and > utilizes both the sata hard drive (ata2 in bsd) and the sata cdrom > (ata3.) so this eliminates any possibility of the drive(s) or > controller being faulty. and although I am currently using a custom > built kernel, the fact that several bootonlys/installers cannot find > the drive either would suggest it is not my configuration > modifications which have caused this behavior. Agreed -- I do not think it's your kernel configuration. It sounds as if ata(4) has a bug that is not initialising some piece of the ICH7, while Linux does. It may be that the Shuttle BIOS does not initialise some piece of the ICH7 which other manufacturers do. > The full output from a verbose boot can be found here: > http://pastebin.ca/1227417 ; The relevant (I think) section starts at > roughly line #386 ("Intel ICH7 UDMA100 controller") where the first > controller for the IDE drives are found. ata0 is probed successfully, > ata1 is skipped (there are no devices attached here), and then the > sata controller is found, but ata2 and ata3 appear to be probed > incorrectly, spitting out a message like this a bunch of times before > quietly failing: > "ata2: stat0=0x7f err=0xff lsb=0xff msb=0xff". This could be normal for verbose boot; it does not necessarily indicate a problem, but the ATA guys will have to confirm. Also, regarding this mail thread, I'm going to do a couple things with it: - Move it from -questions to -stable, because that's honestly where this should go, - Adding sos@freebsd.org (ata(4) author) to the CC list, - Adding Andrey V. Elsukov to the CC list. Andrey has been doing a lot of ata(4) work as of late. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |