From owner-freebsd-current@FreeBSD.ORG Wed Jan 12 15:45:12 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 8C58E1065674 for ; Wed, 12 Jan 2011 15:45:12 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 18F128FC25 for ; Wed, 12 Jan 2011 15:45:11 +0000 (UTC) Received: by mail-ey0-f182.google.com with SMTP id 6so292860eyf.13 for ; Wed, 12 Jan 2011 07:45:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=sihUKfuQBxFtSvbuF+ukOEL+DWMkof04J797/lO1Lfw=; b=Y9Nm42FfhZ+dfXsJY9aF140MRwDMqYZ1wVE/D0WTKXh95CCjImEDa+2U+1BZvbJtw/ xPaemjFXVe+sqz21m6gx4HTyQV7wHovcv5HTTSpSSAYQbuv2lY3bhAjO5j2jN0RTT0gl Qi/O7a04N9jc1CupohCmuHZ0PeE04iZmQ2UeY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=X7yMxkKiV3bI4ZraDmLzaBLMJRO619WGSuRvk0d5pPOO+IKp9cH48/L1dKJ3nkOKWn f8CdvfMSCJCr2yBtAzoy7EpSpYXlL4cWQiL1armGdeHr0EGqwGshJIyV41ULfKWQdkbR 9iMTNtNZHYYT03XFNjWdPPeWnnfz5gWssNrSQ= Received: by 10.223.85.204 with SMTP id p12mr1104883fal.146.1294847111716; Wed, 12 Jan 2011 07:45:11 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id z1sm256230fau.21.2011.01.12.07.45.08 (version=SSLv3 cipher=RC4-MD5); Wed, 12 Jan 2011 07:45:09 -0800 (PST) Sender: Alexander Motin Message-ID: <4D2DCC66.50807@FreeBSD.org> Date: Wed, 12 Jan 2011 17:44:38 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Michael Butler References: <4D2DCB3D.1030603@protected-networks.net> In-Reply-To: <4D2DCB3D.1030603@protected-networks.net> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Anton Yuzhaninov 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:45:12 -0000 Michael Butler wrote: > 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. PCIR_BAR(5) is not set in this case, only 0-4. It won't help. -- Alexander Motin