From owner-freebsd-acpi@freebsd.org Sat Oct 17 16:00:46 2015 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EE628A179C1 for ; Sat, 17 Oct 2015 16:00:45 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D385218D8; Sat, 17 Oct 2015 16:00:45 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by freefall.freebsd.org (Postfix) with ESMTP id 682E01323; Sat, 17 Oct 2015 16:00:45 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Date: Sat, 17 Oct 2015 16:00:43 +0000 From: Glen Barber To: Eric McCorkle Cc: "freebsd-acpi@freebsd.org" Subject: Re: Old suspend/resume issue likely root cause Message-ID: <20151017160043.GJ15305@FreeBSD.org> References: <5622648F.2090509@metricspace.net> <20151017151447.GH15305@FreeBSD.org> <56226FD1.4070806@metricspace.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ucfHZChuBC0NsER/" Content-Disposition: inline In-Reply-To: <56226FD1.4070806@metricspace.net> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event X-PEKBAC-Definition: Problem Exists, Keyboard Between Admin/Computer User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2015 16:00:46 -0000 --ucfHZChuBC0NsER/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 17, 2015 at 11:57:05AM -0400, Eric McCorkle wrote: > On 10/17/15 11:14, Glen Barber wrote: > >On Sat, Oct 17, 2015 at 11:09:03AM -0400, Eric McCorkle wrote: > >>A while back (in May or June or so), I was attempting to figure out why= my > >>laptop screen stayed blank on suspend/resume. I posted some dmesg outp= uts > >>and theorized that it might be something about the devices coming back = up in > >>the wrong order. John Baldwin suggested I try doing > >>hw.pci.do_power_suspend=3D0. > >> > >>I got tangled up with other projects and had to set it aside. However,= I > >>now finally have more information: > >> > >> > >>* hw.pci.power_suspend=3D0 does cause the screen to come back up proper= ly. > >>The network (wireless via iwm driver) needs to be re-initialized, but > >>everything else seems to work properly. > >> > >>* Without hw.pci.power_suspend=3D0, the issue persists even when bootin= g from > >>EFI, so we can rule out some kind of legacy BIOS issue. The issue mani= fests > >>even with the experimental i915 driver, so we can rule out something wi= th > >>the efifb or VGA framebuffer drivers. > >> > >> > >>Based on this, it looks pretty likely that the pci bus is the culprit. = Any > >>suggestions on where to look? > > > >What graphics chipset do you have? I noticed with dumbbell's i915kms > >update branch [1], suspend/resume now works for me with Haswell > >graphics, whereas previously I would experience the same blank screen on > >resume you report. >=20 > Intel i7-4700. I tried suspend with the i915kms driver active, hoping th= at > would do the trick, but it didn't work. >=20 I missed in your first email you mentioned the "experimental i915 driver." Is this the driver update from the branch I linked to? >=20 > >(And I also see the iwm(4) reinitialization issue, as well.) >=20 > The workaround there is just to take netif, wpa_supplicant, dhclient, and > rtsold down in rc.suspend and bring them back up in rc.resume. >=20 Yep, that's basically what I did to work around this. > >[1] https://github.com/freebsd/freebsd-base-graphics.git branch > > drm-i915-update-38 > > Glen --ucfHZChuBC0NsER/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWInCrAAoJEAMUWKVHj+KT9CAP/0zNoqoacutJMblBY2JOH9R3 DuYdHDlBwgC3eX1fI0OSXL8M6fDNu6HDWdhSXPCIZ0W0zsvapEYciVYYYiQudXeT iref1St96pfHrri0dkqzGkc94JWrtJqqbBNfn1qk/yMG8xYiv4OEJl+b2s8E2Dkh rLrJF4CoTrk5j1Ubvho6JmsuaXWIgYObM84tEuuMpNz3upIGJZnw7jAoZy5GgiZt VnsiFtvTbtQ//vDPJ5TfHJFH3duEabS+yiHLCH8NbbHh9YQpFDLQMoFNBPBAqfc2 ITnLEw4NBzRgpmQpPtsaFkvCJ+dO2uAkGvomzPxEZ2yysJblZPnBLOsp+j/BrpTe KUx7qZv4PRMLt4sJKiPfYuZLCzhCnMIAgrNqaEKac7465HYncGIcwdZo5g31d/kk Hv/KDiF9zvXqN2Q8oUCyAjZlc30xDL1iDYCFKAAmS8wu4pD8HLhql8jVnPQy80dH jycWIbJ4heSdSy3PBrWkq7ZDhocKGAbqndBFZ5z7GG83qOO8IMmVPPUtoR7BPHxV V3YCQEj55JDstfbo9ejlRzchXYtX2iB3JHguCgA92OATta+PfhLZGRjioQuEhUzK 6MiSvXWlb7JSjT1FEdrqSTn8N230ZuLUkYbRODhNwDcmZPxgnjKPSVSsPeDBCaHD m0cBQmoEOGkQUGE8RuTW =K2SH -----END PGP SIGNATURE----- --ucfHZChuBC0NsER/--