From owner-freebsd-acpi@FreeBSD.ORG Tue Jan 3 16:45:38 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8F5416A45C; Tue, 3 Jan 2006 16:45:37 +0000 (GMT) (envelope-from oxy@field.hu) Received: from dumballah.tvnet.hu (dumballah.tvnet.hu [195.38.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB1BB43DC7; Tue, 3 Jan 2006 16:45:30 +0000 (GMT) (envelope-from oxy@field.hu) Received: from localhost (localhost.localdomain [127.0.0.1]) by dumballah.tvnet.hu (Postfix) with ESMTP id 009B5101D8D; Tue, 3 Jan 2006 17:45:29 +0100 (CET) Received: from dumballah.tvnet.hu ([127.0.0.1]) by localhost (dumballah.tvnet.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01872-30; Tue, 3 Jan 2006 17:45:28 +0100 (CET) Received: from oxy (dsl85-238-73-74.pool.tvnet.hu [85.238.73.74]) by dumballah.tvnet.hu (Postfix) with SMTP id 6437F101D8C; Tue, 3 Jan 2006 17:45:28 +0100 (CET) Message-ID: <007301c61085$1bc99b90$0201a8c0@oxy> From: "OxY" To: "John Baldwin" , , "Anders Nordby" References: <200512311230.jBVCUBfP075728@freefall.freebsd.org> <200601030924.43950.jhb@freebsd.org> Date: Tue, 3 Jan 2006 17:45:30 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-6"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Virus-Scanned: by amavisd-new at tvnet.hu Cc: Subject: Re: i386/89545: Compaq DL 360 ACPI boot problem 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: Tue, 03 Jan 2006 16:45:38 -0000 if the patch works, please send a letter to the list, i am interested too, posted the same problem a month ago.. thx! ----- Original Message ----- From: "John Baldwin" To: ; "Anders Nordby" Sent: Tuesday, January 03, 2006 3:24 PM Subject: Re: i386/89545: Compaq DL 360 ACPI boot problem > On Saturday 31 December 2005 07:30 am, Anders Nordby wrote: >> The following reply was made to PR i386/89545; it has been noted by >> GNATS. >> >> From: Anders Nordby >> To: John Baldwin >> Cc: bug-followup@freebsd.org, uralmetal@gmail.com >> Subject: Re: i386/89545: Compaq DL 360 ACPI boot problem >> Date: Sat, 31 Dec 2005 13:27:28 +0100 >> >> Hi, >> >> On Thu, Dec 29, 2005 at 10:34:15PM +0100, Anders Nordby wrote: >> > (..) >> >> For the record. I just tried using 6.0-STABLE as of december 30. It >> still hangs: >> >> acpi0: on motherboard >> acpi0: Power Button (fixed) >> unknown: I/O range not supported >> >> But now it stops earlier, or at least it doesn't print the pci_link: >> lines. >> >> Applying the printf patch then, I get: >> >> acpi0: on motherboard >> acpi0: Power Button (fixed) >> unknown: I/O range not supported >> attach started >> pci_link0: calling _CRS >> pci_link0: _CRS returned AE_OK >> pci_link0: num_links = 0 >> attach started >> >> Phew, luckily acpi is a module, so I only need to recompile it instead >> of the whole kernel. I had ACPI problems with FreeBSD 6 on other Compaq >> servers as well, one DL 580. Once we get this solved for DL 360 I can >> try >> with the 580 (it is in production, so I can not easily take it down when >> I want -- but it would be nice to use both CPUs on it ;-)). > > Ok, looks like it is ACPI_SERIAL_BEGIN() it is hanging on. Also, the > reason > you don't see the pritnf's in 6-stable is the devices are now marked quiet > so > they don't show up in dmesg by default anymore. The problem is I must > have > forgotten to release the pci_link lock somewhere. If you had INVARIANTS > on > it should have panic'd in sx_xlock. As it is, I think this patch will fix > the hangs on both 6.x and 7.0: > > Index: acpi_pci_link.c > =================================================================== > RCS file: /usr/cvs/src/sys/dev/acpica/acpi_pci_link.c,v > retrieving revision 1.51 > diff -u -r1.51 acpi_pci_link.c > --- acpi_pci_link.c 5 Dec 2005 19:50:00 -0000 1.51 > +++ acpi_pci_link.c 3 Jan 2006 14:24:23 -0000 > @@ -449,8 +449,10 @@ > } > } > sc->pl_num_links = creq.count; > - if (creq.count == 0) > + if (creq.count == 0) { > + ACPI_SERIAL_END(pci_link); > return (0); > + } > sc->pl_links = malloc(sizeof(struct link) * sc->pl_num_links, > M_PCI_LINK, M_WAITOK | M_ZERO); > > > -- > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve" = http://www.FreeBSD.org > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org"