{"id":819293,"url":"http://patchwork.ozlabs.org/api/patches/819293/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/patch/1506542999-97895-2-git-send-email-patrick.mcgehearty@oracle.com/","project":{"id":41,"url":"http://patchwork.ozlabs.org/api/projects/41/?format=json","name":"GNU C Library","link_name":"glibc","list_id":"libc-alpha.sourceware.org","list_email":"libc-alpha@sourceware.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1506542999-97895-2-git-send-email-patrick.mcgehearty@oracle.com>","list_archive_url":null,"date":"2017-09-27T20:09:57","name":"[1/3] sparc: support the ADP hw capability.","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"2f4e929bea52769b8511d603be07690028756b42","submitter":{"id":72081,"url":"http://patchwork.ozlabs.org/api/people/72081/?format=json","name":"Patrick McGehearty","email":"patrick.mcgehearty@oracle.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/glibc/patch/1506542999-97895-2-git-send-email-patrick.mcgehearty@oracle.com/mbox/","series":[{"id":5435,"url":"http://patchwork.ozlabs.org/api/series/5435/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/list/?series=5435","date":"2017-09-27T20:09:56","name":"sparc M7 optimized memcpy/memset","version":1,"mbox":"http://patchwork.ozlabs.org/series/5435/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/819293/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/819293/checks/","tags":{},"related":[],"headers":{"Return-Path":"<libc-alpha-return-85038-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-85038-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"l+EZU+NN\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3y2TTL6X2Hz9t66\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 28 Sep 2017 06:10:30 +1000 (AEST)","(qmail 122847 invoked by alias); 27 Sep 2017 20:10:11 -0000","(qmail 122653 invoked by uid 89); 27 Sep 2017 20:10:11 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:subject:date:message-id:in-reply-to\n\t:references; q=dns; s=default; b=hvJl+Wr5Olio4XQHGQsm4x2tebfJ3EF\n\tRiSRz/zZ5LQiKUXijTTW71Ihn0tFD/Gesev8/OCvtKvMkwbDPf09p1GrZOUM2Vw4\n\tMFeAWMcqD8yeUHcrScQS8sTeAXtG6FQD1L4jjuvTfM3tomMvxKn77nt/jbX6Y59w\n\tW1d3fBDcAuWw=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:subject:date:message-id:in-reply-to\n\t:references; s=default; bh=+pDjHJB8b3DG86b07cL/YqfJXwk=; b=l+EZU\n\t+NNOdiOCKyEf8JJHBTgrDwlcql+WqiVeEp4EkP6j2PAWLy6ZuhhW8RR5XtQRfgU3\n\txyfzj4N1vyOZTiEVjmjIiGIK0t78psgMWFRuDur3cYHe7BetjuNsuM2z4a8FVqhN\n\tq9yCH5L3heye5z7J8YDIkgD7+FbZJlm8/Nhp3Y=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tKAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD, UNPARSEABLE_RELAY,\n\tURIBL_RED autolearn=ham version=3.3.2\n\tspammy=HX-Envelope-From:sk:patrick, ima","X-HELO":"userp1040.oracle.com","From":"Patrick McGehearty <patrick.mcgehearty@oracle.com>","To":"libc-alpha@sourceware.org","Subject":"[PATCH 1/3] sparc: support the ADP hw capability.","Date":"Wed, 27 Sep 2017 16:09:57 -0400","Message-Id":"<1506542999-97895-2-git-send-email-patrick.mcgehearty@oracle.com>","In-Reply-To":"<1506542999-97895-1-git-send-email-patrick.mcgehearty@oracle.com>","References":"<1506542999-97895-1-git-send-email-patrick.mcgehearty@oracle.com>"},"content":"From: Jose E. Marchesi <jose.marchesi@oracle.com>\n\nThis patch adds support for the ADP (also known as adi) hardware\ncapability, as reported by the kernel sparc port when running on M7\nmachines.\n\nTested in both sparcv9-*-* and sparc64-*-* targets.\n---\n ChangeLog                   |    7 +++++++\n sysdeps/sparc/bits/hwcap.h  |    1 +\n sysdeps/sparc/dl-procinfo.c |    4 ++--\n sysdeps/sparc/dl-procinfo.h |    2 +-\n 4 files changed, 11 insertions(+), 3 deletions(-)","diff":"diff --git a/ChangeLog b/ChangeLog\nindex f8e097e..3f9db7a 100644\n--- a/ChangeLog\n+++ b/ChangeLog\n@@ -1,3 +1,10 @@\n+2017-09-26  Jose E. Marchesi  <jose.marchesi@oracle.com>\n+\n+\t* sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.\n+\t* sysdeps/sparc/dl-procinfo.c: Added \"adp\" to the\n+\t_dl_sparc_cap_flags array.\n+\t* sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.\n+\n 2017-09-26  Joseph Myers  <joseph@codesourcery.com>\n \n \t* sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):\ndiff --git a/sysdeps/sparc/bits/hwcap.h b/sysdeps/sparc/bits/hwcap.h\nindex e090723..a9b05a8 100644\n--- a/sysdeps/sparc/bits/hwcap.h\n+++ b/sysdeps/sparc/bits/hwcap.h\n@@ -48,3 +48,4 @@\n #define HWCAP_SPARC_PAUSE\t0x01000000\n #define HWCAP_SPARC_CBCOND\t0x02000000\n #define HWCAP_SPARC_CRYPTO\t0x04000000\n+#define HWCAP_SPARC_ADP\t\t0x08000000\ndiff --git a/sysdeps/sparc/dl-procinfo.c b/sysdeps/sparc/dl-procinfo.c\nindex 653bdfb..3db59dc 100644\n--- a/sysdeps/sparc/dl-procinfo.c\n+++ b/sysdeps/sparc/dl-procinfo.c\n@@ -46,13 +46,13 @@\n #if !defined PROCINFO_DECL && defined SHARED\n   ._dl_sparc_cap_flags\n #else\n-PROCINFO_CLASS const char _dl_sparc_cap_flags[27][11]\n+PROCINFO_CLASS const char _dl_sparc_cap_flags[28][11]\n #endif\n #ifndef PROCINFO_DECL\n   = { \"flush\", \"stbar\", \"swap\", \"muldiv\", \"v9\", \"ultra3\", \"v9v\", \"v9v2\",\n       \"mul32\", \"div32\", \"fsmuld\", \"v8plus\", \"popc\", \"vis\", \"vis2\",\n       \"ASIBlkInit\", \"fmaf\", \"vis3\", \"hpc\", \"random\", \"trans\", \"fjfmau\",\n-      \"ima\", \"cspare\", \"pause\", \"cbcond\", \"crypto\" }\n+      \"ima\", \"cspare\", \"pause\", \"cbcond\", \"crypto\", \"adp\" }\n #endif\n #if !defined SHARED || defined PROCINFO_DECL\n ;\ndiff --git a/sysdeps/sparc/dl-procinfo.h b/sysdeps/sparc/dl-procinfo.h\nindex 456dde6..19bab8c 100644\n--- a/sysdeps/sparc/dl-procinfo.h\n+++ b/sysdeps/sparc/dl-procinfo.h\n@@ -23,7 +23,7 @@\n #include <ldsodefs.h>\n #include <sysdep.h>\n \n-#define _DL_HWCAP_COUNT 27\n+#define _DL_HWCAP_COUNT 28\n \n static inline int\n __attribute__ ((unused))\n","prefixes":["1/3"]}