From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 10 16:47:35 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AAFF16A41B for ; Mon, 10 Dec 2007 16:47:35 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from QMTA05.emeryville.ca.mail.comcast.net (qmta05.emeryville.ca.mail.comcast.net [76.96.30.48]) by mx1.freebsd.org (Postfix) with ESMTP id 2B69E13C46A for ; Mon, 10 Dec 2007 16:47:35 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from OMTA03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by QMTA05.emeryville.ca.mail.comcast.net with comcast id P3ge1Y0060b6N640A06J00; Mon, 10 Dec 2007 16:47:40 +0000 Received: from discordia ([24.60.136.97]) by OMTA03.emeryville.ca.mail.comcast.net with comcast id P4ne1Y00P26FYqY0800000; Mon, 10 Dec 2007 16:47:40 +0000 X-Authority-Analysis: v=1.0 c=1 a=uVd_tDA_aukA:10 a=XFsXuKNdAAAA:8 a=ZQd4dDef7ytENaTunK8A:9 a=kX_dWbpQfQPIWAzoiO0A:7 a=IrvqrQirPOcPJf7UHjOM22qhBIMA:4 a=kJVaTwQnZmMA:10 Received: by discordia (Postfix, from userid 103) id 61B4A1634F7; Mon, 10 Dec 2007 11:47:33 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.1.8-gr1 (2007-02-13) on discordia X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.8-gr1 Received: from [172.20.1.3] (erwin.int.cokane.org [172.20.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by discordia (Postfix) with ESMTP id D05A51634F6; Mon, 10 Dec 2007 11:47:16 -0500 (EST) Message-ID: <475D6D6A.4070708@FreeBSD.org> Date: Mon, 10 Dec 2007 11:46:34 -0500 From: Coleman Kane Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071116) MIME-Version: 1.0 To: "Andrey V. Elsukov" References: <475897DB.1010308@FreeBSD.org> <4758B6E8.7030502@rcn.com> <4758BEAB.6020306@FreeBSD.org> <4758D544.5060405@yandex.ru> <47594C1F.8070103@FreeBSD.org> <475CD068.70600@yandex.ru> In-Reply-To: <475CD068.70600@yandex.ru> X-Enigmail-Version: 0.96a Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Gary Corcoran Subject: Re: Overlap in PCI memory ranges (fixed) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: cokane@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Dec 2007 16:47:35 -0000 Andrey V. Elsukov wrote: > Coleman Kane wrote: >> Also, the mem resources of the SATA controller are used for AHCI >> (however, PATA compatibility mode is supported using the port ranges, >> which is what the controller is forced to do). In addition, the device >> name string on the SATA controller is only there because I've been >> fooling with ata-chipset.c (to unsuccessfully attempt to get AHCI >> working). Reading the MMIO registers in AHCI mode seems to produce > > Do you have some patches for ata(4)? I don't see in the clean > sources where driver can allocate a memory resources for the ATI. > As i see from your dmesg driver doesn't use AHCI. The PCI code doesn't care if the ata driver uses the mem ranges or not. If the PCI device registers that it owns those mem ranges, then the PCI code will automatically reserve them (and assign them to the driver anyway). The card is an AHCI-compliant card, however the traditional IDE port ranges are still functional, allowing the device to pretend to incompatible OSes that it's just a dumb old PCI IDE Controller. > >> situation (a single port SATA controller on a laptop). This is supposed >> to read a bitmap of the enabled ports on the SATA controller. > > Please, show your `pciconf -l`. And if you have some patches, show > their. > I have fixed this problem finally. It is a cheap and dirty hack, but it works. The link is here: http://www.cokane.org/dokuwiki/freebsd/amd64_compatibility#getting_the_hp_compaq_6715b_working Scroll down to the "HDA Audio Controller" and the "Serial ATA Controller" sections for clarification of what was causing the problem and what I had to do to solve it. Maybe there is a better way to do this on FreeBSD but I have not found it. -- Coleman Kane