From nobody@FreeBSD.org  Sat Nov 21 11:10:17 2009
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 181FE106568B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 21 Nov 2009 11:10:17 +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 E08128FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 21 Nov 2009 11:10:16 +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 nALBAGJH042612
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 21 Nov 2009 11:10:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nALBAGxZ042593;
	Sat, 21 Nov 2009 11:10:16 GMT
	(envelope-from nobody)
Message-Id: <200911211110.nALBAGxZ042593@www.freebsd.org>
Date: Sat, 21 Nov 2009 11:10:16 GMT
From: Chen Neko <epopen@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: BIOS resource allocation and FreeBSD ACPI in TOSHIBA laptop
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         140751
>Category:       amd64
>Synopsis:       [acpi] BIOS resource allocation and FreeBSD ACPI in TOSHIBA laptop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 21 11:20:01 UTC 2009
>Closed-Date:    Tue Jul 26 17:06:51 UTC 2011
>Last-Modified:  Tue Jul 26 17:06:51 UTC 2011
>Originator:     Chen Neko
>Release:        8.0 Current RC-3 amd64
>Organization:
>Environment:
FreeBSD 8.0-RC3 #2: Sat Nov 21 17:43:43 JST 2009
    root@:/usr/obj/usr/src/sys/EpopenKernel
>Description:
Hello... FreeBSD team.

The problem is on my laptop (TOSHIBA M800 with least newest BIOS).
After Google search, The problem look like BIOS?ACPI? to allocated resources for hardware problem.
I think ACPI for TOSHIBA kernel code have problem (bug?)....

Probably FreeBSD would have to be able to allocate resources on its own.
This is a piece of verbose output on my TOSHIBA M800:

PS1: GENERIC and my own kernel configure have same problem.
PS2: My own kernel configure add "device acpi_toshiba", But have it or not, Always get same problem

==================================================================================
mskc0: <Marvell Yukon 88E8040T Fast Ethernet> irq 16 at device 0.0 on pci7
mskc0: 0x4000 bytes of rid 0x10 res 3 failed (0, 0xffffffffffffffff).
mskc0: unknown device: id=0xff, rev=0x0f
device_attach: mskc0 attach returned 6
==================================================================================

Note: The laptop have Intel 5100 agn wifi adapter, But RC-3 can't recognize and drive it(Add "device iwn" in kernel configure).
 I had been try under two:
  1.Use third party driver code(http://techwires.net/~bschmidt/patches/freebsd/iwn/) in 8.0 RC-2
  2.Use Marvell official binary driver package in 7-Stable amd64
But either get same problem under...
==================================================================================
iwn0: <Intel(R) PRO/Wireless 5100> irq 17 at device 0.0 on pci8
iwn0: 0x2000 bytes of rid 0x10 res 3 failed (0, 0xffffffffffffffff).
iwn0: could not allocate memory resources
device_attach: iwn0 attach returned 12
==================================================================================

Two error message look like same, I think all of same problem cause...
more verbose and complete output and complete  "dmesg -a" output can be found here: http://forums.freebsd.org/showpost.php?p=46261&postcount=41

I had tried disable ACPI... But it is impossible, Because....
  1.TOSHIBA BIOS cmos option haven't any about ACPI option.
  2.Remove "device acpi" in kernel configure, But kernel panic because can't recognize hard disk drive.

It would be absolutely fantastic if someone could take a look at this issue!
I'm always available for testing and providing more information

I gauss other(ALL?) TOSHIBA laptop have same problem.
If need more and more test or information, Please tell me.
Thanks FreeBSD team :D
>How-To-Repeat:
The problem can be easily reproduced..
 1.First boot after installion.
 2.Boot after kernel complier.
>Fix:
none

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-acpi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Nov 21 23:14:02 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: Andriy Gapon <avg@freebsd.org>
To: bug-followup@freebsd.org, epopen@gmail.com
Cc:  
Subject: Re: amd64/140751: [acpi] BIOS resource allocation and FreeBSD ACPI
 in TOSHIBA laptop
Date: Sun, 05 Dec 2010 14:59:53 +0200

 Seems to be known issue where FreeBSD relies on BIOS to program PCI resources
 (MMIO and I/O ports).  Especially for PCI-PCI bridges.
 
 -- 
 Andriy Gapon

From: John Baldwin <jhb@FreeBSD.org>
To: bug-followup@FreeBSD.org, epopen@gmail.com
Cc:  
Subject: Re: amd64/140751: [acpi] BIOS resource allocation and FreeBSD ACPI
 in TOSHIBA laptop
Date: Mon, 09 May 2011 08:59:59 -0400

 I believe this should be fixed by
 
 http://svnweb.freebsd.org/base?view=revision&revision=221393
 
 Can you try a new kernel from 9?
 
 -- 
 John Baldwin
State-Changed-From-To: open->feedback 
State-Changed-By: jhb 
State-Changed-When: Mon Jul 25 11:56:48 UTC 2011 
State-Changed-Why:  
Issue is believed to be fixed, awaiting user feedback. 


Responsible-Changed-From-To: freebsd-acpi->jhb 
Responsible-Changed-By: jhb 
Responsible-Changed-When: Mon Jul 25 11:56:48 UTC 2011 
Responsible-Changed-Why:  
Issue is believed to be fixed, awaiting user feedback. 

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

From: Neko Chang <epopen@gmail.com>
To: bug-followup@freebsd.org, epopen@gmail.com
Cc:  
Subject: Re: amd64/140751: [acpi] BIOS resource allocation and FreeBSD ACPI in
 TOSHIBA laptop
Date: Tue, 26 Jul 2011 23:35:24 +0800

 Hi jhb
 
 Thanks your help very much.
 The issue fixed in FreeBSD 9 current.
 I fetch http://pub.allbsd.org/FreeBSD-snapshots/amd64-amd64/9.0-HEAD-20110725-JPSNAP/FreeBSD-9.0-HEAD-20110725-JPSNAP-release.iso
 for test.
 And installed it in other hard disk on TOSHIBA M800.
 I could see iwn0 & msk0 in network configure when post-install.
 After boot new 9.0 by hard disk, I could saw   iwn0 & msk0 by ifconfig
 (GENERIC kernel).
 
 Thanks all.
State-Changed-From-To: feedback->closed 
State-Changed-By: jhb 
State-Changed-When: Tue Jul 26 17:06:27 UTC 2011 
State-Changed-Why:  
Submitter confirms fixed in 9 by NEW_PCIB changes. 

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