{"id":1839952,"url":"http://patchwork.ozlabs.org/api/patches/1839952/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/patch/fd879f60-3f0b-48d1-bfa1-6d337768207e@linux.ibm.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":"<fd879f60-3f0b-48d1-bfa1-6d337768207e@linux.ibm.com>","list_archive_url":null,"date":"2023-09-26T22:02:25","name":"uapi/auxvec: Define AT_HWCAP3 and AT_HWCAP4 aux vector, entries","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"36ce46b7c51d4ddcc11a59f610704df945c6966c","submitter":{"id":74386,"url":"http://patchwork.ozlabs.org/api/people/74386/?format=json","name":"Peter Bergner","email":"bergner@linux.ibm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/glibc/patch/fd879f60-3f0b-48d1-bfa1-6d337768207e@linux.ibm.com/mbox/","series":[{"id":375006,"url":"http://patchwork.ozlabs.org/api/series/375006/?format=json","web_url":"http://patchwork.ozlabs.org/project/glibc/list/?series=375006","date":"2023-09-26T22:02:25","name":"uapi/auxvec: Define AT_HWCAP3 and AT_HWCAP4 aux vector, entries","version":1,"mbox":"http://patchwork.ozlabs.org/series/375006/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/1839952/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/1839952/checks/","tags":{},"related":[],"headers":{"Return-Path":"<libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":["incoming@patchwork.ozlabs.org","libc-alpha@sourceware.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","libc-alpha@sourceware.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=hrnDU6sY;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org\n (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org;\n envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org;\n receiver=patchwork.ozlabs.org)","sourceware.org;\n dmarc=none (p=none dis=none) header.from=linux.ibm.com","sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com"],"Received":["from server2.sourceware.org (server2.sourceware.org\n [IPv6:2620:52:3:1:0:246e:9693:128c])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4RwDJH1MDZz1ypJ\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 27 Sep 2023 08:02:54 +1000 (AEST)","from server2.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id D7568385C414\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 26 Sep 2023 22:02:52 +0000 (GMT)","from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com\n [148.163.156.1])\n by sourceware.org (Postfix) with ESMTPS id 7BD433858C27\n for <libc-alpha@sourceware.org>; Tue, 26 Sep 2023 22:02:42 +0000 (GMT)","from pps.filterd (m0356517.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 38QLnYC9021734; Tue, 26 Sep 2023 22:02:30 GMT","from pps.reinject (localhost [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tc7hw07sd-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Tue, 26 Sep 2023 22:02:30 +0000","from m0356517.ppops.net (m0356517.ppops.net [127.0.0.1])\n by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 38QLx22g014239;\n Tue, 26 Sep 2023 22:02:30 GMT","from ppma13.dal12v.mail.ibm.com\n (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tc7hw07qj-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Tue, 26 Sep 2023 22:02:29 +0000","from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1])\n by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id\n 38QK3o16030753; Tue, 26 Sep 2023 22:02:27 GMT","from smtprelay02.wdc07v.mail.ibm.com ([172.16.1.69])\n by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3tacjjxa79-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Tue, 26 Sep 2023 22:02:27 +0000","from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com\n [10.39.53.228])\n by smtprelay02.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 38QM2QDj54133134\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Tue, 26 Sep 2023 22:02:26 GMT","from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 996525805B;\n Tue, 26 Sep 2023 22:02:26 +0000 (GMT)","from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id C502C58059;\n Tue, 26 Sep 2023 22:02:25 +0000 (GMT)","from [9.61.104.45] (unknown [9.61.104.45])\n by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP;\n Tue, 26 Sep 2023 22:02:25 +0000 (GMT)"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 7BD433858C27","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com;\n h=message-id : date :\n mime-version : to : cc : from : subject : content-type :\n content-transfer-encoding; s=pp1;\n bh=zZB0dYUR3FFVNmHrxi9HQc22uG3RrL+fhXjXqsYEZiw=;\n b=hrnDU6sYSrDJR9uVrEze/U4yIj2DuSNzTAEZe4PC3SBiEZxVYmrBdvwG3hpFbZebh0Iu\n BbFDF4AzmZvn+2XQEzD/2iIhVlhc+hPsh6kQInrNoKPkUqrg966jupfLb5DIIlr1wzLj\n y9lTID71M2kLSwUfd9XQISyyQAtXibueOXIsjXVP0/+z/fq3speynzlJXhIcthqG1ZoN\n wnIdUfexsGKubD9xH+lnt8atVb1j9NOYFqQwWVErHTtTqnKvYgwC8CjRkeO7RY1tRpus\n CVKF5XMGFjlyRK/wHIhgX0iqQrO//lhkVT+SESJR0g3JVZFCaiCRiJSn49qUefi2GRB3 Bg==","Message-ID":"<fd879f60-3f0b-48d1-bfa1-6d337768207e@linux.ibm.com>","Date":"Tue, 26 Sep 2023 17:02:25 -0500","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Content-Language":"en-US","To":"linux-api@vger.kernel.org, linux-arch@vger.kernel.org,\n \"linuxppc-dev@lists.ozlabs.org\" <linuxppc-dev@lists.ozlabs.org>","Cc":"Nicholas Piggin <npiggin@gmail.com>,\n Michael Ellerman <mpe@ellerman.id.au>,\n Segher Boessenkool <segher@kernel.crashing.org>,\n GNU C Library <libc-alpha@sourceware.org>","From":"Peter Bergner <bergner@linux.ibm.com>","Subject":"[PATCH] uapi/auxvec: Define AT_HWCAP3 and AT_HWCAP4 aux vector,\n entries","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"7bit","X-TM-AS-GCONF":"00","X-Proofpoint-GUID":"gO_5ccXBsh6B5i09S1LfJSWkSowyQdRR","X-Proofpoint-ORIG-GUID":"h-kAgeXMqo_4QcCKYyxNVFZtgAGCP97Z","X-Proofpoint-Virus-Version":"vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-09-26_15,2023-09-26_01,2023-05-22_02","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n phishscore=0\n lowpriorityscore=0 adultscore=0 bulkscore=0 priorityscore=1501\n suspectscore=0 mlxscore=0 impostorscore=0 spamscore=0 clxscore=1011\n mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx\n scancount=1 engine=8.12.0-2309180000 definitions=main-2309260189","X-Spam-Status":"No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,\n DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,\n SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6","X-Spam-Checker-Version":"SpamAssassin 3.4.6 (2021-04-09) on\n server2.sourceware.org","X-BeenThere":"libc-alpha@sourceware.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Libc-alpha mailing list <libc-alpha.sourceware.org>","List-Unsubscribe":"<https://sourceware.org/mailman/options/libc-alpha>,\n <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe>","List-Archive":"<https://sourceware.org/pipermail/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-request@sourceware.org?subject=help>","List-Subscribe":"<https://sourceware.org/mailman/listinfo/libc-alpha>,\n <mailto:libc-alpha-request@sourceware.org?subject=subscribe>","Errors-To":"libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org"},"content":"The powerpc toolchain keeps a copy of the HWCAP bit masks in our TCB for fast\naccess by our __builtin_cpu_supports built-in function.  The TCB space for\nthe HWCAP entries - which are created in pairs - is an ABI extension, so\nwaiting to create the space for HWCAP3 and HWCAP4 until we need them is\nproblematical, given distro unwillingness to apply ABI modifying patches\nto distro point releases.  Define AT_HWCAP3 and AT_HWCAP4 in the generic\nuapi header so they can be used in GLIBC to reserve space in the powerpc\nTCB for their future use.\n\nI scanned both the Linux and GLIBC source codes looking for unused AT_*\nvalues and 29 and 30 did not seem to be used, so they are what I went\nwith.  If anyone sees a problem with using those specific values, I'm\namenable to using other values, just let me know what would be better.\n\nPeter\n\n\nSigned-off-by: Peter Bergner <bergner@linux.ibm.com>\n---\n include/uapi/linux/auxvec.h | 2 ++\n 1 file changed, 2 insertions(+)","diff":"diff --git a/include/uapi/linux/auxvec.h b/include/uapi/linux/auxvec.h\nindex 6991c4b8ab18..cc61cb9b3e9a 100644\n--- a/include/uapi/linux/auxvec.h\n+++ b/include/uapi/linux/auxvec.h\n@@ -32,6 +32,8 @@\n #define AT_HWCAP2 26\t/* extension of AT_HWCAP */\n #define AT_RSEQ_FEATURE_SIZE\t27\t/* rseq supported feature size */\n #define AT_RSEQ_ALIGN\t\t28\t/* rseq allocation alignment */\n+#define AT_HWCAP3 29\t/* extension of AT_HWCAP */\n+#define AT_HWCAP4 30\t/* extension of AT_HWCAP */\n \n #define AT_EXECFN  31\t/* filename of program */\n \n","prefixes":[]}