From patchwork Sun Dec 11 15:52:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Korsgaard X-Patchwork-Id: 704847 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tc9Tb6QXFz9ssP for ; Mon, 12 Dec 2016 02:52:35 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="p5AUirs8"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DC6CE87141; Sun, 11 Dec 2016 15:52:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kJr++ymSLJTi; Sun, 11 Dec 2016 15:52:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 2BD8487126; Sun, 11 Dec 2016 15:52:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id CB5281BFB1F for ; Sun, 11 Dec 2016 15:52:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C80C387BE9 for ; Sun, 11 Dec 2016 15:52:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m5_O-dNE4TgS for ; Sun, 11 Dec 2016 15:52:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wj0-f196.google.com (mail-wj0-f196.google.com [209.85.210.196]) by fraxinus.osuosl.org (Postfix) with ESMTPS id AF288872C6 for ; Sun, 11 Dec 2016 15:52:28 +0000 (UTC) Received: by mail-wj0-f196.google.com with SMTP id kp2so8210686wjc.0 for ; Sun, 11 Dec 2016 07:52:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=i+gf0UwJT1ttWGY4uZ2OittOjSjkJx8w3Z9kiTC2qwE=; b=p5AUirs8zIBoSKPmCvALljsdWjjGxtin44OCHnb4svZkD0I81/IL4U2KMQ3NRBys6j GNkB02UIYWHy8WB2VJG/QQhUtfcnHPKgLdbaeeYCbzAwVaLpSMsrBQ8tIK864WvEJRwi pGUvuplZco6K4xDNqFYQ8xkKiC0mlLVyMfyPkACuIF3R5CgmrrZrcwOHasgvqklFx2oB K4Ex3PyYXDqcbAQbPiuf4jbnKfIxeUQMN+75PNcqsKKSZcX9pMihI9k7vv0qbpqJlWkE a9P6wTOOD2/odwavpdZJSpFP8/8/FbZQAv7emyC4GFvSx1Qozf7T882/YfvtdcTKpYxB GJGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=i+gf0UwJT1ttWGY4uZ2OittOjSjkJx8w3Z9kiTC2qwE=; b=g96fJSfw8KwnKuTu+6oN1gt+zHFyeS8sILM7Y45hdBdHtq7DuH/gf5pS5nRas8twNy Tw/vC09Ffhv2b+ot6rMglxMFMBiYjFZJIL+2CYFFl0h748RIcOFjv/8JQFp/ZWoQuTgh DmIc2cYEIRGwMOsC45OojIo43lv1pvdF/ZPDHNERMUjr80eCQtU2u944VOIQPeS0RHCB iS2rrPp9DYjK95Q1F6XEWNOOr/Eemic1PUIEqZh5/D2iqxyt9pv2VdLVfvEC7b51E7zq 2kfg+AnQ7UCBl6yMtq5Ig5Xa7zVxL8JB+j+NuleluJb+hJj72rhl8UJm3wxHCWRhIbRF gMiw== X-Gm-Message-State: AKaTC02NVtKwMcsRLXjcECIxDQ47AHJtUsW+FJFm1XQNMl6veZhvFPaqSrd+MyGgSyTTdw== X-Received: by 10.194.91.148 with SMTP id ce20mr89452010wjb.59.1481471547229; Sun, 11 Dec 2016 07:52:27 -0800 (PST) Received: from dell.be.48ers.dk (d51A5BC31.access.telenet.be. [81.165.188.49]) by smtp.gmail.com with ESMTPSA id f3sm31036219wmf.10.2016.12.11.07.52.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Dec 2016 07:52:26 -0800 (PST) Received: from peko by dell.be.48ers.dk with local (Exim 4.88) (envelope-from ) id 1cG6QL-0005wo-KA; Sun, 11 Dec 2016 16:52:25 +0100 From: Peter Korsgaard To: buildroot@buildroot.org Date: Sun, 11 Dec 2016 16:52:19 +0100 Message-Id: <20161211155219.22814-4-peter@korsgaard.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161211155219.22814-1-peter@korsgaard.com> References: <20161211155219.22814-1-peter@korsgaard.com> Subject: [Buildroot] [PATCH 4/4] jpeg-turbo: add simd support for aarch64 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From the 1.5-b1 release notes: Added ARM 64-bit (ARMv8) NEON SIMD implementations of the commonly-used compression algorithms (including the slow integer forward DCT and h2v2 & h2v1 downsampling algorithms, which are not accelerated in the 32-bit NEON implementation.) This speeds up the compression of full-color JPEGs by about 75% on average on a Cavium ThunderX processor and by about 2-2.5x on average on Cortex-A53 and Cortex-A57 cores. Add it unconditionally for all aarch64 cores, as neon support is required for all "standard" ARMv8 implementations. If an ARMv8 implementation w/o NEON ever shows up, then we will need to add a BR2_AARCH64_CPU_HAS_NEON and handle it like ARM. Signed-off-by: Peter Korsgaard --- package/jpeg/Config.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/jpeg/Config.in b/package/jpeg/Config.in index 926f12e..9bf9712 100644 --- a/package/jpeg/Config.in +++ b/package/jpeg/Config.in @@ -7,7 +7,9 @@ config BR2_PACKAGE_JPEG config BR2_PACKAGE_JPEG_SIMD_SUPPORT bool default y if BR2_X86_CPU_HAS_MMX || BR2_ARM_CPU_HAS_NEON || \ - BR2_POWERPC_CPU_HAS_ALTIVEC + BR2_POWERPC_CPU_HAS_ALTIVEC || \ + BR2_aarch64 || BR2_aarch64_be + if BR2_PACKAGE_JPEG