From owner-freebsd-acpi@FreeBSD.ORG Tue Dec 30 18:36:17 2008 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C191710656ED for ; Tue, 30 Dec 2008 18:36:17 +0000 (UTC) (envelope-from cokane@FreeBSD.org) Received: from mail-out2.fuse.net (mail-out2.fuse.net [216.68.8.171]) by mx1.freebsd.org (Postfix) with ESMTP id D77698FC0C for ; Tue, 30 Dec 2008 18:36:16 +0000 (UTC) (envelope-from cokane@FreeBSD.org) X-CNFS-Analysis: v=1.0 c=1 a=scPTdAk-8dwA:10 a=ITL-bk1Uq2MA:10 a=LkYvsgB9u1MH7Ao0BLhsLg==:17 a=oiDdxpF_g3ZRe-P72scA:9 a=Bz0Q-Nup_vJ1x0uHs70A:7 a=IjorOl_Vxl2jcVrkhvkJWkrt_dwA:4 a=LY0hPdMaydYA:10 a=3IdGcXroHttcWjgKWRgA:9 a=7tdnEi72CCdBQGHY-dOgvtUnPmgA:4 a=zUag4SK0oKcA:10 a=c0y7RCPZxcosOf-cp3_x65E7yfgA:4 a=2pGpJdkGp6Vf-VDfrmgA:9 a=UK_625tAqSFhDzdhusv9ugEvQfUA:4 a=rPt6xJ-oxjAA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Received: from [74.215.227.9] ([74.215.227.9:50379] helo=discordia) by mail-out2.fuse.net (ecelerity 2.1.1.22 r(17669)) with ESMTP id B5/5A-26658-F1A6A594 for ; Tue, 30 Dec 2008 13:36:16 -0500 Received: by discordia (Postfix, from userid 103) id B0F651DB2F9; Tue, 30 Dec 2008 13:36:15 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.1.8-gr1 (2007-02-13) on discordia X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.8-gr1 Received: from [172.20.1.3] (erwin.int.cokane.org [172.20.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by discordia (Postfix) with ESMTP id DF0451DB2F9; Tue, 30 Dec 2008 13:36:08 -0500 (EST) From: Coleman Kane To: Nate Lawson In-Reply-To: <49593036.4030306@root.org> References: <1230564886.2280.11.camel@localhost> <4958F887.2010203@root.org> <1230579699.2386.5.camel@localhost> <49593036.4030306@root.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-vxnksRYNvlSB2ZsATOl3" Organization: FreeBSD Project Date: Tue, 30 Dec 2008 13:36:12 -0500 Message-Id: <1230662172.1702.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Cc: freebsd-acpi@FreeBSD.org Subject: Re: amd64 S3 patch on HP 6715b: NICs won't work after resume from S3 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, 30 Dec 2008 18:36:19 -0000 --=-vxnksRYNvlSB2ZsATOl3 Content-Type: multipart/mixed; boundary="=-UxjmW1yCYxVrM8Rikkwb" --=-UxjmW1yCYxVrM8Rikkwb Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2008-12-29 at 12:16 -0800, Nate Lawson wrote: > Coleman Kane wrote: > > On Mon, 2008-12-29 at 08:19 -0800, Nate Lawson wrote: > >> Coleman Kane wrote: > >>> I've been testing Jung-uk Kim's recent amd64 suspend patch on my HP > >>> notebook, and it seems to be very close to working well. > >>> > >>> The notebook goes into S3 state properly, but when it comes back out = it > >>> seems that the hardware is left in a bad state. I cannot attach my > >>> if_bge and if_ndis network drivers after a resume. > >> Dump the pci config register states for those devices both before and > >> after the resume. Where the bits differ is probably where you'll find > >> the problem. > >> > >> Example to read 256 bytes: > >> pciconf -r pci0:4:0 0:256 > >> > >=20 > > Tried that, and I also tried to use pciconf -w to set the registers to > > the initial state of the hardware before if_bge is loaded. I still get > > the following messages when I attempt to reload the kld after the > > resume, followed by a failed attach: > >=20 > > bge0: mem 0xd0000000-0xd= 000ffff irq 16 at device 0.0 on pci16 > > bge0: firmware handshake timed out, found 0x4b657654 > > bge0: firmware handshake timed out, found 0x4b657654 > > bge0: RX CPU self-diagnostics failed! > > bge0: chip initialization failed > > device_attach: bge0 attach returned 6 > >=20 > > Anyone have success with S3 on amd64 or i386 with if_bge cards? >=20 > Did you post the register states before and after? >=20 Attached are the before and after snapshots of the device's PCI register space. I need to track down a good table to mate these with. In this case, I didn't unload the driver, as the if_bge driver is supposed to be able to properly handle suspend/resume now. These are dumps of the whole 256-byte register space, using: pciconf -r -b pci0:16:0:0 0:0x100 --=20 Coleman Kane --=-UxjmW1yCYxVrM8Rikkwb Content-Disposition: attachment; filename=bge0-after-s3.txt Content-Type: text/plain; name=bge0-after-s3.txt; charset=UTF-8 Content-Transfer-Encoding: base64 ZTQgMTQgOTMgMTYgMDYgMDAgMTAgMDAgIDAyIDAwIDAwIDAyIDEwIDAwIDAwIDAwIA0KMDQgMDAg MDAgZDAgMDAgMDAgMDAgMDAgIDAwIDAwIDAwIDAwIDAwIDAwIDAwIDAwIA0KMDAgMDAgMDAgMDAg MDAgMDAgMDAgMDAgIDAwIDAwIDAwIDAwIDNjIDEwIGMyIDMwIA0KMDAgMDAgMDAgMDAgNDggMDAg MDAgMDAgIDAwIDAwIDAwIDAwIDEwIDAxIDAwIDAwIA0KMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAg IDAxIDUwIDAzIGMwIDA4IDIxIDAwIDY0IA0KMDMgNTggMDAgMDAgOWMgN2IgYWEgZmYgIDA5IGU4 IDc4IDAwIGVmIDBhIGRlIGViIA0KMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgIDAwIDAwIDAyIGIw IDAwIDAwIDAwIDEwIA0KMTIgMTIgMDAgMDAgYTAgMDAgMDAgMDAgIDIwI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AgMDAgOWMgN2IgYWEgZmYgIDA5IGU4 IDc4IDAwIGVlIDA4IGRlIGNiIA0KMDAgMDAgMDAgMDAgMDAgMDAgMDAgMDAgIDhhIDAwIDAyIGIw IDAwIDAwIDE4IDc2IA0KMTIgMTIgMDAgMDAgYTAgMDAgMDAgMDAgIDIwIDcwIDAwIDAwIDAwIDAw IDAwIDAwIA0KMDAgMDAgMDAgMDAgNTAgMGIgMDAgMDQgIDM0IDAwIDEyIDA0IDgyIDQwIDA4IDAw IA0KMjEgMDIgMDAgMDAgMDAgMDAgMDAgMDAgIDAwIDAwIDAwIDAwIDAwIDAwIDAwIDAwIA0KMDAg MDAgMDAgMDAgMDAgMDAgMDAgMDAgIDAwIDAwIDAwIDAwIDAwIDAwIDAwIDAwIA0KMDAgMDAgMDAg MDAgMDAgMDAgMDAgMDAgIDAwIDAwIDAwIDAwIDAwIDAwIDAwIDAwIA0KMDAgMDAgMDAgMDAgMDAg MDAgMDAgMDAgIDBlIDAwIDAwIDAwIDAwIDAwIDAwIDAwIA0KMTAgMDAgMDEgMDAgYTAgOGYgMDAg MDAgIDAwIDUwIDEwIDAwIDExIDZjIDA3IDAwIA0KMDIgMDEgMTEgMTAgMDAgMDAgMDAgMDAgIDA1 IGQwIDgxIDAwIDAwIDAwIGUwIGZlIA0KMDAgMDAgMDAgMDAgMzEgMDAgMDAgMDAgIDAwIDAwIDAw IDAwIDAwIDAwIDAwIDAwIA0K --=-UxjmW1yCYxVrM8Rikkwb-- --=-vxnksRYNvlSB2ZsATOl3 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAklaahgACgkQcMSxQcXat5cMHwCfe/kATmCzudniHgQf/Y0zCAzk pp4AnA34VCUnBLvFYTRkZqltqK1xqm0w =AUfi -----END PGP SIGNATURE----- --=-vxnksRYNvlSB2ZsATOl3--