Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2446108rwi; Fri, 28 Oct 2022 07:12:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6B+oa76qFFH7b6a/DFDFEgneSXAvmuUqLfny9qWKTbiHA3yJ4xzoBt4sT6RLNaSoIdCiOj X-Received: by 2002:a17:90a:4dce:b0:213:9d22:8870 with SMTP id r14-20020a17090a4dce00b002139d228870mr957806pjl.7.1666966342967; Fri, 28 Oct 2022 07:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666966342; cv=none; d=google.com; s=arc-20160816; b=COWhIpzmfLMesbKu5YOsuvqC94QTaedyRgZGfp5F53WHO/PhsBLTdqn1Jh1zT2+WUY 0rXikMDw3DY0+CBNO4igH6n05MhdjyxftAg7ViZ2PRUoQ2tmtgqYpGXomJDmWggHHT/p I4LJBOF+24fqnOjmc7RGMyMlkS3fLpCV/8MV8VRL35KpoRZcN+DWm6SINBKIkxbS+N6+ VFvhjx96mEJ6uhcsQbA3XBmiA0IrRJjSXu/7BJ+iLnSPOVyngyOhM88GttLCptkJ/ZV7 Q11feihO8W/0BBpMcePkybAP57eDg7aHII8VRShBaCtNxAcdPPOwNcA3ceT9ncEB0gox yFfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=2R8b6x9QBYKivqAVra+Xy2UftB0zVREwUG/HNswcLLM=; b=zjMiaa6P0eak35qYEycKljKZwaGQTYw4LWnlNr5YLueKn9OxsoXnD2Oi4hZXuHTTLJ McYngkVraRzGr9RjzTAahfNkRZPORT82EAlQNKEk3+V+xJDJE4R19eomaptVwGC9uOY3 gWWopj8XJdew+g8m/Brl7IYUFBtw0FzswffZnE5kH236zrjnFjjSTgZFjv1EkeLMa/Z8 /RV6rP7GOTjeu+1L0c6ArpoH746K7DWIzoRcl2iVCRLJCXeml2GrOL7aaAuRGDjbfvjc mDkJ8ikXDLr2DUcfagMn2LHlL4D3Wwv2Fl/mWN2KoWNLJIHaISz9YKHJc1/I1aZO4kJM 5uBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a631c4e000000b0046e9babe7a1si5316008pgm.54.2022.10.28.07.11.45; Fri, 28 Oct 2022 07:12:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230216AbiJ1OCj (ORCPT + 99 others); Fri, 28 Oct 2022 10:02:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231183AbiJ1OCh (ORCPT ); Fri, 28 Oct 2022 10:02:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29F721C1176 for ; Fri, 28 Oct 2022 07:02:36 -0700 (PDT) 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 B5A9B62870 for ; Fri, 28 Oct 2022 14:02:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 702B6C433D6; Fri, 28 Oct 2022 14:02:31 +0000 (UTC) Date: Fri, 28 Oct 2022 15:02:28 +0100 From: Catalin Marinas To: "Kirill A. Shutemov" Cc: Dave Hansen , Andy Lutomirski , Peter Zijlstra , x86@kernel.org, Kostya Serebryany , Andrey Ryabinin , Andrey Konovalov , Alexander Potapenko , Taras Madan , Dmitry Vyukov , "H . J . Lu" , Andi Kleen , Rick Edgecombe , Bharata B Rao , Jacob Pan , Ashok Raj , linux-mm@kvack.org, linux-kernel@vger.kernel.org, "David S. Miller" , Will Deacon Subject: Re: [PATCHv11 09/16] mm: Expose untagging mask in /proc/$PID/status Message-ID: References: <20221025001722.17466-1-kirill.shutemov@linux.intel.com> <20221025001722.17466-10-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221025001722.17466-10-kirill.shutemov@linux.intel.com> X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 25, 2022 at 03:17:15AM +0300, Kirill A. Shutemov wrote: > diff --git a/arch/arm64/include/asm/mmu_context.h b/arch/arm64/include/asm/mmu_context.h > index d3f8b5df0c1f..81ac12d69795 100644 > --- a/arch/arm64/include/asm/mmu_context.h > +++ b/arch/arm64/include/asm/mmu_context.h > @@ -278,6 +278,12 @@ void post_ttbr_update_workaround(void); > unsigned long arm64_mm_context_get(struct mm_struct *mm); > void arm64_mm_context_put(struct mm_struct *mm); > > +#define mm_untag_mask mm_untag_mask > +static inline unsigned long mm_untag_mask(struct mm_struct *mm) > +{ > + return -1UL >> 8; > +} > + > #include For arm64: Acked-by: Catalin Marinas