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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DE4AC433EF for ; Thu, 16 Jun 2022 09:39:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 078D06B0072; Thu, 16 Jun 2022 05:39:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0282D6B0073; Thu, 16 Jun 2022 05:39:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E59286B0074; Thu, 16 Jun 2022 05:39:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id D70566B0072 for ; Thu, 16 Jun 2022 05:39:58 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id A61BA2153C for ; Thu, 16 Jun 2022 09:39:58 +0000 (UTC) X-FDA: 79583602476.26.727CA61 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) by imf08.hostedemail.com (Postfix) with ESMTP id 49E9A16008C for ; Thu, 16 Jun 2022 09:39:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Xe7EVTVfA/LYwJX1fqIJNYg/fd5ZMqoScXc4Hw5xwQc=; b=oqFOhI9n/euMEb6yHqNMZXCtN+ JXj3RafSEAdQvbGKAHXQHOE5f56H8B1uBNQCQt6AA3+v7gxD+BD7jU+CrwBITfLkzM24eovGid8Tn E2S0CWp8H1z1zdhxQhiNsB8tABKSZsju3DBEgMWPPSgFKlsZ6ZsKKIh2qW3ESza3b0ImFSc/xl6/j ua4cNeuvFm0KeFDgwdK/V8lToG+myTHc336nOVpEdPm95Al4keI/ZqdTcgH1IdcrAJ9ggjxz9rmJK 0Iz4cVWuyHzHJ+L5sFDqA1W3vQ50sU/FvWuMwrFrzRf8/rxm3HYRH/CI5FdhAvm80wTnnnR9mhl8S 2cu+oXzA==; Received: from dhcp-077-249-017-003.chello.nl ([77.249.17.3] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1lyh-008Nh5-Mg; Thu, 16 Jun 2022 09:39:52 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id EDFFA300212; Thu, 16 Jun 2022 11:39:50 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D7AFD2014ABD6; Thu, 16 Jun 2022 11:39:50 +0200 (CEST) Date: Thu, 16 Jun 2022 11:39:50 +0200 From: Peter Zijlstra To: "Kirill A. Shutemov" Cc: Dave Hansen , Andy Lutomirski , x86@kernel.org, Kostya Serebryany , Andrey Ryabinin , Andrey Konovalov , Alexander Potapenko , Dmitry Vyukov , "H . J . Lu" , Andi Kleen , Rick Edgecombe , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv3 6/8] x86/mm: Provide ARCH_GET_UNTAG_MASK and ARCH_ENABLE_TAGGED_ADDR Message-ID: References: <20220610143527.22974-1-kirill.shutemov@linux.intel.com> <20220610143527.22974-7-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220610143527.22974-7-kirill.shutemov@linux.intel.com> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655372398; a=rsa-sha256; cv=none; b=PCAd8HqLXuvCIYbuTLSBC4TVaKci7V3g/tBV7YZFz16aJDZ0mZuW88WvLm54FIxk5NXl79 h80R21Q3MVK1qEvSSYIK+YPwdv0smhkMLRC0dBWh495n7fMV+xQRR+fx9w+3wx4LXhB6MK iqfLdMLtXwF7SFZn1HTqKn1oqzZ2icE= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=oqFOhI9n; spf=none (imf08.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.92.199) smtp.mailfrom=peterz@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655372398; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Xe7EVTVfA/LYwJX1fqIJNYg/fd5ZMqoScXc4Hw5xwQc=; b=0EAMDhDYLM8eNJfb33n4gLZRDpWttRsROaxUQoxK0l9J932GtqND1o/2NFH86jmqJZl50y /NXXLzht/ZOjlAp5l9F8phzCL/Hi0tJNd2fmEpO/x3GebcxoZ7YOAEPI2r5fxRsDIztpAU kOSmFQXH4PnHWlhdu1PR2TKQihcPP4M= X-Stat-Signature: ki8eusa86y8fz5fghbzkmmu3fgoigscg X-Rspamd-Queue-Id: 49E9A16008C Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=oqFOhI9n; spf=none (imf08.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.92.199) smtp.mailfrom=peterz@infradead.org; dmarc=none X-Rspam-User: X-Rspamd-Server: rspam02 X-HE-Tag: 1655372398-62133 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Jun 10, 2022 at 05:35:25PM +0300, Kirill A. Shutemov wrote: > Add a couple of arch_prctl() handles: > > - ARCH_ENABLE_TAGGED_ADDR enabled LAM. The argument is required number > of tag bits. It is rounded up to the nearest LAM mode that can > provide it. For now only LAM_U57 is supported, with 6 tag bits. As stated in the reply to the other patch; this isn't a 'for now' thing. Due to how the untag thing works. Supporting U48 on 5-level kernels is going to require a more complicated untag.