From owner-freebsd-arm@freebsd.org Thu Oct 19 23:26:00 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 E547FE49E12 for ; Thu, 19 Oct 2017 23:26:00 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C5B9684B87; Thu, 19 Oct 2017 23:26:00 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id 8AC3810A7DB; Thu, 19 Oct 2017 19:25:57 -0400 (EDT) From: John Baldwin To: freebsd-arm@freebsd.org Cc: Jan Beich Subject: Re: AT_HWCAP support on aarch64 Date: Thu, 19 Oct 2017 11:30:57 -0700 Message-ID: <3317147.pUqZiAYRoN@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Thu, 19 Oct 2017 19:25:57 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean 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: Thu, 19 Oct 2017 23:26:01 -0000 On Thursday, October 19, 2017 02:04:46 AM Jan Beich wrote: > armv6 and armv7 recently gained support to check NEON or VFP* at runtime. > However, some ports want to take advantage of AES, CRC32, SHA1, SHA256 > acceleration on aarch64 as well. > > Do you plan to support any HWCAP_* for AT_HWCAP on aarch64? > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223016 > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223019 (ditto Chromium) > http://elixir.free-electrons.com/linux/latest/source/arch/arm64/include/uapi/asm/hwcap.h I think there is certainly a desire to do so, it should just be a matter of populating a hwcap variable and setting it in sysentvec. -- John Baldwin