From owner-freebsd-current@FreeBSD.ORG Thu Dec 3 07:47:08 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAB13106566B for ; Thu, 3 Dec 2009 07:47:07 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id 4A8D18FC13 for ; Thu, 3 Dec 2009 07:47:07 +0000 (UTC) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 4FEE7EB4803; Thu, 3 Dec 2009 09:47:06 +0200 (EET) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 3D49C452B6; Thu, 3 Dec 2009 09:47:06 +0200 (EET) X-Quarantine-ID: X-Virus-Scanned: amavisd-new at ceid.upatras.gr X-Amavis-Alert: BAD HEADER, Duplicate header field: "Cc" Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VvejPo2bLSpD; Thu, 3 Dec 2009 09:47:06 +0200 (EET) Received: from kobe.laptop (ppp-94-64-236-187.home.otenet.gr [94.64.236.187]) by mail.ceid.upatras.gr (Postfix) with ESMTP id E2955451B2; Thu, 3 Dec 2009 09:47:05 +0200 (EET) Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id nB37l4op082943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Dec 2009 09:47:04 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id nB37l4H8082929; Thu, 3 Dec 2009 09:47:04 +0200 (EET) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: Leonardo Santagostini References: <9ab7eeeb0912021757g5f60a7edw3256e60e745c0c35@mail.gmail.com> Date: Thu, 03 Dec 2009 09:47:03 +0200 In-Reply-To: <9ab7eeeb0912021757g5f60a7edw3256e60e745c0c35@mail.gmail.com> (Leonardo Santagostini's message of "Thu, 3 Dec 2009 01:57:50 +0000") Message-ID: <87tyw8o5xk.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org, Jung-uk Kim Subject: Re: Could you please fix this ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 07:47:08 -0000 On Thu, 3 Dec 2009 01:57:50 +0000, Leonardo Santagostini wrote: > Hello everybody, > > I was facing one big problem, i have a notebook, which is an Acer > Aspire 5920. If you like i can send to you my messages file. > > Which is: > > Intel(R) Core(TM)2 Duo CPU T5550 @ 1.83GHz (1833.48-MHz 686-class CPU) > Intel(R) PRO/Wireless 3945ABG > Broadcom NetLink Gigabit Ethernet Controller > 2 Gigs RAM > 160 Gigs SATA > > The point was: > With ACPI disabled, i managed to boot but without WIFI; and with ACPI > enabled, the boot process hanged up all times. > > I fixed this adding > > if (device_get_unit(dev)==2){ > pci_write_config(dev, PCIR_COMMAND, PCIM_CMD_MEMEN | PCIM_CMD_PORTEN, 1); > pci_enable_busmaster(dev); > pci_write_config(dev, PCIR_IOBASEL_1, 0xf0, 1); > pci_write_config(dev, PCIR_MEMBASE_1, 0xf020, 2); > pci_write_config(dev, PCIR_MEMLIMIT_1, 0xf020, 2); > pci_write_config(dev, PCIR_PMBASEL_1, 0xfff1, 2); > } > if (device_get_unit(dev)==3){ > pci_write_config(dev, PCIR_COMMAND, PCIM_CMD_MEMEN | PCIM_CMD_PORTEN, 1); > pci_enable_busmaster(dev); > pci_write_config(dev, PCIR_IOBASEL_1, 0xf0, 1); > pci_write_config(dev, PCIR_MEMBASE_1, 0xf030, 2); > pci_write_config(dev, PCIR_MEMLIMIT_1, 0xf030, 2); > pci_write_config(dev, PCIR_PMBASEL_1, 0xfff1, 2); > } > > to /usr/src/sys/dev/acpica/acpi_pcib_pci.c running on a 8.0-RELEASE > > I was able to fix it by my way but many people cant do it, so, i would > really appreciate if you can add this piece of code. Hi Leonardo. Jung-uk Kim has done a lot of ACPI-related work, so he will probably know if the change is ok to commit to stable/8. I've added him to the thread, so he can let us know what he thinks of the change. Can you please post a diff that also shows _where_ the changes have to be installed in our current version of src/sys/dev/acpica/acpi_pcib_pci.c for 8.0-RELEASE?