From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E740C433F5 for ; Thu, 14 Oct 2021 09:59:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3F454610CC for ; Thu, 14 Oct 2021 09:59:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3F454610CC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FBMpoetDYE7CZFe4REJgwmwGeF8ho50jh7LIrO7yluQ=; b=jt+NU/yLEqrll+ pbtHSwqRzD/ftPhcldadW/s5cteNgVqVDRA4GZmcHLjetC1mmPuoTtTtsToYBYW2sB/o2WFvIMHMP MN5sE9cbyawArx0qEvVQPJiRsaVOmiTyinBvXYuVcGtYq0IttDl3J1QCjbgJb141mw7vHfUiA5y0P nkfjl8fIU65F38f1vJQSrI1yhx4FrL/yahlX8z1gx4Qi6Be52JOxNaBzRstj+N/Mm/1LVSy6XiJAM dAGUVq4/CvSFTAWpYfHWuaGHH4Gv+4N9IclAbvcmAHK6EBaqhZ8ggcVjwGgVaF4/s5Z64tpTNyqOY pLeDHJZxpr+KDFugFLug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1maxUL-002TQC-US; Thu, 14 Oct 2021 09:57:26 +0000 Received: from mail-eopbgr60071.outbound.protection.outlook.com ([40.107.6.71] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1maxUH-002TNp-Tq for linux-arm-kernel@lists.infradead.org; Thu, 14 Oct 2021 09:57:23 +0000 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=61v0bs/esb+r81WjV/RsmGaj96eeFal+BgtgJoOsooI=; b=lM7kv32nhSB+UUOBIqdmjdxCsSuo9V3/3UMwEbNPCZVM3FLAuY4tPKl0YC/mJ/T908AFq9ibPW55em/VazE+Lmo7TLf9TCeosP4QVe3IuBIJO2oc3TJ9os2Ewk8NHHmRcYd75FD2M3CEtM4n8CW+QkeZVh89abJsbJvrf7toeg4= Received: from AM7PR03CA0012.eurprd03.prod.outlook.com (2603:10a6:20b:130::22) by PR2PR08MB4826.eurprd08.prod.outlook.com (2603:10a6:101:24::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.19; Thu, 14 Oct 2021 09:57:16 +0000 Received: from AM5EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:130:cafe::23) by AM7PR03CA0012.outlook.office365.com (2603:10a6:20b:130::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Thu, 14 Oct 2021 09:57:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; lists.infradead.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;lists.infradead.org; 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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT059.mail.protection.outlook.com (10.152.17.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15 via Frontend Transport; Thu, 14 Oct 2021 09:57:15 +0000 Received: ("Tessian outbound 16951d3c485e:v103"); Thu, 14 Oct 2021 09:57:14 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2955d868f7ff1b71 X-CR-MTA-TID: 64aa7808 Received: from 8e46e4544c49.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7120FB41-9450-4222-9FBA-242E5314874F.1; Thu, 14 Oct 2021 09:57:08 +0000 Received: from EUR02-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 8e46e4544c49.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 14 Oct 2021 09:57:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jd4ZKQDYkZ51DUhsH23Ga2Png9MgM4Tp86BHQ5DhmyFudhUP2RkWXctDkOlfEAgaBqnmrzzqQnUcEy5GmUE6H3V1D83Jwoqvhj2gQjaIn4hHs03wExMGbwHtGcnVX4HFn6bTy+aYMPcgevX/HxDDbl4a8UmCriMXIvxDTyHtP0++j77YpIvcHsbkcghH3INkC1KNypyxk0QyfcbGM4iI90zgEZoG4TJt5mRxyQ8BSgVs7VwOHplGp8CUEYHFvMRCu0kG8y+u/cM0LPnczsTXCrEcHUxyzPcgMWd4joypr/IVGqyiyGMr5PCcdmQHZG+ZoPcWQMHH1UDncUlBITsYng== 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=61v0bs/esb+r81WjV/RsmGaj96eeFal+BgtgJoOsooI=; b=mvoM0xhtpSl0SugK/pwxnv+ycvjcUIt6KjogPq39CoZdxnvGwbAHqJxkNturq2d/Wk6nB7LWKZj/53z5aGaxfBi2wYqQoDGZ8yge1wXmoAUNkLb7iwZ9K2nZqYe1D/fqoHTY9XpVpOjnXOH5bG36FJyzOjsMZN5pbm/Qus8CWrJzdq1XFFLmTyDWf+7Y6cLcEKfY9cUnEGFqJGljVnmtcViZGJdX3UgTrTj9gvNunr8jfMBjn1ChVkVpbuT+pVEOixZ6yAycGJrkqHv2CYhxrsWMndPi0gQViV4QxQEOVUEtQ9Gpl7dMXhHqdzvWVrBQXVodHt0zbaW0khGkNWAYKw== 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=61v0bs/esb+r81WjV/RsmGaj96eeFal+BgtgJoOsooI=; b=lM7kv32nhSB+UUOBIqdmjdxCsSuo9V3/3UMwEbNPCZVM3FLAuY4tPKl0YC/mJ/T908AFq9ibPW55em/VazE+Lmo7TLf9TCeosP4QVe3IuBIJO2oc3TJ9os2Ewk8NHHmRcYd75FD2M3CEtM4n8CW+QkeZVh89abJsbJvrf7toeg4= Authentication-Results-Original: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=arm.com; Received: from DB9PR08MB7179.eurprd08.prod.outlook.com (2603:10a6:10:2cc::19) by DU2PR08MB7239.eurprd08.prod.outlook.com (2603:10a6:10:2d2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Thu, 14 Oct 2021 09:57:06 +0000 Received: from DB9PR08MB7179.eurprd08.prod.outlook.com ([fe80::2900:7140:8ac4:6846]) by DB9PR08MB7179.eurprd08.prod.outlook.com ([fe80::2900:7140:8ac4:6846%6]) with mapi id 15.20.4608.016; Thu, 14 Oct 2021 09:57:06 +0000 Date: Thu, 14 Oct 2021 10:57:03 +0100 From: Szabolcs Nagy To: Mark Brown Cc: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan , Alan Hayward , Luis Machado , Salil Akerkar , Basant Kumar Dwivedi , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Richard Sandiford Subject: Re: [PATCH v1 12/38] arm64/sme: Provide ABI documentation for SME Message-ID: <20211014095703.GB1982710@arm.com> References: <20210930181144.10029-1-broonie@kernel.org> <20210930181144.10029-13-broonie@kernel.org> <20211011131730.GL2700@arm.com> <20211011141937.GM2700@arm.com> <20211012082321.GN2700@arm.com> Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: LO4P123CA0300.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:196::17) To DB9PR08MB7179.eurprd08.prod.outlook.com (2603:10a6:10:2cc::19) MIME-Version: 1.0 Received: from arm.com (217.140.106.52) by LO4P123CA0300.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:196::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Thu, 14 Oct 2021 09:57:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 32231710-434e-4a4d-49a0-08d98ef90074 X-MS-TrafficTypeDiagnostic: DU2PR08MB7239:|PR2PR08MB4826: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:2657;OLM:2657; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: oxQnnE76g31qGI8w2hwtoO4eTvB5US0RPzjeXGyT1dlL6RaK2p40T6m8vi85Ra6lD5qZObC/907EL1gZKfZ3Djl0sgrLudDx8ZOuV5onuES0DaS1vNKBlIkXhg/7FvuE7GabyThJdjGCswV4IG8OdBZDtLeDdAT1uHot6USWzs4Olep93/Go5+8QwJdn9gNqz8tdN+cfOFzSmJGVJn2PlcB48pw5H7CQ7KX9C3TFout+LZnaEYH0zb+LIyWYZ3wqIECFXnW0kIkGY3h8oC3MbjkNWa5atQLicSzbgZd5++FGY/O5A4LKQuVOMPI22vyKBOKp5TKxPfRKqkzKD4KWdTLWxb0KrjTqrCvCvrX2ZIAYg74NFTpk8kgOHZ9z8SddHwzWHcaGZoW/lYpr4zVlX1vL5qY/DhpMxaXwdVcEe8fvnbJCkUrXDXDTq5ByCa93vmEFq8odoZWgBHOPsmH/sH37uoSJZUMzOewdnv/JXbXBSBMH8PjKdyLzxr3oxw/ev/y5ehmyfZ80l4HuqxlUlwU6rw84Byxa+ZvJCq/z4MRJIkCyDY7gEFrVfHm7JHgQy2uY9J2JaQBa1OI1Q4ygFD1zpWOg+ef79UmCKvv/BGccdPlV898mX7tJXgRV5Dt4qmWknH7CWzdIb40Dbqw9aoQJ/47F/l8TfhT1/Kaz4u0oMS5f0ZPAJhU2Cpx3zpziFnD5lyKqdqCmigwfIoVObA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR08MB7179.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(5660300002)(8676002)(956004)(1076003)(54906003)(2616005)(44832011)(6916009)(7696005)(26005)(2906002)(86362001)(316002)(508600001)(52116002)(8886007)(8936002)(33656002)(66556008)(38350700002)(186003)(38100700002)(36756003)(66476007)(55016002)(4326008)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB7239 Original-Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 6a02a81e-f2c5-4ac2-3ec2-08d98ef8fa9c X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4mZBlgVMuoa3/170a5yA1eWChrKvjPdnQv37XDu357yw/psuw79+KttdykroDyUtTRRVlDpFjmEMF8yaHOI3uxzyJ3xtaI2ozLvUutjYodnzDxGfsjmKWiCYB0lp/75Ht+lmlrtKbyRIPUpmfLvhI7u5RVXsc5vp+1//UcZJOOrPB0a4pDVRO82Mo//wCNGs4CaI8H6nxx3rOVAYV3AuOGyTpHpLPAbXdno8W0O4yKGPYsfr24B+lNuBYIUWY01omK203zDHJnLw+gdFZpERLIb7lVXrSfQP9z1EMgiPeh0MFnsEv//b/sBdTEvwYV2MsxTH4gupRgdBz4T6Fcckut64adHXFAQwUhvQ4qPy4slgywhetiZn2LhQ+9IrF9jv3/95AiN8AymMkhaw/900CMyeqYgG7LgSsId8Q3zUO6OnRv8JwoxC5wlBdxbc7b5N7MSYCzk70cNv14ubhisfqNoBs+fNh1UHOvDm+Z96Y3eVojigTspftlWjGS+J2jjfTMd/0R2OHionmXmw5CrIbEk/jHSRCjWmZekMmPZqjfR1YAQy0UgX1Eeo+mCKYnl/03/d51AE6X3OmqhJjUEeewCwguOUZyoDzNHWPiT7zOTHPNvNpeu5KE99JivjbSKO+LOg3gRk8/hvOIDeRKihnM2tI3w59ehzL/xmorh1v4hGEoXyU8r+OEXX/3HHj6fRK2W2wk4of865MFKOGMEjNw== 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:(4636009)(46966006)(36840700001)(8886007)(6862004)(26005)(186003)(316002)(44832011)(8676002)(356005)(82310400003)(47076005)(33656002)(55016002)(2906002)(956004)(54906003)(8936002)(4326008)(81166007)(1076003)(70586007)(70206006)(36860700001)(86362001)(36756003)(336012)(2616005)(7696005)(508600001)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2021 09:57:15.4638 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 32231710-434e-4a4d-49a0-08d98ef90074 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: AM5EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR2PR08MB4826 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211014_025722_097496_331F3833 X-CRM114-Status: GOOD ( 18.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The 10/13/2021 19:37, Mark Brown wrote: > On Tue, Oct 12, 2021 at 09:23:21AM +0100, Szabolcs Nagy wrote: > > The 10/11/2021 21:10, Mark Brown wrote: > > > > OK, that makes sense. I've changed the code and the kselftest so that > > > TPIDR2 is preserved on thread creation. > > > does thread creation have to work the same way as fork? > > > (in a pthread_create child we want tpidr2 to be 0, > > since it represents thread specific data. in a fork > > child we want to preserve tpidr2 to mirror the > > state of the parent as much as possible) > > ... > > > i'm not sure when to do tpidr2=0 exactly, but something > > like CLONE_SETTLS is set or child runs on a new stack > > would work for me. if that's too ugly then preserving > > tpidr2 in the child is fine. > > Resetting it on CLONE_SETTLS is straightforward to implement so if that > works for you it sounds good to me, I've got it implemented locally > already with a test case. thanks, i think that makes sense and works for thread implementations. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel