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 X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BA6FC2B9F4 for ; Fri, 25 Jun 2021 14:19:20 +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 2323A6109D for ; Fri, 25 Jun 2021 14:19:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2323A6109D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@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=A5U3Bw8SCqmzTvXgpl01wkjbnF0yV9sZacKA6a7Cs6U=; b=F4DlofVlP8+dav 9zYSqWbWEoDpgu0mfS2hihRDlt5LFMTnudXAbbWzzH0v452U/lzLUZ12oW1nuoLgdVMNuS6P3GkpA n+APkPPRtP/cRv4GBVS9C5fOy36W3MYR0NPnxTWfZ6lsA8Ida85MzUCgZISxFB/jZ0XC4NrPm1ypz kTK4zQjIFajOBxTB6Cs6SEnvQS6rkTBJsCrBfhymJJh9JlXnqkwVnvv0EprbfIxnxM9vZH5gqkFj6 7Le6FCMKOKYDn0FaHujnZbW/LT20zgNkXr/BROL1dwAvANrVtW5UKGyfSU4IH/5YRooUV6rGrGFDQ M3oyHdZKOl5GshAvykpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwmdj-001sdL-Pc; Fri, 25 Jun 2021 14:17:05 +0000 Received: from mail-am6eur05on2084.outbound.protection.outlook.com ([40.107.22.84] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwmc9-001reU-CY for linux-arm-kernel@lists.infradead.org; Fri, 25 Jun 2021 14:15:28 +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=p8tDowLpNnTCNRe6h5RMYczpPekynT68/+g0iwWe1UY=; b=FNBaoeNrQrOukPB/l+6wgi7QLbAn1ItHQlwbYgFKDDdILYa+JGiWn6S9W+vID1KCrueZrz/4cFaxsVOi8MgfmJX/WQ0JLARY4TJQzk5MbHkmGgQ1U6UTNzTv156tz0cSI8Qpb2xnXyer/eN4rjt51zEjY0rwxPytXeDfi3wCe+8= Received: from AM7PR04CA0027.eurprd04.prod.outlook.com (2603:10a6:20b:110::37) by DB6PR0802MB2245.eurprd08.prod.outlook.com (2603:10a6:4:84::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.23; Fri, 25 Jun 2021 14:15:22 +0000 Received: from AM5EUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:110:cafe::20) by AM7PR04CA0027.outlook.office365.com (2603:10a6:20b:110::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Fri, 25 Jun 2021 14:15:22 +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 AM5EUR03FT018.mail.protection.outlook.com (10.152.16.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Fri, 25 Jun 2021 14:15:22 +0000 Received: ("Tessian outbound df524a02e6bb:v97"); Fri, 25 Jun 2021 14:15:21 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 349bfbcb15cc2095 X-CR-MTA-TID: 64aa7808 Received: from 77abe121cb87.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1BAF2997-29D6-463B-A1E5-E37A35744FD9.1; Fri, 25 Jun 2021 14:14:50 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 77abe121cb87.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 25 Jun 2021 14:14:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B57s28eehNH5D735d5c47f9yH402cPSg73fX9l5g4ZaGpc3aYO1ZAOvN6ViLm6NAxyKtqsOKGWM2PQ8L89IDWF9IwygV7l3Ko+PK5K7ydbXum6oqj/rz35M5kD4/ME1hFYB+lz6qaPiFOG0ecViaK4dCcj9ieqAiUqHzoJAxF+LlYfC45WlGKQfub2y4KQv229IIkC1KWl61rPBSoBaf8Ov1/jsro4Ro5h1v8AFBYazbfODHShiQXu6YWOj0/Wgv8lyYUq+zHGPRaKYc3VUgoTbvDgM+8J5zxApokNehvF7OEJXD8RfGZJUt/sYNGE0JsEoAXQyE20hBKaLwyqtdVA== 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-SenderADCheck; bh=p8tDowLpNnTCNRe6h5RMYczpPekynT68/+g0iwWe1UY=; b=fvm1UEyNQxD8gc2oyGTN1JLHvZ3+wLmVa8WdaCJPEEA+xqPBepw7gyotY7ygRLdsFFzWtmsYJFgjN/mlZkx/ijjn2vG2MxJjk6sDujaRBW6reYdR6pIG5wsm87gRVvzbBQHw3lfRd+X6wxiBCbAtGuRarBSXJOt1lMVgpWIctZsDaJJT0A8X2VzvbhZalwXwo5pSPhJxNxKQlBAILfnUmiB+WGptuTkXoFxutQynetaxLA/N0E546RxK3U4V8XowlhczJZQhZOrvHyiMi31Bt5kVls8uU+MRowWFqLsX+ifi3cQNHIWFDZLnRVUWWzh99XUCFPZxjrQyGKq9rLRHuQ== 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=p8tDowLpNnTCNRe6h5RMYczpPekynT68/+g0iwWe1UY=; b=FNBaoeNrQrOukPB/l+6wgi7QLbAn1ItHQlwbYgFKDDdILYa+JGiWn6S9W+vID1KCrueZrz/4cFaxsVOi8MgfmJX/WQ0JLARY4TJQzk5MbHkmGgQ1U6UTNzTv156tz0cSI8Qpb2xnXyer/eN4rjt51zEjY0rwxPytXeDfi3wCe+8= 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 DBBPR08MB6313.eurprd08.prod.outlook.com (2603:10a6:10:202::19) by DBBPR08MB4760.eurprd08.prod.outlook.com (2603:10a6:10:f6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18; Fri, 25 Jun 2021 14:14:48 +0000 Received: from DBBPR08MB6313.eurprd08.prod.outlook.com ([fe80::ada5:303a:de76:b0e2]) by DBBPR08MB6313.eurprd08.prod.outlook.com ([fe80::ada5:303a:de76:b0e2%5]) with mapi id 15.20.4242.023; Fri, 25 Jun 2021 14:14:47 +0000 Date: Fri, 25 Jun 2021 15:14:40 +0100 From: Szabolcs Nagy To: Will Deacon Cc: Catalin Marinas , Peter Collingbourne , Vincenzo Frascino , Evgenii Stepanov , Linux ARM , Tejas Belagod Subject: Re: [PATCH v5] arm64: mte: allow async MTE to be upgraded to sync on a per-CPU basis Message-ID: <20210625141438.GK13058@arm.com> References: <20210621123936.GB29283@willie-the-truck> <20210621151858.GC11552@arm.com> <20210621173902.GA29713@willie-the-truck> <20210621185036.GD11552@arm.com> <20210623085530.GF13058@arm.com> <20210624165228.GB25097@arm.com> <20210625092253.GJ13058@arm.com> <20210625120137.GC20835@arm.com> <20210625123959.GB3170@willie-the-truck> Content-Disposition: inline In-Reply-To: <20210625123959.GB3170@willie-the-truck> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [217.140.106.55] X-ClientProxiedBy: SN4PR0201CA0045.namprd02.prod.outlook.com (2603:10b6:803:2e::31) To DBBPR08MB6313.eurprd08.prod.outlook.com (2603:10a6:10:202::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from arm.com (217.140.106.55) by SN4PR0201CA0045.namprd02.prod.outlook.com (2603:10b6:803:2e::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Fri, 25 Jun 2021 14:14:45 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e53e276b-0475-4e84-49ed-08d937e3ab55 X-MS-TrafficTypeDiagnostic: DBBPR08MB4760:|DB6PR0802MB2245: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:10000;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: xLRtlfVdqhirqlzclkgObkRWuA8xHjccslcW8KLhl25EMubD0FeQwcZw39w8aGpiRv7+jPQAYHJ1RBHFTe3E+w1KZuwZC7DkSX9Nh2xHxg7M8nU6RmKfWCupWULkg58FGNRw0nl9F5sthF+F6CaXmGkiTK4m7V7mmYDXI/1osl0KalV0Bz8iYbwycLGl/GpP/RJEC2YeLqcJzElBY20dBFwPEkME/3vtg0DxH4MFaLQlE/yAAiAEgN5aVWRVPAiHFxhb/5wwsHVUp55jZTh3P7jBu/7EvzyDPE5UxHtv/N5sLPW1RKvJG++FVfEV2xJt3m30jP14JtmrwHMh/gkFZUywcgGLfvoFNKO5fCRBGVBt38wjKiE0AoL2LLJVlOd1gMzPi7ZOc1saUlUw00OzolXOgKxhspvP3Pp5l4mrGLAi81GAhEzCuehYp8DM45NNDshbLiHxHRiNBpADS0d9/+7yWIM5OJbSk4AJqlQwd6Gq7Ptdy0T1kVh5JAaIOiHsTcWjL7UhzAqwzmX8TWlIvKccmBzvv102r01cyvZWlzzmfzJCxZCNg6VWEvx8c0huHv7Sj+KzHhTYN40vJPi/Xp5ZoZ3i1P6MtCb51rVvgXUzJAGldvp2Bv5/vb/QsCjRfnGKG+IzPzX4L+Thb509RtV3ep1ux7OfxKd1qXTzLlw= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB6313.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(136003)(39840400004)(376002)(346002)(6916009)(1076003)(44832011)(6666004)(86362001)(16526019)(186003)(83380400001)(2616005)(5660300002)(38350700002)(33656002)(52116002)(7696005)(55016002)(956004)(38100700002)(26005)(4326008)(54906003)(8676002)(8936002)(478600001)(66476007)(66946007)(36756003)(2906002)(8886007)(66556008)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MlNSL2ljRkw1VTdIc1hjTFU5Tm9PQXdtV3dCZlViWEpTR0FlSFdCY2cydklz?= =?utf-8?B?Rmtya3YraGMzeEJDRXBPRXRONnhMM3dsSVVTYWRqdGZUNnNHQVFqbGNUemx2?= =?utf-8?B?VFp4OTE3UWtEMFNMTm1WREQya0duT3BERE96MmNMeEtMbS9tWm1KOWk2bmkr?= =?utf-8?B?aFcxUllXSmU1YjJucVppSmtTNW1DVlAvMTdkbFJiWVh5Y3hBWEtRK1lsQjBi?= =?utf-8?B?aGNUS0VoOWlKRUFPUmRuZ0JySmpoUW9kVWt2N1JaZmlzNXVRZGtxZCsvbGVy?= =?utf-8?B?RWw5cmYwWGNPaUo5UFhTczBNbFEvY2lxSWJBQU1VenF3TVR1YUwwRUJzQ001?= =?utf-8?B?dHViT1h1akxyUlQxS2tHWllnSVdVeWJ2Y1E2SHJBNnJtRGJjcmk4ZitPZm5V?= =?utf-8?B?S05aQ0NGc1o2bFd1MXZvYmE1aUR4MVY3K1NFS3d1bTc4VHUvWGU4eGRwVWZt?= =?utf-8?B?UjVNRi82enhaZlpjZTlpS0RPRW4zMlVnVzd5U0lkYXlFekZIdUM1S2xsZElp?= =?utf-8?B?T2xxbVJGZ2ljNXlrSVlvMEhROHhZQVVqL08vWTQyakp5NGl1ZUYza20rOThn?= =?utf-8?B?SGhPYzVpTTNkSmlXampiZEo4YnF5NzBMNk5ZMGczYWpXZjl0N3dFWjNWZk55?= =?utf-8?B?allKUnJUaThVd21rdXpneE8xRnpKZjhZbitSbUVxUFlaS212ZEVZRUJLU3lO?= =?utf-8?B?WVpIN29XMXVkRkxlTUk5R2g3dzYzTitKSFFGWG5hUEsrQzZuNVUxaHEyU3NT?= =?utf-8?B?bmJrQUhjemhzL3p5aHJoZHNxeGNnREVTM2t0UDUrYmI1QkxWYllJbktaUEdO?= =?utf-8?B?K2hyVHRGMUh5RHRYOTcvbVc3dDA0NHRQWnljTW43Q1dpYTM3ZTVBQmMxV2dN?= =?utf-8?B?YVV3ZXhaM1BYcDRBYXQxZ0FhYXdvOWFVNGdEWGxBT1RyUFFpZ1dGYk1qM01J?= =?utf-8?B?akJKMUcxaC9oM3d1M0wva0svUFNhWmtBL0JlaVR6N1hxalkvdFg4RFFRYmFN?= =?utf-8?B?VmJjcTdPVFczNVFGR1RmYlpCNmdndkMzRGZKVVptK0NtU1VVR1I4azRtUklI?= =?utf-8?B?MGY2eVJ1cnNOMEZKdDE3a1NKY09FWnE2NEFBSm1qOFYyTWZQSVpobU0xV1Nr?= =?utf-8?B?eGFhbHFha1d6UmYrN2FtTy9WUXpJOFNpWUZSSjlMMWVPZmQ2RzYwYTB0Sk1w?= =?utf-8?B?WFZCaTd3VFY3MVRRZCs3Wlk1MXg0VFVzeEhaVVp4QkN3eFZWNVlRRFZrTjM2?= =?utf-8?B?WnFqekxSbVRtRk9YVW9lV3NjaUJwZHpoZzUrZ0Rjc2k3dC9WTXg2RjhncWV5?= =?utf-8?B?ajU4aGFwd1RUSzVER2dnTVlRWURacmNqMzRjbFFneXJSZlFPK0o0TkFtTEFK?= =?utf-8?B?Y0JXM2F3c2t4TUNnU1J3WmpxejFCcGY3bVRyRWJlSy9mNXFQbGtBRXM1Z3d0?= =?utf-8?B?ZnBESWNyTEo4VS9RUmsvMUl3dEpjcTQ0enlrUFlRaGV3UVA5SEJaQnhjbmE5?= =?utf-8?B?RGQ4Q09hUDkvUDNDZ0wySElzTEZ1RFVoLzAxQlhrT21pdkhYbEl5Vlh6emxm?= =?utf-8?B?dENaRVlkUGQwaDA4L3pQOWJsYlU5NUIxVkVXR0tmakVqUlVuWVRsMmtGaFVs?= =?utf-8?B?MnVueTNWeGl2ZE9uYmJDVGE5cGJiU3gwdkF4UGdTL0pBeE9RNEdEd1gvbWhh?= =?utf-8?B?Y3ZIWmdjd0w2aGd1UUcwOWRjb29SbHJTNlpuVndOeDQwcmM1RnNRbTVNRy81?= =?utf-8?Q?MDoCmIAC9AozzmbbComybk+rbjZHx+P6gAyIE/H?= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4760 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: AM5EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 791f8d91-a24d-4f2f-0db2-08d937e396a2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oRSkjevR+ENy7O2dqbOGbzXGukdoFtZKNLk/mtk6ocVCVw9F5tPszuN5WJVrk/3nsokluuOyJsLOkUrwKRfi2iG6h1MijxhzWg+XuUzuzFbqxcNN8JLuF42EO4ni5icF4ILzAhrmX7eIlv1gJTXZMoeEGgh9TkcbUGBLmpGy7A3uGbFseJw+TlagovzhNgFjqVhV9SGN1RUU8VU0rGTxy4IWQffTfr/ndWo2LhLIarErONvk6Eu1Og/OdC1T1MUmguNlnlT9GIKIqKAswfRuMlGhv2t2kGQhXgJkzYKQgNErHPJamISOEiavE7xpYMi+BTW+GgkSWS5Ig3l26JhKPySXJsOrOH0rtVlzDn7hwyiAisCQXrxd/vQMwUaVdkapcm/3GTmtkxFAlcz66Ae5T09ewsyOfO3atIAhMuETi/EvL38InS/PfkOvhA0UD+77u7qbanM1pj5QCvG9XIJTvxTrz+rb7wvfiIzmeeObU+X9f+EV4BcXXgXOyuaTmDluA8WKYQ3iRHaX1NN96E+vwQegZeUxQbFIxLYxieFNvUc+4NXIAPXrrqg83VS38sI2irVmdUsUuBqIeHToikTGQXMF8j5PMgGDMt5Cn+VeE+HGCI4iw4TqUUibeUZuH0xQNW8/AY+Nnl2Nm0y4YJot2q3poZhwaeuh5rSl8XDddnoq9DmLG7hBgPwdLrmUQW6FkoRPJeD8ZNqSYc0CYnLSdQ== 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)(346002)(396003)(136003)(39840400004)(376002)(36840700001)(46966006)(70206006)(54906003)(4326008)(26005)(70586007)(83380400001)(8936002)(8676002)(36860700001)(356005)(6862004)(7696005)(44832011)(81166007)(5660300002)(55016002)(186003)(16526019)(316002)(336012)(36756003)(2616005)(478600001)(33656002)(2906002)(47076005)(8886007)(6666004)(82310400003)(956004)(86362001)(1076003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2021 14:15:22.0639 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e53e276b-0475-4e84-49ed-08d937e3ab55 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: AM5EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2245 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210625_071525_684744_74CDCA89 X-CRM114-Status: GOOD ( 34.67 ) 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 06/25/2021 13:39, Will Deacon wrote: > On Fri, Jun 25, 2021 at 01:01:37PM +0100, Catalin Marinas wrote: > > Thanks, that's useful. I guess since the _MTAG_ENABLE tunable is not > > ABI, the user app can't rely on what the glibc has configured. Arguably, > > since it's driven from outside the application (env), we could say the > > same for sysfs, though for the glibc case, the user app is still be able > > to override it before the first thread is created (or per-thread). I > > assume glibc only issues the prctl() once, not for every new thread. note: in the end the tunable is like GLIBC_TUNABLES=glibc.mem.tagging=3 ./exe not _MTAG_ENABLE. and yes the setting comes from outside and glibc calls prctl once. > > So we can document that the mode requested by the app is an indication, > > the system may change it to another value (and back-port documentation > > to 5.10). If we get a request from developers to honour a specific mode, > > we can add a new PR_MTE_TCF_EXACT bit or something but it's not > > essential we do it now. > > > > So if we allow the kernel to change the user requested mode (via sysfs), > > I think we still have two more issues to clarify: > > > > 1. Do we allow only "upgrade" (for some meaning of this) or sysfs can > > downgrade to a less strict mode. I'd go for upgrade here to a > > stricter check as in Peter's patch. > > > > 2. Should the sysfs upgrade the PR_MTE_TCF_NONE? _MTAG_ENABLE does that, > > so I'd say yes. > > > > Any other thoughts are welcome. > > As I mentioned before, I think the sysfs interface should offer: > > "task" : Honour whatever the task has asked for (default) > "async" : Force async on this CPU > "sync" : Force sync on this CPU > > I don't think we should upgrade PR_MTE_TCF_NONE unless we also have a "none" > option in here. I originally suggested that, but in hindsight it feels like > a bad idea because a task could SIGILL on migration. So what we're saying is > that PR_MTE_TCF_SYNC and PR_MTE_TCF_ASYNC will always enable MTE on success, > but the reporting mode is a hint. > > I don't think upgrade/downgrade makes a lot of sense given that the sysfs > controls can be changed at any point in time. It should just be an override. > > This means that we can force async for CPUs where sync mode is horribly > slow, whilst honouring the task's request on CPUs which are better > implemented. i think a user should be able to ask for sync check mode for a process and get an error if that's not possible. at least this is the semantics that makes sense in glibc. i think it's very confusing if somebody explicitly asks for sync checks to debug something but then gets useless diagnostics because somebody else tried to second guess their performance tradeoff preferences. (if sync check is too slow on a cpu then the user can taskset to a cpu that's not slow or just use other debugging method, silent override sounds bad.) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel