From owner-freebsd-current@FreeBSD.ORG Fri Jan 23 08:41:03 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 361183C1 for ; Fri, 23 Jan 2015 08:41:03 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9C185108 for ; Fri, 23 Jan 2015 08:41:02 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id t0N8ev9m093048 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 23 Jan 2015 10:40:57 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t0N8ev9m093048 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id t0N8evsF093047 for current@FreeBSD.org; Fri, 23 Jan 2015 10:40:57 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 23 Jan 2015 10:40:57 +0200 From: Konstantin Belousov To: current@FreeBSD.org Subject: Re: Suspend/resume with i915. Message-ID: <20150123084057.GD42409@kib.kiev.ua> References: <20150122110201.GA3996@brick.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150122110201.GA3996@brick.home> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home 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: Fri, 23 Jan 2015 08:41:03 -0000 On Thu, Jan 22, 2015 at 12:02:01PM +0100, Edward Tomasz Napiera??a wrote: > 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. > > 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 example, > instead of one flashing cursor there are several, horizontally, across > the window. New windows are simply black. No segv. > > Setting kern.vt.suspendswitch=0 makes the behaviour disappear, replaced > by segmentation faults of gnome-shell. With stock gdb it looks like this: 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. I committed the facility to stop userspace before suspend, and avg promised to integrate this into suspend path, but he did not. You might try to search mailing lists for reference to his earlier patch.