From owner-freebsd-mobile@FreeBSD.ORG Tue Mar 4 18:38:21 2014 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 28D1B42B; Tue, 4 Mar 2014 18:38:21 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F140489A; Tue, 4 Mar 2014 18:38:20 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id C2745B94B; Tue, 4 Mar 2014 13:38:18 -0500 (EST) From: John Baldwin To: Adrian Chadd Subject: Re: signal 8 (floating point exception) upon resume Date: Tue, 4 Mar 2014 11:24:04 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <201403031411.00805.jhb@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201403041124.04122.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 04 Mar 2014 13:38:18 -0500 (EST) Cc: freebsd-current , Konstantin Belousov , Bruce Evans , Jung-uk Kim , "freebsd-mobile@freebsd.org" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2014 18:38:21 -0000 On Monday, March 03, 2014 6:49:08 pm Adrian Chadd wrote: > I'll try this soon. > > I had it fail back to newcons, rather than Xorg normally dying without > restoring state. It wouldn't let me spawn a shell. Logging in worked > fine, but normal shell exec would eventually and quickly lead to > failure, dropping me back to the login prompt. If you have set CPUTYPE in /etc/src.conf such that your userland binaries are built with SSE, etc. then I expect most things to break because the FPU is in a funky state without this patch. I suspect if you don't set CPUTYPE so that your userland binaries do not use the FPU, you can probably resume just fine without this fix. > -a > > > On 3 March 2014 11:11, John Baldwin wrote: > > On Friday, February 28, 2014 9:00:57 pm Adrian Chadd wrote: > >> On 28 February 2014 15:35, Adrian Chadd wrote: > >> > ... how'd this ever work in the past then? > >> > > >> > >> .. and I've submitted it as a PR: > >> > >> kern/187152 > > > > Complete stab in the dark (not compile tested) here: > > > > http://www.FreeBSD.org/~jhb/patches/i386_fpu_suspend.patch > > > > -- > > John Baldwin > -- John Baldwin