From owner-freebsd-acpi@FreeBSD.ORG Wed Oct 29 17:40:49 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 102E71065679; Wed, 29 Oct 2008 17:40:49 +0000 (UTC) (envelope-from serge@a-1.com.ua) Received: from a1.com.ua (158-103-207-82.ip.ukrtel.net [82.207.103.158]) by mx1.freebsd.org (Postfix) with ESMTP id ACC698FC16; Wed, 29 Oct 2008 17:40:47 +0000 (UTC) (envelope-from serge@a-1.com.ua) Received: from localhost ([127.0.0.1] helo=serge.a1.lan ident=nobody) by a1.com.ua with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1KvF2D-0008Ns-Sb; Wed, 29 Oct 2008 19:40:45 +0200 Message-ID: <4908A017.3070305@a-1.com.ua> Date: Wed, 29 Oct 2008 19:40:39 +0200 From: Serge Semenenko User-Agent: Thunderbird 2.0.0.12 (X11/20080404) MIME-Version: 1.0 To: John Baldwin References: <4903A120.7040003@FreeBSD.org> <200810271142.59666.jhb@freebsd.org> <4906450E.4030700@a-1.com.ua> <200810281108.56218.jhb@freebsd.org> In-Reply-To: <200810281108.56218.jhb@freebsd.org> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: serge@a-1.com.ua X-SA-Exim-Scanned: No (on a1.com.ua); SAEximRunCond expanded to false Cc: freebsd-acpi@freebsd.org, 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: Wed, 29 Oct 2008 17:40:49 -0000 John Baldwin wrote: > On Monday 27 October 2008 06:47:42 pm Serge Semenenko wrote: > >> John Baldwin wrote: >> >>> 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. >>> >>> >>> >> Thanks for a good tip. Elimination of "Store (Zero, SMIC)" string from >> ASL code has solved the problem. >> > > That may not be a good solution though as there may be other things the SMI > handler is doing to enable ACPI support that the OS is dependent on. > > Seems you're right. Some WMI routines stop working. But anyway that appears unrelated to the subject. Got to make a confession... It's a shame, but I've forgot about NO_MODULES="YES" option at make.conf... So my acpi.ko remains hacked all the time... After rebuild even with patched ASL bridge resources are still unassigned... Sorry for the mess..