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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B0770C433F5 for ; Fri, 18 Feb 2022 13:05:32 +0000 (UTC) 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:In-Reply-To:MIME-Version: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=sYsB+R1Bc1jxe/OXOAz+edNPOaT9T7EiMhoh8CK3Mzc=; b=CX/CpaAzFyE21j jbbJJkmwGDS11v7FcE8T6uXK0r3rvWH7D9w2sdmobKC5fVPP5mp27byWPbCaiu/gWFeHyr8HWks1S 0P5MZGMXTslOlt4NaPXYnz0G5gP8MtrUrRFwYfz22R8b70R5nqNEpj46EXgyeWAY+y8n5SpRx23ZC vJ8Z6d42rHWcjUbqa3qI3WfonVYPkqiyrE7ipyK/+x6rs9TkntSvKNNm8oJIvGFdXaWLPDOSL2Ove unxD3tHiK9Zj7AgFu6i12sxUWdfNXOrEuaxr2rKtv7WXf+/OroxhhBCerszizfh99wI52i6nSh0YX ZvLuMmBwz/9/uVaAYLMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nL2vg-00EPIT-T3; Fri, 18 Feb 2022 13:04:09 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nL2Jb-00ECmC-ST for linux-arm-kernel@lists.infradead.org; Fri, 18 Feb 2022 12:24:49 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9E3A61EF2; Fri, 18 Feb 2022 12:24:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9683C340E9; Fri, 18 Feb 2022 12:24:43 +0000 (UTC) Date: Fri, 18 Feb 2022 12:24:40 +0000 From: Catalin Marinas To: Mark Brown Cc: Will Deacon , Joey Gouly , Branislav Rankov , Vincenzo Frascino , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 1/4] arm64/mte: Document ABI for asymmetric mode Message-ID: References: <20220216173224.2342152-1-broonie@kernel.org> <20220216173224.2342152-2-broonie@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220216173224.2342152-2-broonie@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220218_042448_003230_53120580 X-CRM114-Status: GOOD ( 16.09 ) 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 On Wed, Feb 16, 2022 at 05:32:21PM +0000, Mark Brown wrote: > To allow a program to potentially run in the CPU's preferred tag > checking mode, the user program may set multiple tag check fault mode > bits in the ``flags`` argument to the ``prctl(PR_SET_TAGGED_ADDR_CTRL, > flags, 0, 0, 0)`` system call. If the CPU's preferred tag checking > -mode is in the task's set of provided tag checking modes (this will > -always be the case at present because the kernel only supports two > -tag checking modes, but future kernels may support more modes), that > +mode is in the task's set of provided tag checking modes, that > mode will be selected. Otherwise, one of the modes in the task's mode > -set will be selected in a currently unspecified manner. > +selected by the kernel using the preference order: > + > + 1. Asynchronous > + 2. Asymmetric > + 3. Synchronous > + > +If asymmetric mode is specified by the program but not supported by > +either the system or the kernel then an error will be returned. This works for me. Reviewed-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel