From nobody@FreeBSD.org  Sun Jan  3 13:01:08 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CD5AA106568B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Jan 2010 13:01:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id BC22C8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Jan 2010 13:01:08 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o03D180h010542
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 3 Jan 2010 13:01:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o03D18jE010541;
	Sun, 3 Jan 2010 13:01:08 GMT
	(envelope-from nobody)
Message-Id: <201001031301.o03D18jE010541@www.freebsd.org>
Date: Sun, 3 Jan 2010 13:01:08 GMT
From: Olivier Cochard-Labbe <olivier@cochard.me>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ACPI regression on Asus K8N7-E deluxe motherboard with 8-stable
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         142263
>Category:       kern
>Synopsis:       [acpi] ACPI regression on Asus K8N7-E deluxe motherboard with 8-stable [regression]
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-acpi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 03 13:10:01 UTC 2010
>Closed-Date:    Tue Jul 26 13:08:04 UTC 2011
>Last-Modified:  Tue Jul 26 13:08:04 UTC 2011
>Originator:     Olivier Cochard-Labbe
>Release:        8-stable
>Organization:
FreeNAS
>Environment:
FreeBSD debugger.bsdrp.net 8.0-STABLE FreeBSD 8.0-STABLE #9: Sat Jan  2 23:23:23 CET 2010     root@debugger.bsdrp.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
FreeBSD 8-stable have an ACPI regression on my motherboard (asus K8N7-E deluxe).
This system works great under FreeBSD 7.2, but I need to disable ACPI on 8.0 for boot it.

The PCI ressource memory information are not correctly reported: Ethernet, USB or SATA/PATA drivers didn't work.
Example with the nfe Ethernet drivers:

On FreeBSD 7.2, the dmesg report this (but allmost all drivers have this problem):

nfe0: <NVIDIA nForce4 CK804 MCP8 Networking Adapter> port
0xb000-0xb007 mem 0xd3000000-0xd3000fff irq 21 at device 10.0 on pci0
nfe0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xd3000000
miibus0: <MII bus> on nfe0
e1000phy0: <Marvell 88E1111 Gigabit PHY> PHY 15 on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
nfe0: bpf attached
nfe0: Ethernet address: 00:13:d4:d6:3a:7b

But on FreeBSD 8.0, the dmesg report this (note the reserved mem diff):

nfe0: <NVIDIA nForce4 CK804 MCP8 Networking Adapter> irq 21 at device
10.0 on pci0
nfe0: Lazy allocation of 0x1000000 bytes rid 0x10 type 3 at 0x81000000
nfe0: Reserved 0x1000000 bytes for rid 0x10 type 3 at 0x81000000!
nfe0: MII without any phy!
device_attach: nfe0 attach returned 6

FreeBSD 8.0 display this error message too:
ACPI Error: Package List length (6) larger than NumElements count (3), truncated
 20090521 dsobject-590

Full dmesg under FreeBSD 7.2 here:
http://pastebin.com/f7bbdcb3a

Full dmesg under FreeBSD 8.0 here:
http://pastebin.com/f52df9c4c

Regards,

Olivier


>How-To-Repeat:
Using FreeBSD 8-stable on Asus K8N7-E deluxe motherboard.
>Fix:
Disable ACPI on the boot loader.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-acpi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jan 3 18:19:42 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=142263 

From: Andriy Gapon <avg@freebsd.org>
To: bug-followup@freebsd.org, olivier@cochard.me
Cc:  
Subject: Re: kern/142263: [acpi] ACPI regression on Asus K8N7-E deluxe motherboard
 with 8-stable [regression]
Date: Wed, 16 Mar 2011 19:22:50 +0200

 Could you please try recent 8-stable or 8.2 release with the following line in
 loader.conf?
 hw.pci.usb_early_takeover="0"
 
 Thanks!
 -- 
 Andriy Gapon

From: John Baldwin <jhb@freebsd.org>
To: bug-followup@freebsd.org,
 olivier@cochard.me
Cc:  
Subject: Re: kern/142263: [acpi] ACPI regression on Asus K8N7-E deluxe motherboard with 8-stable [regression]
Date: Mon, 25 Jul 2011 07:55:09 -0400

 Can you try a recent 9.0 kernel with NEW_PCIB enabled (enabled by default on 
 x86)?
 
 -- 
 John Baldwin
State-Changed-From-To: open->closed 
State-Changed-By: jhb 
State-Changed-When: Tue Jul 26 13:07:35 UTC 2011 
State-Changed-Why:  
Believed to be fixed and submitter no longer has the hardware to test. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=142263 
>Unformatted:
