From owner-freebsd-arm@freebsd.org Mon Mar 6 04:26:59 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7302FCFB9DB for ; Mon, 6 Mar 2017 04:26:59 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-200.reflexion.net [208.70.211.200]) (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 1F56018F3 for ; Mon, 6 Mar 2017 04:26:58 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 696 invoked from network); 6 Mar 2017 04:29:10 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 6 Mar 2017 04:29:10 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.30.2) with SMTP; Sun, 05 Mar 2017 23:26:51 -0500 (EST) Received: (qmail 14391 invoked from network); 6 Mar 2017 04:26:50 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 6 Mar 2017 04:26:50 -0000 Received: from [192.168.1.111] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 43429EC885D; Sun, 5 Mar 2017 20:26:50 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: Is CPUTYPE=cortex-A7 supposed to work? From: Mark Millard In-Reply-To: <8760jnfvwp.fsf@news-spur.riddles.org.uk> Date: Sun, 5 Mar 2017 20:26:49 -0800 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <3056BE0A-6441-4878-905D-741C61BDC47C@dsl-only.net> References: <871suc3nv8.fsf@news-spur.riddles.org.uk> <87tw7820fc.fsf@news-spur.riddles.org.uk> <644D1F49-BF5D-409D-BFC4-4F7E6E73085B@dsl-only.net> <87lgsk1udz.fsf@news-spur.riddles.org.uk> <9677298B-5A5E-44BF-928E-28DDDADB310A@dsl-only.net> <87h93814rb.fsf@news-spur.riddles.org.uk> <70AE704A-C9FF-4742-88E9-147CD5B77BE8@dsl-only.net> <87tw77iwx6.fsf@news-spur.riddles.org.uk> <8760jnfvwp.fsf@news-spur.riddles.org.uk> To: Andrew Gierth , Warner Losh X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 04:26:59 -0000 On 2017-Mar-5, at 10:14 AM, Andrew Gierth = wrote: >>>>>> "Andrew" =3D=3D Andrew Gierth = writes: >=20 > Andrew> emacs-25.1,3 built with x11 support and running in graphical > Andrew> mode is unstable; crashes randomly either with a mutex > Andrew> assertion (enqueue_mutex complaining that the mutex is already > Andrew> owned) or with SEGV. Running in text mode, it doesn't crash, > Andrew> but hitting pagedown in some buffers (where there are many > Andrew> similar lines) _reliably_ produces incorrect display output in > Andrew> which some characters are displaced by 4: >=20 > Extra bonus strangeness: recompiling just emacs without cortex-a7 does > not fix either of these, so it's not an issue with miscompiling any of > the emacs code. This is consistent with my experimentation with git. >=20 > --=20 > Andrew. I'm currently sticking with some known failures in the base system: openssl speed failures. (A signal based program crash without X11 involved could be interesting.) Disabling the use of NEON via a hack removes the "openssl speed" problem. With: /usr/src/crypto/openssl/crypto/armcap.c : . . . void OPENSSL_cpuid_setup(void) { . . . } else if (sigsetjmp(ill_jmp, 1) =3D=3D 0) { _armv7_neon_probe(); #ifndef DISABLE_HACK_THAT_AVOIDS_NEON OPENSSL_armcap_P |=3D ARMV7_NEON; #endif . . . "openssl speed" completes normally. This can also be done from gdb by setting OPENSSL_armcap_P after the: OPENSSL_armcap_P |=3D ARMV7_NEON; executes in order to turn off the bit. =3D=3D=3D Mark Millard markmi at dsl-only.net