From owner-freebsd-current@FreeBSD.ORG Wed Jan 12 15:39:55 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71181106564A; Wed, 12 Jan 2011 15:39:55 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from sarah.protected-networks.net (sarah.protected-networks.net [IPv6:2001:470:1f07:4e1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 310488FC13; Wed, 12 Jan 2011 15:39:55 +0000 (UTC) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [202.12.127.84]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "Iain Butler", Issuer "RSA Class 2 Personal CA" (verified OK)) (Authenticated sender: imb@protected-networks.net) by sarah.protected-networks.net (Postfix) with ESMTPSA id 5D74860E2; Wed, 12 Jan 2011 10:39:43 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=protected-networks.net; s=200705; t=1294846783; bh=g9raljHhV+mCeBc7xtm5/3gsBkrWjFjLcLR3iX6SDts=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=cCUzB/4JzysNNCm+2IdYlS08WJYM9gBSdnGDWSXWEXD8Zfa41OHewODtJfPWIiGTz 9A4W6EQzQV1ql8d6S5cUeQdwIWikRgZkjHsZLGiVn3fTFkJLqf8MZCMTkxXplY2 DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=OvcjUpICWEAiUqW5NDVVcVy4wYJL+/UMMYi8GZJ3EdOqPAE6Bp0dwthBqzEmGwOeP nBm/dbbBFVlybH+/P9nWvuxqVaTBk85Ao6jdU75xBnHv2z8Vh0j0/+Hb6AWsg2h Message-ID: <4D2DCB3D.1030603@protected-networks.net> Date: Wed, 12 Jan 2011 10:39:41 -0500 From: Michael Butler User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.13) Gecko/20101217 Thunderbird/3.1.7 MIME-Version: 1.0 To: Anton Yuzhaninov References: In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=0442D492 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexander Motin , freebsd-current@freebsd.org Subject: Re: AHCI on ICH7 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2011 15:39:55 -0000 On 01/12/11 05:50, Anton Yuzhaninov wrote: > Is it possible to get AHCI working on this controller: > > atapci1@pci0:0:31:2: class=0x01018f card=0x72101462 chip=0x27c08086 > rev=0x01 hdr=0x00 > vendor = 'Intel Corporation' > device = '82801GB/GR/GH (ICH7 Family) Serial ATA Storage > Controller' > class = mass storage > subclass = ATA > bar [10] = type I/O Port, range 32, base 0xe880, size 8, enabled > bar [14] = type I/O Port, range 32, base 0xe800, size 4, enabled > bar [18] = type I/O Port, range 32, base 0xe480, size 8, enabled > bar [1c] = type I/O Port, range 32, base 0xe400, size 4, enabled > bar [20] = type I/O Port, range 32, base 0xe080, size 16, enabled > cap 01[70] = powerspec 2 supports D0 D3 current D0 > > BIOS show that AHCI 1.0 supported. > > I tried this patch with no success: > > --- sys/dev/ahci/ahci.c (revision 217301) > +++ sys/dev/ahci/ahci.c (working copy) > @@ -129,6 +129,7 @@ > {0x26838086, 0x00, "Intel ESB2", 0}, > {0x27c18086, 0x00, "Intel ICH7", 0}, > {0x27c38086, 0x00, "Intel ICH7", 0}, > + {0x27c08086, 0x00, "Intel ICH7", 0}, > {0x27c58086, 0x00, "Intel ICH7M", 0}, > {0x27c68086, 0x00, "Intel ICH7M", 0}, > {0x28218086, 0x00, "Intel ICH8", 0}, Since this series is also supported in the ata-intel driver .. { ATA_I82801GB, 0, 0, 1, ATA_UDMA5, "ICH7" }, { ATA_I82801GB_S1, 0, 0, 0, ATA_SA300, "ICH7" }, { ATA_I82801GB_R1, 0, 0, 0, ATA_SA300, "ICH7" }, { ATA_I82801GB_AH, 0, INTEL_AHCI, 0, ATA_SA300, "ICH7" }, { ATA_I82801GBM_S1, 0, 0, 0, ATA_SA150, "ICH7M" }, { ATA_I82801GBM_R1, 0, 0, 0, ATA_SA150, "ICH7M" }, { ATA_I82801GBM_AH, 0, INTEL_AHCI, 0, ATA_SA150, "ICH7M" }, .. and it seems that PCIR_BAR(5) is already set as I/O, you could try adding the INTEL_AHCI attribute to the entry for "ATA_I82801GB_S1", which matches your chip-id and see what happens. I have not tried this - please make sure you have a full backup first! imb