Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2563137pxu; Mon, 14 Dec 2020 05:49:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSTNyqmr/+cBr7ebv65+fQUeZRDisrJWylM9BcFCHavQQAtCagEqucowqlgV7azim02ClS X-Received: by 2002:a17:906:410e:: with SMTP id j14mr22416851ejk.253.1607953770646; Mon, 14 Dec 2020 05:49:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607953770; cv=none; d=google.com; s=arc-20160816; b=LKFUfKbil2cMGfF4gezzHAP+3vFh6SmaxYTYO/eQCCik42wObkkAOCVBEQD/6kCAjP Di2gCot7Om3KnxBPEEz3xKF8IFVIbwwpWC3kO9jaCmD2X7mnZThJJMdxXPV7UB8xchVs 6PxQQYlqRmD0nPTqiA73Vkjz71jcmydugN36JOcw6zynKzdgWHejVUFI5NbQSSX1fexY eDF5zlOM5zGReoLULD6Mi91l32vq0a6iVh7hANRMy9Zz55PTx7CXKQ61lMKlZ7AxKmAT WHd8bXR2xXXrquH++4TFcpHoIITsJyfUXfEVfg3IdUv3l/qsC1l3S2pydCGqxt/UaUbX RMtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id :mime-version:in-reply-to:references:cc:to:subject:from:date :dkim-signature; bh=NqlRmCcPn1hL++OXjNViT5mh7QFqv3t1WGYe29FT4N0=; b=u5fPehiW+JCPC59emr4PRRi7sDAPF99/yEZs+s/oFLWkYiqI3TnmhELvVyArAnVg3v ZldTVbpKedwmZk0o95ymzc7yfKm4t7Gh428INjnVZXs1L035KsZpn/jbgL1hjjUO7sP+ W07j4NK+Zpr7A2pI9pmSwWAf/YVfz1hvaWvvlqNPmCrS9pdO4J0igdnDbcCsts639PiH uoRqSTlkT1ZsnXgnUOkj7Va1d7S0WSvQA3vEgN0VsWgYXaVulLDc7JDaid72yaP74Xgy o1PaWHilU1iVF2lFsEP/B2/6eoEAvXMBt1OxDw5x1loAN8AixUhP0POHQEciYjVVZ+GJ v28A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OU2rJ+vK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nx22si9819461ejb.503.2020.12.14.05.49.07; Mon, 14 Dec 2020 05:49:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OU2rJ+vK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437652AbgLNFys (ORCPT + 99 others); Mon, 14 Dec 2020 00:54:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406070AbgLNFy1 (ORCPT ); Mon, 14 Dec 2020 00:54:27 -0500 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27373C0613CF; Sun, 13 Dec 2020 21:53:47 -0800 (PST) Received: by mail-pj1-x1044.google.com with SMTP id p21so4331724pjv.0; Sun, 13 Dec 2020 21:53:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :message-id:content-transfer-encoding; bh=NqlRmCcPn1hL++OXjNViT5mh7QFqv3t1WGYe29FT4N0=; b=OU2rJ+vKQqYkt0zKH+mic4jtuIu5GNnbiOiORyCT+A09h9fwQVJL2rUCwqMLf/iuvX 9ZevRGt+gw00mt8IToXd9T4cMAxsajKDwuMJ3rHqXjunXGxeic1yFQN6+BViqPc3jG7q EHj/gFwO3qj7id91+Aj8fVSteXlSH1WbD3B2ObgpDbyX8867Mu/Zc/nZkwqf3u3MeTWQ GUeAIzmYgifLuP+jbiHnVevOjjad1G3brEZa0Wsx/7D97e94816uenMsagjZ4YzhON5a kRKy8l2UgGjX8qjPTJPf7BQTJmLavUTfJA2Wx7MZfep/q6BF6KkbSj6Q3l16mESODtcO iBEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:message-id:content-transfer-encoding; bh=NqlRmCcPn1hL++OXjNViT5mh7QFqv3t1WGYe29FT4N0=; b=ShmvmuBd0/4q349HXDI8yRIxn4N5aMv7gisZrwKsG4FZCPeqDUTMV5tdlQX/ybiCC1 kE3saPlMBsSRtfU3BLe77r1Gnd5e5vwjybzpAmbL1UKF0Xq427mocJlx0BYqXiwaBrsS Cliq5B17Bk6w5zxFgyjbAKG8Kh4fNb61SLyCs6vrqSFPdoKmw5vkw083b8OdpGf/GYBZ qc/86XZipWlkO2pi9zBno7BKaB7RNh9A7fy7+ou48WkT6ov9AhW33ROwJjztVev0k88S sEUaUB3m3b1WJ2IsvM0smpJDG+dnfHUQUsQUTSd31K8Yg23IIEA1qEOpkK+0AzBSmw08 ol9A== X-Gm-Message-State: AOAM5327PZUnpFxzpXqfL6MgaT2gBfqudDERrkD4BS1w5Udw9fPGS/OU +4B70DiVHOsRrHAM7EC+MU4sTFDgDvk= X-Received: by 2002:a17:90a:fb92:: with SMTP id cp18mr23372071pjb.203.1607925226593; Sun, 13 Dec 2020 21:53:46 -0800 (PST) Received: from localhost ([220.240.228.148]) by smtp.gmail.com with ESMTPSA id v126sm17639802pfb.137.2020.12.13.21.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Dec 2020 21:53:45 -0800 (PST) Date: Mon, 14 Dec 2020 15:53:40 +1000 From: Nicholas Piggin Subject: Re: [PATCH 2/8] x86: use exit_lazy_tlb rather than membarrier_mm_sync_core_before_usermode To: Andy Lutomirski Cc: Anton Blanchard , Arnd Bergmann , linux-arch , LKML , Linux-MM , linuxppc-dev , Mathieu Desnoyers , Peter Zijlstra , X86 ML References: <1607152918.fkgmomgfw9.astroid@bobo.none> <116A6B40-C77B-4B6A-897B-18342CD62CEC@amacapital.net> <1607209402.fogfsh8ov4.astroid@bobo.none> <1607224014.8xeujbleij.astroid@bobo.none> <1607918323.6muyu2l982.astroid@bobo.none> In-Reply-To: <1607918323.6muyu2l982.astroid@bobo.none> MIME-Version: 1.0 Message-Id: <1607924970.hd6nln4qe5.astroid@bobo.none> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Excerpts from Nicholas Piggin's message of December 14, 2020 2:07 pm: > Excerpts from Andy Lutomirski's message of December 11, 2020 10:11 am: >>> On Dec 5, 2020, at 7:59 PM, Nicholas Piggin wrote: >>> >>=20 >>> I'm still going to persue shoot-lazies for the merge window. As you >>> see it's about a dozen lines and a if (IS_ENABLED(... in core code. >>> Your change is common code, but a significant complexity (which >>> affects all archs) so needs a lot more review and testing at this >>> point. >>=20 >> I don't think it's ready for this merge window. >=20 > Yes next one I meant (aka this one for development perspective :)). >=20 >> I read the early >> patches again, and I think they make the membarrier code worse, not >> better. >=20 > Mathieu and I disagree, so we are at an impasse. Well actually not really, I went and cut out the exit_lazy_tlb stuff from the patch series, those are better to be untangled anyway. I think=20 an earlier version had something in exit_lazy_tlb for the mm refcounting=20 change but it's not required now anyway. I'll split them out and just work on the shoot lazies series for now, I might revisit exit_lazy_tlb after the dust settles from that and the current membarrier changes. I'll test and repost shortly. Thanks, Nick