From owner-freebsd-current@FreeBSD.ORG Sun Feb 1 09:13:10 2015 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C9AD4D17 for ; Sun, 1 Feb 2015 09:13:10 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 86AFBB2B for ; Sun, 1 Feb 2015 09:13:10 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id E5B2C6A6072; Sun, 1 Feb 2015 10:13:06 +0100 (CET) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id t119D6oQ038258; Sun, 1 Feb 2015 10:13:06 +0100 (CET) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id t119D6mc037280; Sun, 1 Feb 2015 10:13:06 +0100 (CET) (envelope-from lars) Date: Sun, 1 Feb 2015 10:13:06 +0100 From: Lars Engels To: Konstantin Belousov , current@FreeBSD.org Subject: Re: Suspend/resume with i915. Message-ID: <20150201091305.GM41565@e-new.0x20.net> References: <20150122110201.GA3996@brick.home> <20150123084057.GD42409@kib.kiev.ua> <20150130221248.GA8489@brick.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OGW1Z2JKiS9bXo17" Content-Disposition: inline In-Reply-To: <20150130221248.GA8489@brick.home> X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p23 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2015 09:13:11 -0000 --OGW1Z2JKiS9bXo17 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 30, 2015 at 11:12:48PM +0100, Edward Tomasz Napiera=C5=82a wrot= e: > On 0123T1040, Konstantin Belousov wrote: > > On Thu, Jan 22, 2015 at 12:02:01PM +0100, Edward Tomasz Napiera??a wrot= e: > > > I'm trying to fix resume on my T61, broken by some change several > > > months ago; according to pciconf it's 'Mobile GM965/GL960 Integrated > > > Graphics Controller (primary)'. It's running current CURRENT and > > > up to date packages. > > >=20 > > > Suspend and resume makes Xorg do something weird - there is screen > > > corruption, or rather window corruption. The GNOME 3 desktop looks > > > pretty normal, except that gnome-terminal (launched before suspend) > > > window looks as if the buffer layout changed underneath it; for examp= le, > > > instead of one flashing cursor there are several, horizontally, across > > > the window. New windows are simply black. No segv. > > >=20 > > > Setting kern.vt.suspendswitch=3D0 makes the behaviour disappear, repl= aced > > > by segmentation faults of gnome-shell. With stock gdb it looks like = this: > >=20 > > At least one big known issue with suspend is that userspace activity > > is not stopped, which makes the driver suspend code operating on the > > non-steady state of devices. > >=20 > > I committed the facility to stop userspace before suspend, and avg prom= ised > > to integrate this into suspend path, but he did not. You might try to > > search mailing lists for reference to his earlier patch. >=20 > Unfortunately stuff was committed before I could test it. Fortunately, > it's all fixed now, and works perfectly, on 11-CURRENT. Thanks! :-) I can add that suspend/resume now works reliable again on my X230. --OGW1Z2JKiS9bXo17 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJUze4hXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1tJ2oH/RjIai5Qtq/7mVlRPHhkChcW 9UTADtg/utVYuCYtQr1R+ejTPfuCR6BF3TQpt0msiwAFvgTBxzTD080tUexaqifd S4C6gASX8RqgajR8YSiM1LDUMkpmYyWc5yHkC0sKM+sjNN7GYOSKkOdCEmMOiFNL VNJzZCd+8T0KbYKfZ3/mpBhAQn/UojONB1NkRqVTQ8/mO2g3a2F5vwfZiRES2rVc 6t25Z2j8G/e9lLzv5nH7sIBq5gMa/Gw+V0QGEizi1qmG2lnplGeMOeXSIfGkgADb lFx4/91QYDGRiV8BLDr/9wMLwknOwWntfGzYah1SVmQ8oqPpnW7mJoHWpmb4nEM= =SD17 -----END PGP SIGNATURE----- --OGW1Z2JKiS9bXo17--