From owner-freebsd-amd64@FreeBSD.ORG Tue Sep 29 12:04:09 2009 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 142241065692 for ; Tue, 29 Sep 2009 12:04:09 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id DB0548FC23 for ; Tue, 29 Sep 2009 12:04:08 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 8EF8A46B17; Tue, 29 Sep 2009 08:04:08 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 98A048A026; Tue, 29 Sep 2009 08:04:07 -0400 (EDT) From: John Baldwin To: freebsd-amd64@freebsd.org Date: Tue, 29 Sep 2009 08:03:46 -0400 User-Agent: KMail/1.9.7 References: <4AC0C9B0.9090709@netability.ie> In-Reply-To: <4AC0C9B0.9090709@netability.ie> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200909290803.46973.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Tue, 29 Sep 2009 08:04:07 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Subject: Re: 8.0/amd64 does not detect ata channels on nVidia nForce MCP55 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2009 12:04:09 -0000 On Monday 28 September 2009 10:35:28 am Nick Hilliard wrote: > Hello, > > this was previously brought up on -current, but they suggested moving the > topic over here. > > As the subject suggests, freebsd 8.0 on amd64 does not detect all ata > channels on nVidia nForce MCP55, unless you configure hw.pci.mcfg=0 in > loader.conf. There was some discussion here: > > > http://lists.freebsd.org/pipermail/freebsd-current/2009-August/011137.html > > http://lists.freebsd.org/pipermail/freebsd-current/2009-September/011162.html > > and more here: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=128686 > http://www.freebsd.org/cgi/query-pr.cgi?pr=132372 > http://www.freebsd.org/cgi/query-pr.cgi?pr=137942 > > If there is a developer interested in fixing this, I have a machine running > 8.0 off a flash disk which is displaying this problem, and can set up an > account for remote access. > > Any takers? Try this patch obtaining the dmesg output for both the MCFG and !MCFG case: Index: ata-nvidia.c =================================================================== --- ata-nvidia.c (revision 197581) +++ ata-nvidia.c (working copy) @@ -154,11 +154,14 @@ ctlr->r_type2 = SYS_RES_IOPORT; else ctlr->r_type2 = SYS_RES_MEMORY; + printf("%s: r_type2 = %s\n", __func__, ctlr->r_type2 == SYS_RES_IOPORT ? + "I/O" : "memory"); ctlr->r_rid2 = PCIR_BAR(5); if ((ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, &ctlr->r_rid2, RF_ACTIVE))) { int offset = ctlr->chip->cfg1 & NV4 ? 0x0440 : 0x0010; + pritnf("%s: allocated res2 ok\n", __func__); ctlr->ch_attach = ata_nvidia_ch_attach; ctlr->ch_detach = ata_pci_ch_detach; ctlr->reset = ata_nvidia_reset; -- John Baldwin