From owner-freebsd-mobile@FreeBSD.ORG Wed Jan 7 17:41:49 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACE3716A4CE for ; Wed, 7 Jan 2004 17:41:49 -0800 (PST) Received: from opus.bloomcounty.org (opus.bloomcounty.org [64.202.6.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 148D043D31 for ; Wed, 7 Jan 2004 17:41:45 -0800 (PST) (envelope-from t12@bloomcounty.org) Received: by opus.bloomcounty.org (Postfix, from userid 1020) id DFE786A; Wed, 7 Jan 2004 17:41:42 -0800 (PST) Date: Wed, 7 Jan 2004 17:41:42 -0800 From: t12 To: "M. Warner Losh" Message-ID: <20040108014142.GA83067@bloomcounty.org> References: <20040107.171023.63338658.imp@bsdimp.com> <20040108011846.I605@korben.in.tern> <20040108012646.Q605@korben.in.tern> <20040107.174135.21620917.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040107.174135.21620917.imp@bsdimp.com> User-Agent: Mutt/1.4i cc: freebsd-mobile@freebsd.org Subject: Re: More power patches X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 01:41:49 -0000 On Wed, Jan 07, 2004 at 05:41:35PM -0700, M. Warner Losh wrote: > OK. I've updated the patch > > http://people.freebsd.org/~imp/power-20040107.diff > > The old patch is available as power-20040107.diff-, but I don't see > why you'd want it. > Applied this patch to 5.2-RC2 source tree, dont know if thats what was intended. Machine is a Thinkpad T-41. Feel free to contact me for any information. Had to adjust one line in src/sys/dev/pci/pci.c, the prototype for pci_add_map ro reflect the functions definition. Built clean after that. notable things in dmesg: ... pci2: at device 1.0 (no driver attached) pci2: Failed to set ACPI power state D3 on (null): AE_BAD_PARAMETER pci2:1:0: setting power state D3 pci2: at device 2.0 (no driver attached) pci2: Failed to set ACPI power state D3 on (null): AE_BAD_PARAMETER pci2:2:0: setting power state D3 ... pci0: at device 31.6 (no driver attached) pci0: Failed to set ACPI power state D3 on (null): AE_BAD_PARAMETER ... ehci0: mem 0xc0000000-0xc00003ff irq 11 at device 29.7 on pci0 ehci0: Bus reserved 0x400 bytes for rid 0x10 type 3 at 0xc0000000 ehci0: Bus reserved 0x1 bytes for rid 0 type 1 at 0xb ehci_pci_attach: companion usb0 ehci_pci_attach: companion usb1 ehci_pci_attach: companion usb2 usb4: EHCI version ff.ff usb4: wrong number of companions (15 != 3) ehci0: USB init failed err=13 device_probe_and_attach: ehci0 attach returned 5 If i try and kldload if_em the following prints to screen, and the system hangs. cannot jump into kernel debugger. This is notibly the same hang i get on resume from ACPI S3, cursor moves to upper left corner of screen, console becomes unresponsive, cant kernel debug. (this is transcribed from screen to paper and back, so there may be a few problems) ehci0: mem 0xc0000000-0xc000003ff irq 11 at device 29.7 on pci0 ehci0: Bus reserved 0x400 bytes for rid 0x10 type 3 at 0xc0000000 ehci0: Bus reserved 0x1 bytes for rid 0 type 1 at 0xb ehci_pci_attach: companion usb0 ehci_pci_attach: companion usb1 ehci_pci_attach: companion usb2 usb5: EHCI version ff.ff usb5: wrong number of companions (15 != 3) ehci0: USB init failed err=13 device_probe_and_attach: echi0 attach returned 5 em0: port 0x8000-0x803f m em 0xc020000000-0xc020ffff, 0xc2220000-0xc023ffff irq 11 at device 1.0 on pci2 em0: memory access and/or Bus Master bits were not set! em0: Bus reserved 0x20000 bytes for rid 0x10 type 3 at 0xc0220000 em0: Bus reserved 0x40 bytes for rid 0x18 type 4 at 0x8000 -t12