From owner-freebsd-acpi@FreeBSD.ORG Mon Oct 27 16:02:43 2008 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94191106567B; Mon, 27 Oct 2008 16:02:43 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id C141F8FC1A; Mon, 27 Oct 2008 16:02:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id m9RG2Y1Z012952; Mon, 27 Oct 2008 12:02:35 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-acpi@freebsd.org Date: Mon, 27 Oct 2008 11:42:59 -0400 User-Agent: KMail/1.9.7 References: <4903A120.7040003@FreeBSD.org> In-Reply-To: <4903A120.7040003@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810271142.59666.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Mon, 27 Oct 2008 12:02:35 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8508/Mon Oct 27 09:02:44 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Alexander Motin Subject: Re: PCIe bridges resources disappearing with ACPI enabled. X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 16:02:43 -0000 On Saturday 25 October 2008 06:43:44 pm Alexander Motin wrote: > Hi. > > I have spent whole day trying to investigate strange problem of my Acer > TM6292 laptop (965GM+ICH8M). When booted with ACPI enabled, all three > of PCIe-to-PCIe bridges appearing completely without I/O resources: > pcib1: irq 17 at device 28.0 on pci0 > pcib1: domain 0 > pcib1: secondary bus 2 > pcib1: subordinate bus 3 > pcib1: I/O decode 0x0-0x0 > pcib1: no prefetched decode > ... > At the same time, with ACPI disabled, resources are present. There are > some different problem with IRQ in that case, but it is another > question, not so interesting to me. > > I have tried both IO and memory mapped PCIe configuration registers > without success. > > I have made heavy digging trying to find where resources disappearing. I > have even added debug printing inside pcireg_cfgwrite() and > pciereg_cfgwrite() to trace if somebody erases it and found nothing. > Nothing writes into that devices configuration registers. The SMI handle could be clearing the BARs when ACPI is enabled for some reason. Windows and Linux are smart enough to alloc resources for bridges, but FreeBSD isn't yet. -- John Baldwin