From owner-freebsd-current@FreeBSD.ORG Tue Mar 4 19:47:30 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by hub.freebsd.org (Postfix) with ESMTP id B0604358; Tue, 4 Mar 2014 19:47:29 +0000 (UTC) Message-ID: <53162DD1.3090604@FreeBSD.org> Date: Tue, 04 Mar 2014 14:47:29 -0500 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: John Baldwin , Adrian Chadd Subject: Re: signal 8 (floating point exception) upon resume References: <201403031411.00805.jhb@freebsd.org> <201403041124.04122.jhb@freebsd.org> In-Reply-To: <201403041124.04122.jhb@freebsd.org> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Mitsuru IWASAKI , freebsd-current , Konstantin Belousov , Bruce Evans , "freebsd-mobile@freebsd.org" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 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: Tue, 04 Mar 2014 19:47:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2014-03-04 11:24:04 -0500, John Baldwin wrote: > 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 The patch for sys/amd64/amd64/cpu_switch.S is committed: http://svnweb.freebsd.org/changeset/base/262746 i386 patches may be reviewed by the original author (CC'ed). Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQEcBAEBAgAGBQJTFi3RAAoJEHyflib82/FGnboH/3qrAp+Eq/0eebEP/9wU0Ke/ y4y4yvw9nDVexKZ+c5VuTxyWvK9O0w2b+r3f5kuHWferOm22NaJCctt3E/OA5Ly2 1p3ZPvqD5cRZfkdh68AwEeJv93lg84VMSUqNUfS9rsrIU+WpHpPR46sdLpq5KxSP cY2522npmoPrwk+PaTJS4uBQeaX/3vnj5996zxavwVqwlYyR+Zqgi6FhGj+F2RJ1 Ry+9icyNx/8lUfRTLCPsCBRjlUKUk/p/8bfbQK4mSef5Gd8ZAiqdyKqgdMBUYhNA ZplkpijJjvlIIc0dYSwg8gMKmaB6amgw/LJGQit9nTkBU2bOd6L05f1dCpYAxDE= =x0sS -----END PGP SIGNATURE-----