Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2004 17:41:42 -0800
From:      t12 <donnie@opus.bloomcounty.org>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: More power patches
Message-ID:  <20040108014142.GA83067@bloomcounty.org>
In-Reply-To: <20040107.174135.21620917.imp@bsdimp.com>
References:  <20040107.171023.63338658.imp@bsdimp.com> <20040108011846.I605@korben.in.tern> <20040108012646.Q605@korben.in.tern> <20040107.174135.21620917.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <network, ethernet> 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: <network, ethernet> 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: <simple comms> at device 31.6 (no driver attached)
pci0: Failed to set ACPI power state D3 on (null): AE_BAD_PARAMETER
...
ehci0: <EHCI (generic) USB 2.0 controller> 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: <EHCI (generic) USB 2.0 controller> 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: <Intel(R) PRO/1000 Network Connection, Version 1.7.19> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040108014142.GA83067>