From owner-freebsd-questions@FreeBSD.ORG Sat Mar 22 13:43:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFDED106566B for ; Sat, 22 Mar 2008 13:43:12 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 4CEC08FC15 for ; Sat, 22 Mar 2008 13:43:12 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:50865 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Jd406-0003uG-7k for freebsd-questions@freebsd.org; Sat, 22 Mar 2008 14:43:10 +0100 Received: (qmail 33479 invoked from network); 22 Mar 2008 14:43:09 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 22 Mar 2008 14:43:09 +0100 Received: (qmail 2818 invoked by uid 1001); 22 Mar 2008 14:43:09 +0100 Date: Sat, 22 Mar 2008 14:43:09 +0100 From: Erik Trulsson To: Andrew Fremantle Message-ID: <20080322134309.GA2796@owl.midgard.homeip.net> Mail-Followup-To: Andrew Fremantle , freebsd-questions@freebsd.org References: <47E4CFCA.2070107@skyhawk.ca> <20080322110823.GA1502@owl.midgard.homeip.net> <47E4F6E6.5060300@skyhawk.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47E4F6E6.5060300@skyhawk.ca> User-Agent: Mutt/1.5.17 (2007-11-01) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1Jd406-0003uG-7k. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Jd406-0003uG-7k 8ae65e479f3e16ea4c698cb6f7cdd9da Cc: freebsd-questions@freebsd.org Subject: Re: Undetected SiI 3112 PCI SATA Controller card - resolved X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Mar 2008 13:43:13 -0000 On Sat, Mar 22, 2008 at 05:09:10AM -0700, Andrew Fremantle wrote: > I'll pull the machine out again and do some hardware troubleshooting on > it. If all else fails, I'll try altering ata-pci.h. Due to the crappy > motherboard design, and existing add-on cards, this card is sharing an > interrupt with the Promise Ultra/100 controller, which FreeBSD is > detecting fine (there's nothing plugged into it). Could that possibly > be related to this? Nevermind, all fixed. Pulled the card, aired the > slot, put card back, works like a charm. I guess one pin wasn't > connecting properly?
Interrupt-sharing should not be a problem. PCI is designed to handle shared interrupts after all. (That being said, there do exist cards and drivers that do not handle shared interrupts very well, but that is very much the exception rather than the rule.) If there was some dirt or something that caused one or more of the pins on the card from making proper contact with the slot, then that could indeed have caused the problems you saw. >
> Thanks for the response.
>
> - Andrew
>
> Erik Trulsson wrote: >
On Sat, Mar 22, 2008 at 02:22:18AM -0700, Andrew Fremantle wrote:
> 
>> I've got a machine with an SiI 3112 based (Definately Silicon Image, I'm 
>> 97% certain it was 3112) PCI SATA controller board in it. The board was 
>> just installed, and is not working. I don't get a BIOS screen on startup 
>> for it, but it is shown in the PCI device listing. The board is an ASUS 
>> A7V, so it wouldn't at all surprise me if there's a problem with the BIOS.
>> 
>> This is all FreeBSD 6.3 has to say on the subject :
>> pci0: <mass storage, RAID> at device 11.0 (no driver attached)
>> 
>> According to the ata(4) manpage, the ata driver is supposed to support this 
>> chipset?
>
> Yes, it is supposed to be supported.  It is also generally considered to be
> one of the crappiest and buggiest SATA controllers in existence.
> (It was also one of the first native SATA controllers to the market, which
> helps explain why it was used so much anyway.)
> 
> 
>> pciconf gives the following output
>> none1@pci0:11:0:        class=0x010400 card=0x61121095 chip=0x21121095 
> 
> Something is really wrong here.  For a SiI 3112 is should say
> 'chip=0x31121095'.  'chip=0x21121095' does not correspond to any known
> chip.  If not even the PCI id is detected correctly then it looks like
> something is wrong with the hardware - either the controller or the
> motherboard.
> 
> 
>>    vendor     = 'Silicon Image Inc (Was: CMD Technology Inc)'
>>    class      = mass storage
>>    subclass   = RAID
> 
>> Is there a way to force the ata driver to treat this as an Si3112 and see 
>> what happens? I can't imagine this makes a difference, but there's actually 
>> 3 ATA controllers in the machine - The VIA chipset, an integrated Promise 
>> Ultra/100, and now the SiI board.

> You could go to sys/dev/ata/ata-pci.h and change the constant 0x31121095
> into 0x21121095 and then recompile your kernel, and see what happens.
> What will happen is most likely that some other problem will turn up with
> that card, but you might get lucky (I just wouldn't count on it.)
> 

-- 

Erik Trulsson
ertr1013@student.uu.se