From owner-freebsd-current@FreeBSD.ORG Sun Apr 18 13:37:51 2010 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 7CC6B1065673; Sun, 18 Apr 2010 13:37:51 +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 446A38FC13; Sun, 18 Apr 2010 13:37:51 +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) by sarah.protected-networks.net (Postfix) with ESMTPSA id 7732960F4; Sun, 18 Apr 2010 09:37:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=protected-networks.net; s=200705; t=1271597870; bh=UwcnZ1/IHcedYc8pVDcsjhbaxF3tn0OdPZ4fntYNa6E=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=luhLLxgYTPOwcpGvr57LHkDFipVyVtJdeNl+FgbVK2ADJyHGPoRcX6zKilXmu4Pa8 3ysInVEdMl7RKZgw18k6m2u5umMpSMnIhQiBzM8/Fn3rY1zgpaGOp2rfErgM+T6 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=Gcq2nmABIvHyWGufrDgVC37hfn0xoiuXl5WOWQKgK+++nrL7sgiIU7kXBaAN/evwW vcDZppze4BAtT0t452mC/RA/HdTzDatJN6EMYQJNX4DNdZZ/15rAxuuCUonOBVM Message-ID: <4BCB0B2A.1020908@protected-networks.net> Date: Sun, 18 Apr 2010 09:37:46 -0400 From: Michael Butler User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100331 Thunderbird/3.0.4 MIME-Version: 1.0 To: Alexander Motin References: <4BCA325A.1060600@protected-networks.net> <4BCA9F44.50002@FreeBSD.org> In-Reply-To: <4BCA9F44.50002@FreeBSD.org> X-Enigmail-Version: 1.0.1 OpenPGP: id=0442D492 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-Current , Rui Paulo Subject: Re: SPOOFED: Re: SVN rev 206755 breakage 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: Sun, 18 Apr 2010 13:37:51 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/18/10 01:57, Alexander Motin wrote: > More important probably would be `pciconf -lvcb`. > > Intel controllers after ICH6 change both ID and set of resources, > depending on AHCI enabled in BIOS. There is separate set of IDs for > controllers with AHCI enabled. As I can see, Linux handles ID 0x27c4 as > non-AHCI SATA. If for some reason this ID could be used for both modes > (I have doubts), we may try to set AHCI_Q_NOFORCE flag to make driver > check PCI class/subclass, if it is correct there. > atapci0@pci0:0:31:2: class=0x010180 card=0xff101179 chip=0x27c48086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801GBM/GHM (ICH7-M Family) Serial ATA Storage Controller' class = mass storage subclass = ATA bar [10] = type I/O Port, range 32, base 0x1f0, size 8, enabled bar [14] = type I/O Port, range 32, base 0x3f4, size 1, enabled bar [18] = type I/O Port, range 32, base 0x170, size 8, enabled bar [1c] = type I/O Port, range 32, base 0x374, size 1, enabled bar [20] = type I/O Port, range 32, base 0x18b0, size 16, enabled cap 01[70] = powerspec 2 supports D0 D3 current D0 When AHCI is enabled, the device ID changes to 0x27c5. In this case, the probe succeeds but, since MSE is not set, the allocation of memory-IO space to BAR(5) is futile and the reset fails since it addresses undecoded space. Thus the attach fails, imb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkvLCyoACgkQQv9rrgRC1JK3UQCfXG1K3B7kOo35koBWdTohYt7/ qygAoM0kn0ZSYeD5P0Hu7kr3ci+otV3m =sk9Y -----END PGP SIGNATURE-----