From patchwork Tue Jan 16 18:54:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 861861 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-89262-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="F/EnEr3O"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zLfXd4KjFz9sR8 for ; Wed, 17 Jan 2018 05:54:41 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:cc :subject:content-type; q=dns; s=default; b=mUyMepsfKjZg5Oe0quPuD Znu7DQgXr72o0ZtOjqjfmKpZAadFTzH72IvHxp5eH984cO1cO1OuGyJm+ML4eDge 7wJMEatjjOX4GbisVwrdqyZJpAfNQhlqdbPl8p9Ahajx+3wS6V+CWQg7YWWsgh9r wSL4xU0uMi9i4ij4M8X/94= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:cc :subject:content-type; s=default; bh=3RzmxGzNfq+5WqH6x0lOZFwJ4XU =; b=F/EnEr3OJRVMCyYZG0JGnpYyZYhmZBVVwsaEiOjTyiS3Lj6wv+KlH2ezzBK pUp70xHq/3F4A+MUM6961yCCbYtsUL3CBxHh0BH8JS9i9MfebiV2i26KXPJ1gk2D Znsv/atJ69igM8naTjh3ORQDMY4xSqhfGOzKjeQwn1s61L8A= Received: (qmail 116458 invoked by alias); 16 Jan 2018 18:54:35 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 116434 invoked by uid 89); 16 Jan 2018 18:54:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: EUR01-VE1-obe.outbound.protection.outlook.com Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs.Nagy@arm.com; Message-ID: <5A5E4A63.2070002@arm.com> Date: Tue, 16 Jan 2018 18:54:27 +0000 From: Szabolcs Nagy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: GNU C Library , Alan Hayward CC: nd@arm.com Subject: [committed] aarch64: Update bits/hwcap.h for Linux 4.15. X-ClientProxiedBy: DB6PR06CA0019.eurprd06.prod.outlook.com (2603:10a6:6:1::32) To AM5PR0802MB2484.eurprd08.prod.outlook.com (2603:10a6:203:9b::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d1bc0bc9-0d45-4f10-0e25-08d55d1292b7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(49563074)(7193020); SRVR:AM5PR0802MB2484; X-Microsoft-Exchange-Diagnostics: 1; AM5PR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QMdcb96X038tleJaMjan3+pQPQo=; 4:8XRvUvZWha0yiVshsGEp37EjsdYbJ17jScMHKdLd5JFsuPZY78Rtr/oDL2h1HxiEtC0h9a9OijrptuJlXOTY5DnnwTD5lmgG43qxWgxWXaHzDgA1BZ9BvI9d/vl5m1cEScVUF5CT2DehS4bgRzK36MHtnThZqyAaElSi66evK9omM+G70DxP3dDquyKSSti706Zdp5xxrEZorJHkCMNI1E5e9vaZPq0zh9LjlpYJYYmZRQrqvvZF0q3ejNokFkOZJE8FNsFXdpXHRJkWFsVj5ruEtqmG0El6UYDHZP9MtFlSS7IK4JMDpdXmDTCKudSd X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(102415395)(6040470)(2401047)(8121501046)(5005006)(10201501046)(3231023)(944501161)(3002001)(93006095)(93001095)(6055026)(6041268)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(6072148)(201708071742011); SRVR:AM5PR0802MB2484; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:AM5PR0802MB2484; X-Forefront-PRVS: 0554B1F54F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(39860400002)(39380400002)(366004)(376002)(346002)(396003)(199004)(189003)(377424004)(84326002)(58126008)(83506002)(16526018)(16576012)(5000100001)(305945005)(6116002)(52116002)(59896002)(2476003)(110136005)(4610100001)(59450400001)(3846002)(68736007)(5890100001)(97736004)(8676002)(33964004)(87266011)(386003)(16586007)(33656002)(316002)(65816011)(6636002)(6486002)(25786009)(77096006)(270700001)(15650500001)(36756003)(86362001)(8936002)(478600001)(66066001)(65956001)(21490400003)(2906002)(5660300001)(65806001)(7736002)(53936002)(72206003)(81166006)(4326008)(64126003)(81156014)(568964002)(80316001)(26005)(105586002)(106356001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0802MB2484; H:[10.2.206.69]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1; AM5PR0802MB2484; 23:A7R37pkTW5pyKnCFBEvbfOdQbRKlMMZK+4VjqUMHGylgCMutdldyaFasVNrX2u4p0lOnJNWuLZ6Kdb4H7p171R5ejUvi66b20BMnod1Rp2NVCEehPGb2vpEKVT+laVfgorWvlMwGz+5WVjCkL7h+/EvtZCpirS/5hwaM1EJp2+1BgK9rqumgfJtPKpdkERw05U5MFX9//OZLgoAj0INPRvVa4t2Hbr47DA3HQ9X31+C/0nxHDAAJv3U6+zKIaFzvWWSY1ER+H3X59nR5giF5GI5wxEBLec4Mz40Wy7vFBh3G/BTMJLQqzeBgMXcj8zwVeSc4bTfJGhNZkKuVNiXwCGO2gka+x/3dO8BWXL7B0K93UdBCjpi8ilgMazD5oGN1n3CEUZjll6+mwii47gjpRtI9YX7zwil0KAv1FaRvpiipHvfnZW6LI+dfHg6fhmu7c1rCLU2rwNd0qDlySIVJiy2bSqH0L8psjBoE+ZqD/VlkrnRd9UPOg41U6cNgmHmBjp0F8t7fu814KLrMbepE55qgsctFGMs+9YvPcTYsLvdlyCU+lBBwDntN6KRtFulyaGz6p9zFUB3aWAV20vQomMptdxVJt9N1pSgg8t400TSWsd0MtZ7puWKdek/vyftofhs26G6WQoa4AEqAgeZwP0bAbelVz0tTW823gtoSUiz1nxInJjKgHaa6YEWYuIzW2vdj5WCSiP977/AnseDoczKOlNKIGXOi8/N4LbyR77iMT1F6wsGs+hceC+vYefMDjIq2fZrYWGqC5t1nCJXamGjQu7i6C0W2p14lRvVn8vyZpCqVP4r5iPc9anTCAPc7neFArZx0hYm6sB293qsj38sRW37m1O2eUbRbcb/wdrxvd4VjdsIU6gWEM8bkzMZfVl2bcmiIob8egVl0UN6kxGLVLPm1GXY1E9vB3ts3DwIpHCPr864alHRbDsreDGS5bS1XJY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cfDltWw1WlFNMbfKOGkbIXL8KZgnWeKqa8=; 24:Uvqrok9cbczQ+CPJnCWHHYxN7dvo5rWcgOeX3jPQArOt3bWHeYQaAmpK4mL/gl4zwpIY0jDG5GNtChaYPFD+t1vaSXS1dpsjGoFXfAxJbG4=; 7:iKtYX9uxO9UYE+76NCweWEuUwbb8wWqPE8rD+/9qpwKFQdjwb3gYGkzCvYhEP4+05ILAt37A2o/5NFvPW7mS32f/3V/kAoYrNf2HtWLOyTCrGH1QwHGHDCBY2B2Sg2l84t0axpdWle4ZwW3ffaKuB1n0iZs51FtUGndWvoAXthb4FekyhEKBCjCzXE/WXLuOpkdLnXdTzko5R5e8+Zy8KJ6kCcFEXBMH5zeJbOiR+mlXpwuSs07lKJCQTv4c42FT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 18:54:29.3339 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d1bc0bc9-0d45-4f10-0e25-08d55d1292b7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0802MB2484 Define new HWCAP bits and add their name to dl-procinfo.c following the linux definitions. Synchronizing with v4.15-rc8 version of linux, these are not expected to change before the 4.15 release. 2018-01-16 Szabolcs Nagy * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define. (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define. * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_dl_aarch64_cap_flags): Update. (_DL_HWCAP_COUNT): Update. diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h index 5a101562e7..569eb07f17 100644 --- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h +++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h @@ -38,3 +38,9 @@ #define HWCAP_FCMA (1 << 14) #define HWCAP_LRCPC (1 << 15) #define HWCAP_DCPOP (1 << 16) +#define HWCAP_SHA3 (1 << 17) +#define HWCAP_SM3 (1 << 18) +#define HWCAP_SM4 (1 << 19) +#define HWCAP_ASIMDDP (1 << 20) +#define HWCAP_SHA512 (1 << 21) +#define HWCAP_SVE (1 << 22) diff --git a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c index 2da8d7b910..940f64875b 100644 --- a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c +++ b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c @@ -57,7 +57,7 @@ PROCINFO_CLASS struct cpu_features _dl_aarch64_cpu_features #endif /* Number of HWCAP bits set. */ -#define _DL_HWCAP_COUNT 16 +#define _DL_HWCAP_COUNT 23 #if !defined PROCINFO_DECL && defined SHARED ._dl_aarch64_cap_flags @@ -68,7 +68,7 @@ PROCINFO_CLASS const char _dl_aarch64_cap_flags[_DL_HWCAP_COUNT][10] /* Matches the names in arch/arm64/kernel/cpuinfo.c of Linux. */ = { "fp", "asimd", "evtstrm", "aes", "pmull", "sha1", "sha2", "crc32", "atomics", "fphp", "asimdhp", "cpuid", "asimdrdm", "jscvt", "fcma", - "lrcpc" } + "lrcpc", "dcpop", "sha3", "sm3", "sm4", "asimddp", "sha512", "sve" } #endif #if !defined SHARED || defined PROCINFO_DECL ;