From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2074.outbound.protection.outlook.com [40.107.14.74]) by sourceware.org (Postfix) with ESMTPS id 4C8163858D34 for ; Thu, 29 Feb 2024 21:44:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4C8163858D34 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4C8163858D34 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.14.74 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1709243062; cv=pass; b=J+qXAcR8E25irpy50bxDxKO06JvOe1XF1kK2ReCt8Xcm17LNsJK+HNeD3y2mTHn5LHcd4myB9TUxuvLEaU1oPNgCDSdK+hXM/Rd3Rm0KS9CQ8MqHstQJixtIP2sEsef391AhBz6oH911OJXsYWf7AYX2IMP1N9Niv5IdzsfQbuk= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1709243062; c=relaxed/simple; bh=qm0KKL6gsJvK6btZEKSGPPd+pW52mD4cU1TBcsPby2o=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:From:To: MIME-Version; b=WjJRlyNDof+oY3S5+yhH1YCwKARzlsjUteMG+hW3BbRPO+ao5kY2ul5hMpoEuUTD1/nGEoM2vhQshaNpL9eegVWz4Ktc5ycmSoOPH4EjZ4+49RBs5Glo9aY7v9G44uHi+4C775yAnDLT9KuqdjOEzqa1EIYIZkbKwpe9AJ69nww= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=ncU3c+Z8thEP0a5RPjkv7la4F9uiXyc4KhfkmkM1k1JqZkUE/3ejg8oBxAfogK28dae01fBS2Fx5fbNBRCV2eRHBI7IFzUQ+HvDD9H+yRSM+DfIPND6trvORhsJKkYs2CM0b2I+C4EC8rxCFq+JYxB27iw4SdfYwZs7GzP11tOLDPAmIgL9KiiYOUReC6gL+G+DUpt3UYjeX7+D/tSR5ACUC/1GNQ54/Uf2hjvr4qcBJwoxJry1yagIKNB/LXDND2vKEsNQZjxgVRA5Qoo/DIrnGU5/jvvJjnn8p1HgbAhG6lO7EKFDhgkQYo7/+/R/Y4ilSsv19jGG8BjsSzBLQHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=k4/1uXKqH3UnBVFXROAkuEExlYoPo2vSaiw763rihNs=; b=GE9lCn0t2yC2P4GCXSBHpPsBI8ZckSvxX3WEdnwN2abV2T6FPZ47j8KOymeDruQ9/SRx0+ocIptRrVPViq1nhDVT+PTA1veeurqEwt2fD2ECZxmio4V82ySI3bK1zfWR7r9PsUTurSldiEDeli8pKUlA/4sy6OB/2b111irj7t/VJTcwUAjQtb/wyYLRiJVk6KhKXRWZuqGELGsq6uakMIp3GaVQA6zWYa30jQxvy8YHJ2PWGwvug3DJS17PPlcPpZ3XsyM9HaO3nKfwURMTXEYp/JQ6luB1+fSm/R8oS2/FcUHVI8uIWUWXDgfUG2QMubrdGB71XLqv/YFcA33tbQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k4/1uXKqH3UnBVFXROAkuEExlYoPo2vSaiw763rihNs=; b=Stp5EqyNqR602lS/DtlR+2RBq2LSbtDSn4A2VnOTqEr0o3vSqFOKZWuptQ2GsDgqmaazcGDhcgT04r/jYX7DJ6jk/3k9TB+LK6GuDxuExOVhUW+UiffY5uvvwElYK8r1M7AVPM3INy7mn/1gmpi0PAwP2QxlmV1p3uK4IJpZ67E= Received: from DUZPR01CA0136.eurprd01.prod.exchangelabs.com (2603:10a6:10:4bc::24) by AS8PR08MB10001.eurprd08.prod.outlook.com (2603:10a6:20b:632::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.32; Thu, 29 Feb 2024 21:44:15 +0000 Received: from DB5PEPF00014B95.eurprd02.prod.outlook.com (2603:10a6:10:4bc:cafe::2) by DUZPR01CA0136.outlook.office365.com (2603:10a6:10:4bc::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.31 via Frontend Transport; Thu, 29 Feb 2024 21:44:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5PEPF00014B95.mail.protection.outlook.com (10.167.8.233) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Thu, 29 Feb 2024 21:44:15 +0000 Received: ("Tessian outbound c926391f1b75:v228"); Thu, 29 Feb 2024 21:44:15 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6e52e31c14b0f1de X-CR-MTA-TID: 64aa7808 Received: from cc547e6bc1ab.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E0506DDD-823D-469C-9729-00DB33137BEC.1; Thu, 29 Feb 2024 21:44:09 +0000 Received: from EUR02-AM0-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id cc547e6bc1ab.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 29 Feb 2024 21:44:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P8tF3UzKPCXcMwub6Mfx2bogGwUCSodQx78pfXlabj0fl2AI+zwt5g0veZtSA93CYoYjynpycsUZZ4o09hBbyMeCMnaSVZGAr5VQbZ5ThWLwKUsZbPLWjy+yjQ3drPBFQ/YvdA4WncqfDo0u6q/wYxUWrQVbDyO3suyuLiqPkeZYOC8J4TDEIg75VZ+bdBnM1BA5jkmx74UI8Odz71gBB2/FjBLNECF491SbxvxuB0IptmTrXr9ogK5Y2zvxGgSQXV9b/vwJE6MZJo/J0iA2Gb1UFko3voAlPQk63FvbMkWaVGR+xaNlLk2BTC0QQNxUQAaQ8ASFtoy2jgS7awPT+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=k4/1uXKqH3UnBVFXROAkuEExlYoPo2vSaiw763rihNs=; b=MM41aXi/Zqy/NiEeNOhxH8IlzMa/ZfaXBydelE0DYoJ3sDLTpXMG3rlY2ALN/iK9bzAcd0lfweBBq3yeK90LesjDuKb9B7tR7rHDaOZFNYKNG5HW79xafnz/1LqWVvgpmhco2bZeRbm8w8vMUjbfYcMcUIYj5GHoV8dLM+GyQa+KTM2XK9+FoKG0Hrubp8lq9tJpbYr//UDHQi6w/3S3KJLXodWs+WON9CY+z/be0dVply2QnDMuvb4ISglKD21ER2zUXNvs7LmGz7RYFBSYeYkMYar3fz6wAVHIoRs85EXvQlKk8DNYnJ5I4ocjCB9a4ZabzR/sfZvIOVxPUSTtlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k4/1uXKqH3UnBVFXROAkuEExlYoPo2vSaiw763rihNs=; b=Stp5EqyNqR602lS/DtlR+2RBq2LSbtDSn4A2VnOTqEr0o3vSqFOKZWuptQ2GsDgqmaazcGDhcgT04r/jYX7DJ6jk/3k9TB+LK6GuDxuExOVhUW+UiffY5uvvwElYK8r1M7AVPM3INy7mn/1gmpi0PAwP2QxlmV1p3uK4IJpZ67E= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VE1PR08MB4893.eurprd08.prod.outlook.com (2603:10a6:802:aa::13) by GV2PR08MB8630.eurprd08.prod.outlook.com (2603:10a6:150:b6::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.39; Thu, 29 Feb 2024 21:44:07 +0000 Received: from VE1PR08MB4893.eurprd08.prod.outlook.com ([fe80::5c18:a286:6426:d418]) by VE1PR08MB4893.eurprd08.prod.outlook.com ([fe80::5c18:a286:6426:d418%4]) with mapi id 15.20.7316.039; Thu, 29 Feb 2024 21:44:06 +0000 Content-Type: multipart/alternative; boundary="------------fJGh91Tp0gUvee8dU0tZW0Ub" Message-ID: <61b07481-6552-4fcf-aa3b-a33b05483747@arm.com> Date: Thu, 29 Feb 2024 21:44:04 +0000 User-Agent: Mozilla Thunderbird Subject: Re: your patch enabling Arm64's GCS extension Content-Language: en-US From: Srinath Parvathaneni To: Jan Beulich Cc: Binutils , Richard Earnshaw , Marcus Shawcroft , Nick Clifton References: <671d046a-5592-4099-bf2f-5ccb08d166d6@suse.com> <7d26c9ec-8816-4643-a5e8-8162803971d9@arm.com> In-Reply-To: <7d26c9ec-8816-4643-a5e8-8162803971d9@arm.com> X-ClientProxiedBy: LO6P265CA0027.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ff::13) To VE1PR08MB4893.eurprd08.prod.outlook.com (2603:10a6:802:aa::13) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VE1PR08MB4893:EE_|GV2PR08MB8630:EE_|DB5PEPF00014B95:EE_|AS8PR08MB10001:EE_ X-MS-Office365-Filtering-Correlation-Id: 492bf89a-01d5-4028-4329-08dc396f933e X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: A3b1y/s0Q8A3bwz9rSFXSEghXMX28E55pXg9r0K1fdIWQxus8CEGsbJ3jCVZD9mXUCc+IfYZ8nxAL638+rid0zVmhvLYxjy8bDcgNgbnALpSw5h5JogY34VLofL2tlNZVXXGeMentNmozGnAI9cUXDeadqquzgBuDO5UDRbo5GfKhb15ASUbFdX+j2ujzDr/z9vzLAzeBz+ehoeuWQjYgqD9f5lmKAzAnCEXK+0oqubjrMnjFhY3mEPymahzH3ZsCwWV9/zbwIs54vFjQAZHOY8XjOjtG+sa0+89cJnJUXFjjP/ljODMzik/9uNMG/jb9lub8HLxFk7qqb5VzZ8i6l9XtFLZzaF1uwtfDF0YLs/yD1B9z40I8l16k6n18bnsz3uXvgZYwx5vq3RWE4ic7xSzM0tTFZxGyL5D6uvDMiQK2ft5FLJOYg7DECgPetzx+XoE/QB5guSFtxRSi8w6eXKqjUax28S3JANJKfpwIyUVq3gujEyq22d63mPuov9PCWliaMD5X0jJ4gDaF9CrgnUtcFXe5M0tcNBjv/0PKGzEfdgirLCrIwbkAIKy0tsLq4qkEAyl1AusItp7FpqEGzHW3gnIs67XulnG6PNFafw= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4893.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB8630 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B95.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c597f6fa-8c7e-4633-5adb-08dc396f8dca X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pFsuh2/0lsUM442d7VjZwp2JImaLvQ2ZV7lgaVIQeYnjxan7bFCL6D54vm9U89jX61yGHukdbxWmxDuHF/F8dA+3iwQ4Cg2wIijO7p+I80T06ok4l4ghWkyy7dG4fsnIj/Eo4WgFXSy6XsB0PwYTm7dN00ghkY0KAKpjrZ/yGbqFZZJV0snB/pJp1f1vqh2mInAR+q/+29tQ0XAxJrDRHZoTlMLBz91zSd76s30/QYaacv8haso7xVDECB0NeKPKCwj+iJCnIQPbtDg7OS6T8YRvz2sC3/X3stEDv0Neta0z+V5OPhGDS57IZZ3zdOz88agggWxVpmEB2ZMAR0fiujLZxPMbwkl12w6ThP3sN5jhAu876Obs+Qir7EUNIdgoksQBkesY05GwFZx9l4Y8Oq+tgn8HGs0UVRwcxi/r3xrHM+jj2mQs/HJAaOxA9qhqZO24Jghk/M73EAjWV08OidtlJNzOuvSS2rPmlm/Xu2ghrtVCMTdkOC+DtABlNVGgTc+uBG1bqGfuAAfOitOc3FguusqKAlxzrSJ/Dwr6SuV39lQY9rSP1+BpFPIxYRk6GOV8I78r/JEPCoXoJlwEur4kb+bFvpQ91RcxRQfFVi3b4nzm6XiO6I5y6BcWVF2SkNOR3absb8EsJLHwZ1V6NhCQLp4mXY7cm7NOP8Aphqrx3MBOb5+V8obltURS4nt+IHVeKkBKJLiDVRiBsm2qNA== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230031)(36860700004)(82310400014);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2024 21:44:15.4252 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 492bf89a-01d5-4028-4329-08dc396f933e X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5PEPF00014B95.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB10001 X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,HTML_MESSAGE,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --------------fJGh91Tp0gUvee8dU0tZW0Ub Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Jan, On 2/12/2024 11:42 PM, Srinath Parvathaneni wrote: > Hi Jan, > > On 2/12/2024 7:39 AM, Jan Beulich wrote: >> Srinath, >> >> may I ask against what specification this was written? There are two >> aspects I can't bring in line with what DDI0596 from December has, i.e. >> even newer than the patch (dating back to October): >> >> 1) gcspopcx, gcspopx, and gcspushx supposedly all have an optional >>     register operand, which gas 2.42 doesn't accept. > > My understanding from the following specs is that the above mentioned > > instructions does not take any optional arguments and this is aligned > with > > LLVM compiler behaviour. > > https://developer.arm.com/documentation/ddi0601/2023-12/AArch64-Instructions/GCSPUSHX--Guarded-Control-Stack-Push-exception-return-record?lang=en > > > However, I am unsure about the statement "The value in the register by > is ignored" in the > > specs and need further clarification. I will discuss this internally > and get back to you with an update. There is some confusion over the document for mentioned gcspushx, gcspopx and gcspopcx instructions. The correct documentation for these instructions is here: https://developer.arm.com/documentation/ddi0601/2023-12/AArch64-Instructions/GCSPOPX--Guarded-Control-Stack-Pop-exception-return-record?lang=en As per above documentation, the mentioned instructions does not take optional argument and the current binutils implementation of these instructions is correct. >> 2) gcsstr and gcssttr supposedly have a memory-form 2nd operand, i.e. >>     a register name enclosed in square brackets. Gas 2.42 expects a >>     plain register name instead. > > I agree this is a coding bug, I will create a bugzilla ticket and work > on fixing this issue. I have committed the fix for this issue to master and binutils-2_42-branch. Regards, Srinath. > Thank You. > > Regards, > > Srinath > >> Despite being newer it's of course possible that documentation is what >> actually needs fixing. Can you please clarify which way it is? >> >> Thanks, Jan --------------fJGh91Tp0gUvee8dU0tZW0Ub--