From owner-freebsd-arm@freebsd.org Sun Mar 5 10:01:31 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 5B34BCF9483 for ; Sun, 5 Mar 2017 10:01:31 +0000 (UTC) (envelope-from andrew@tao11.riddles.org.uk) Received: from lungold.riddles.org.uk (lungold.riddles.org.uk [82.68.208.19]) (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 102F519FE for ; Sun, 5 Mar 2017 10:01:30 +0000 (UTC) (envelope-from andrew@tao11.riddles.org.uk) Received: from [192.168.127.1] (port=41684 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1ckSyj-0001Ei-NK; Sun, 05 Mar 2017 10:01:25 +0000 Received: from localhost ([127.0.0.1]:41886 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1ckSyi-0008pL-Tp; Sun, 05 Mar 2017 10:01:25 +0000 From: Andrew Gierth To: Mark Millard Cc: "freebsd-arm\@freebsd.org" Subject: Re: Is CPUTYPE=cortex-A7 supposed to work? In-Reply-To: <9677298B-5A5E-44BF-928E-28DDDADB310A@dsl-only.net> (Mark Millard's message of "Sat, 4 Mar 2017 16:35:54 -0800") Message-ID: <87h93814rb.fsf@news-spur.riddles.org.uk> 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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Date: Sun, 05 Mar 2017 10:01:24 +0000 MIME-Version: 1.0 Content-Type: text/plain 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: Sun, 05 Mar 2017 10:01:31 -0000 >>>>> "Mark" == Mark Millard writes: >> 3. The errors aren't consistent at all. For example, sometimes I run >> openssl speed rsa512 and it succeeds without error. When testing >> with git, the failures were not always at the same place. Mark> Interesting. My context had MALLOC_PRODUCTION. I wonder if Mark> without that and having junk filled in systematically might Mark> produce more stable results. (I've no specific evidence that this Mark> would make a difference.) I don't think this can explain my results with git; openssl's sha1 doesn't call malloc (or any library function other than memcpy, memset, OPENSSL_cleanse), and I have logs of the data being hashed that show the wrong results returned. Also, I've checked that while these hashes are being done, there are no other threads in the process. -- Andrew.