From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 4 22:41:16 2010 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 76375106566B; Mon, 4 Jan 2010 22:41:16 +0000 (UTC) (envelope-from dana.myers@gmail.com) Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id 1798B8FC1C; Mon, 4 Jan 2010 22:41:15 +0000 (UTC) Received: by yxe2 with SMTP id 2so1122839yxe.7 for ; Mon, 04 Jan 2010 14:41:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=c57RKjG9nHpqy1MrB9VAaVqnIVtVL5tGMDXykv3p/Bg=; b=S8fIWdpEi8RKAe8kbZ/XwyDS/szCuladxnqrwJTlyqIfwMQNpzQXkLiMwXyfKfKSU5 pRBtIRfgzcNOgBSWwwIy5pjHVWb8vJ2fy3hEeDbdO3q7IOyhTNIIXtV65db8QyFuSh11 W2587vmrwe1NswvSi37ZJNThu/L/TGVDDLo/k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=gTpcOhMvBVyNN/A96ZFhtRQGQ2GatVV+WLDHjvqCJTIUB1Vo5uGncLSLkT4Hj+XtVk 3MzJYZmLS9ehjA9m6wMm/MTgYXJHhIyzXmZ3+g2Bsd7p7FVQxAfZk8LVoV8OYYW308pi kt/HK6LWD59dEXyV9pWKKWlwFTm/hgCpHV7Ok= Received: by 10.151.92.12 with SMTP id u12mr36370057ybl.32.1262644868965; Mon, 04 Jan 2010 14:41:08 -0800 (PST) Received: from ?192.168.0.100? (c-76-103-215-220.hsd1.ca.comcast.net [76.103.215.220]) by mx.google.com with ESMTPS id 34sm7496549yxf.47.2010.01.04.14.41.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 04 Jan 2010 14:41:07 -0800 (PST) Message-ID: <4B426E73.6050604@gmail.com> Date: Mon, 04 Jan 2010 14:40:51 -0800 From: Dana Myers User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Joerg Wunsch References: <20091230082556.GD1637@uriah.heep.sax.de> <200912300839.47463.jhb@freebsd.org> <20091230143943.GA1616@uriah.heep.sax.de> <200912301122.28030.jhb@freebsd.org> <20100104223738.GP1616@uriah.heep.sax.de> In-Reply-To: <20100104223738.GP1616@uriah.heep.sax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: FreeBSD 8.0 hangs on boot 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, 04 Jan 2010 22:41:16 -0000 Joerg Wunsch wrote: > As John Baldwin wrote: > > >> OTOH, I'm not sure why initializing ACPI is trashing the BAR. If >> you want, you can try to narrow down at what point the BAR gets >> reset to 0. >> > > Ah. This isn't like the evil thing I've seen where PCI config space is trounced during the legacy->ACPI mode switch. Cheers, Dana > It happens here: > > res = resource_list_alloc(rl, bus, dev, type, ®, start, end, count, > prefetch ? RF_PREFETCHABLE : 0); > if (res == NULL) { > /* > * If the allocation fails, clear the BAR and delete > * the resource list entry to force > * pci_alloc_resource() to allocate resources from the > * parent. > */ > resource_list_delete(rl, type, reg); > printf("resource_list_alloc() failed\n"); > start = 0; > > The printf() I added there triggers, and this resets "start" to 0. > > Where to proceed now? > >