Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13713115rwl; Wed, 4 Jan 2023 11:56:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXvK2tpxojPsgnednOAK8uodBEpck/ni2XVVOWhCXFAzmupc/+/qFh5c7EbOlz69/CnmimG4 X-Received: by 2002:a05:6a20:7da8:b0:a2:c45f:f0fc with SMTP id v40-20020a056a207da800b000a2c45ff0fcmr71285492pzj.27.1672862195345; Wed, 04 Jan 2023 11:56:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672862195; cv=none; d=google.com; s=arc-20160816; b=AUYaCRF57XxS/owPZiCpZ+5zUoiWFhjOc2HmmNevJnipyvtxzMIuUtYst1bUMRiSGj YBFLWKvPtINwmlCRk56EH6DlI+2vg6SQI0FbCBR0k8tDY+ekpiBVMEOcMPK2ig0LAmZb wtBwVlmvNW4LnxnO+VLSlbpLdIBAvd7pf46y7WEOGCJCGCPq1VdVCMt3Hi+U+gDwwzZc 1yFYlSR8SNxOxop3s6KqoUiuVZJpNrAHcR+6cE2EknNtzDjYKsh0qUyI8OIc3ot/8zdo S8KsLFqKI9LQIcfsjSPuigwGl9c9wpowg6tCUkf9oU5LiFsaINILiBbKHrVunXuctB6n uWXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=yl+eu1D9Wa7TWC36tF/B6ZJpLura6tsutRT6N2mJLJM=; b=aqcRT/dCnshw3WjThePG+MmZXRiYUV76r8uWm70DzaTBORJ/WHqSG5O4If08hd+lvZ bfCZV2P1KRNyQIIKRLJzYqde4b4whBr/zj6wQAoY+AjmNmjLQ1dTdo1igYbDls7vwSWO pdt/hH3i1gtu2zpmCD9J//6ZFmm9kiaIEqKTwbM0Lwl3iYKXMacc8lredoqrwRa4P+6e PO8eJ+Fp1iPy3gVFkZmrE65mspgnXMuznex0x4TlF4D/641SvuqjROU2FFkqDnkk0Qln HaBK9TTotPhoYAdIMmDW37fDCzEK4SgIZ3MDcCx46m0C+afClM9FgAEGP81Ig3tDf7we ugRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WxyhnPkd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020a63fd53000000b0043a20d57b46si34501713pgj.826.2023.01.04.11.56.28; Wed, 04 Jan 2023 11:56:35 -0800 (PST) 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; dkim=pass header.i=@intel.com header.s=Intel header.b=WxyhnPkd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235356AbjADTHY (ORCPT + 56 others); Wed, 4 Jan 2023 14:07:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235077AbjADTHW (ORCPT ); Wed, 4 Jan 2023 14:07:22 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CBA41B9E4 for ; Wed, 4 Jan 2023 11:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672859241; x=1704395241; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=XxNNflySTkyGkLpVJYRC4xsGOhNPakSQIFM+vaB9YCQ=; b=WxyhnPkdMi9a5XIoP9eD8TRfKu7L+ytgVoz+5hHWnC5liWdIE24L+wO6 aIjcDMT0nDHH4geSq1gQUKniZZkiC4eTTMXhLG665HYJops/c7RIHUI5K /ZYBu3pcItHbFnxJC/lDCWhF/qhf8soakOJgwSj+NvkiX5/W0FX6Aavyo hnsqR5OrrlGgHFCdhoTwcyPOwT7ux3N0rTDNs5KErrToOKExpncLsOqUM JIogjo1+1PSjs8FC1QR4cPPjS+PITtF04L0py2hoaG+eTrYFtIc90u4Cs GP9pCmIg9LuSvItZd7M6GxG8Fyvkj50V5BMnlqUnx4XFcwx0Gr5xvgUt8 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="386453369" X-IronPort-AV: E=Sophos;i="5.96,300,1665471600"; d="scan'208";a="386453369" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2023 11:07:17 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="743959675" X-IronPort-AV: E=Sophos;i="5.96,300,1665471600"; d="scan'208";a="743959675" Received: from cheungbr-mobl.amr.corp.intel.com (HELO [10.209.91.155]) ([10.209.91.155]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2023 11:07:15 -0800 Message-ID: Date: Wed, 4 Jan 2023 11:07:15 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCHv13 01/16] x86: Allow atomic MM_CONTEXT flags setting Content-Language: en-US To: "Kirill A. Shutemov" , Dave Hansen , Andy Lutomirski , Peter Zijlstra Cc: 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 , Linus Torvalds , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20221227030829.12508-1-kirill.shutemov@linux.intel.com> <20221227030829.12508-2-kirill.shutemov@linux.intel.com> From: Dave Hansen In-Reply-To: <20221227030829.12508-2-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 12/26/22 19:08, Kirill A. Shutemov wrote: > So far there's no need in atomic setting of MM context flags in > mm_context_t::flags. The flags set early in exec and never change > after that. > > LAM enabling requires atomic flag setting. Could you elaborate on this a little more?