From owner-freebsd-questions@FreeBSD.ORG Tue Feb 7 10:34:49 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5638516A422 for ; Tue, 7 Feb 2006 10:34:49 +0000 (GMT) (envelope-from solskogen@carebears.mine.nu) Received: from mail.hjemme.no (mail.hjemme.no [62.97.193.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5464643D48 for ; Tue, 7 Feb 2006 10:34:47 +0000 (GMT) (envelope-from solskogen@carebears.mine.nu) Received: from carebears.mine.nu (151.85-200-10.bkkb.no [85.200.10.151]) by mail.hjemme.no (8.13.4/8.13.4) with ESMTP id k17AYk4N019158 for ; Tue, 7 Feb 2006 11:34:46 +0100 Received: from localhost (localhost [127.0.0.1]) by carebears.mine.nu (Postfix) with ESMTP id 99DF9CD65B for ; Tue, 7 Feb 2006 11:34:55 +0100 (CET) Received: from carebears.mine.nu ([127.0.0.1]) by localhost (shine.carebears.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 59730-07 for ; Tue, 7 Feb 2006 11:34:55 +0100 (CET) Received: from carebears.mine.nu (localhost [127.0.0.1]) by carebears.mine.nu (Postfix) with ESMTP id CDDADCD600 for ; Tue, 7 Feb 2006 11:34:54 +0100 (CET) Received: from 62.97.242.158 (SquirrelMail authenticated user solskogen) by carebears.mine.nu with HTTP; Tue, 7 Feb 2006 11:34:54 +0100 (CET) Message-ID: <2211.62.97.242.158.1139308494.squirrel@carebears.mine.nu> In-Reply-To: <20060206120053.61D6116A425@hub.freebsd.org> References: <20060206120053.61D6116A425@hub.freebsd.org> Date: Tue, 7 Feb 2006 11:34:54 +0100 (CET) From: "Christer Solskogen" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.6 [CVS] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at carebears.mine.nu Subject: Re: ICH7 + RAID = AHCI trouble 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: Tue, 07 Feb 2006 10:34:49 -0000 > Message: 6 > Date: Mon, 6 Feb 2006 11:49:36 +0100 (CET) > From: Joerg Pulz > Subject: ICH7 + RAID = AHCI trouble > To: freebsd-questions@freebsd.org > Cc: S?ren Schmidt > Message-ID: <20060206112422.C887@hades.admin.frm2> > Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Hi, > > i recently bought a new server with an Intel ICH7 chipset and embedded > LSI Raid. > I set the SATA mode in the BIOS to RAID. After that, i was able to > configure a RAID1 array using the Controllers BIOS. > Unfortunately, FreeBSD isn't seeing any of the installed HDs. > I tried to change the BIOS settings for SATA in the BIOS to all available > methods (RIAD, AHCI, NATIVE) with no success. > The only setting that makes FreeBSD able to see the HDs is COMPATIBLE, but > i loose the PATA channel if i use it, which is definitely not what i > want. > I tried the above with 6.0-RELEASE and RELENG_6 from "Thu Feb 2 18:32:06 > CET 2006". > I took a closer look into the RELENG_6 ata(4) code and found the following > line in ata-chipset.c : > > { ATA_I82801GB_R1, 0, AHCI, 0x00, ATA_SA300, "ICH7" } > > After i changed this line to : > > { ATA_I82801GB_R1, 0, 0, 0x00, ATA_SA300, "ICH7" } > > i was able to detect the two HDs AND the configured RAID1 array. I could > use fdisk(8) and bsdlabel(8) to set up the disk and can finally use it. > Unfortunately, i can only use two disk, as all other channels do NOT > appaer in FreeBSD, i think this is related to my change in the source, as > previously all channels where available, but without HDs. > I would really like to use the other channels too. > One problem could be the "RAID or AHCI enabled - detection code" in > ata_chipset.c (rev 1.126.2.8 in RELENG_6) below line 1660, but i'm not > sure. > > Is there any chance we can track this down to make it working in a general > way, without the need to change the sources everytime i've cvsupped my > source tree? > > I'm glad to help wherever i can to solve this issue. > I filled a PR about almost the same problem, it also contains a patch. try and see if that fix your problem. kern/91502 -- cso