From owner-freebsd-current@FreeBSD.ORG Fri Jan 30 22:12:53 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 70EEB6BA for ; Fri, 30 Jan 2015 22:12:53 +0000 (UTC) Received: from mail-we0-x230.google.com (mail-we0-x230.google.com [IPv6:2a00:1450:400c:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F37AFEBD for ; Fri, 30 Jan 2015 22:12:52 +0000 (UTC) Received: by mail-we0-f176.google.com with SMTP id w62so29513080wes.7 for ; Fri, 30 Jan 2015 14:12:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=YHNMV4DYbIJEr/hSjcRqPX7PnSb8oG3cwk9tPwhxtXw=; b=M15oNjYfTnaYVsbQLMuNsO4GEMcRVcuQhCv8QaRGiyn6UxpOLuiqyQPzX4xXr77pup sQ2loKZAZXkl+pHa3QO8BnYhNCSRN+EiFaeBKStxnt2z1uLI0JCw56KNIlIxcLWX+WVP DoHXTSGbh4m6m+FTtq4/Ad+wQdikvbmUP+NAy4+pIynl5n+/BSaYyQmpJSycE6w6V2MV J6ZrNAHmv+vCGGnYB3c8mumYYkI5Phz56c5a9/lsrVYAr5SdFsJVKrbmfN+hHzItk5th T+1jTc2s7PB1YUQ8UBK+u7m9gWlSiQOAQHcxb+kO9VWDt6orUY8toEL00wXFzq7n8eBJ Bhbg== X-Received: by 10.194.57.43 with SMTP id f11mr16314317wjq.6.1422655971347; Fri, 30 Jan 2015 14:12:51 -0800 (PST) Received: from brick.home (acui16.neoplus.adsl.tpnet.pl. [83.11.88.16]) by mx.google.com with ESMTPSA id hn2sm16706510wjc.5.2015.01.30.14.12.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jan 2015 14:12:50 -0800 (PST) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Fri, 30 Jan 2015 23:12:48 +0100 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Konstantin Belousov Subject: Re: Suspend/resume with i915. Message-ID: <20150130221248.GA8489@brick.home> Mail-Followup-To: Konstantin Belousov , current@FreeBSD.org References: <20150122110201.GA3996@brick.home> <20150123084057.GD42409@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150123084057.GD42409@kib.kiev.ua> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: current@FreeBSD.org 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, 30 Jan 2015 22:12:53 -0000 On 0123T1040, Konstantin Belousov wrote: > 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. Unfortunately stuff was committed before I could test it. Fortunately, it's all fixed now, and works perfectly, on 11-CURRENT. Thanks! :-)