Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2514508imm; Sat, 28 Jul 2018 20:00:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdVFHoy72RYKjlmWOo3OlvBPZhwo0SBWhfnHUvthHcUmEHDEERSSwUjIhqoeqqA4pbbUT// X-Received: by 2002:a62:8b87:: with SMTP id e7-v6mr12701736pfl.133.1532833210489; Sat, 28 Jul 2018 20:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532833210; cv=none; d=google.com; s=arc-20160816; b=a2QtyGrmQFj5HUvtFbDKS5QtDrat0RaqHj3mPUMMOCVaNpetokL0feOg31VjADB+RA 8a8nZHkO6i7fX2dmsCq43e+Dwi3uT/0kPFQHyGbkqD+W1aIEIB0pyj3cekOwx41kI8M6 FTXC0tnUD+q0flymBNp6EIDwV97cz93dKU5SzX/oLmEN+tncS0DKFH9MApT7r1Du2GJI ExOwxljvPwxao6H6BLscMAOaN1j4sWSGkvFGlPaFM6jjsgq4jsKPX4WDzKb3VjopeBal WF//xNnjPjFnMjWY0jLNPyVkknS1C4Gai/6bLR294W5/uYxZYbXx1u2WvlPpDTqx8LqY DUvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=KBg0YEAxZq+c+Mb+MDrQZ1UCimh+gObi0qNCbzvsIJc=; b=oT6f2kFr8+HoQLBo3lAMffz76fimHb/DI3N55eqy0zreJPZc2Ertp7ojfaJTEvTmjJ C1ruJ5KRc4cot7IOovxLXaDFEb3RNUVFaEOu+rRsP/VKWAfferuRDdZYZJlxmAj3htgZ Gn8xn0QqzMHt/HsPWoEbeMduxDbps27lgt2xyz5UMZ8Ks+humqQ+3UIsvvD21/Qwstwx sYDDvuJokCiHaorxSz95IqncT24hx78IXwxUtmShN6Y5iLtmdvmEugL5roexmPulUEtg 369IURONNFOdUOKlnRmFRLUv/5jAWoN8zjHIXtLiZnEgz9Zf8qNDxD+syi5o8RARbrhV iFuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a8MHWLyG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4-v6si6369877pgl.139.2018.07.28.19.59.55; Sat, 28 Jul 2018 20:00:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a8MHWLyG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726314AbeG2E1w (ORCPT + 99 others); Sun, 29 Jul 2018 00:27:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:34216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbeG2E1w (ORCPT ); Sun, 29 Jul 2018 00:27:52 -0400 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4ABE3208A0 for ; Sun, 29 Jul 2018 02:59:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1532833146; bh=ARtYfl4AfHPodu+htRIrnmgPKYhFk+ScLknvXxW7HDA=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=a8MHWLyG6ju5xvQUlPqixocvJRIW58WPsPBCLoHpKRyQc21HWM2/QOEewc91zYUc7 K9cTN2TopbPsHJtpVN/uDT9fjmboxrOQCs4CS1PgVKtMTA6+5+EgskGF6lZMSi8aEo ZbcI2DGSESaZQXBfqDj0cgcwdQkehEFPzZOXb0AE= Received: by mail-wr1-f50.google.com with SMTP id h14-v6so8941363wrw.13 for ; Sat, 28 Jul 2018 19:59:06 -0700 (PDT) X-Gm-Message-State: AOUpUlHJfDmurrfm7tpwWnOtIiOeR57z9imvFetk0YFZnZZoQjnnjozJ vMnUMelSGI3su9Iyidc2xR8OofDMHEeRO/7cHgMIWg== X-Received: by 2002:adf:e0cc:: with SMTP id e12-v6mr11323820wri.199.1532833144794; Sat, 28 Jul 2018 19:59:04 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:548:0:0:0:0:0 with HTTP; Sat, 28 Jul 2018 19:58:44 -0700 (PDT) In-Reply-To: <20180728215357.3249-5-riel@surriel.com> References: <20180728215357.3249-1-riel@surriel.com> <20180728215357.3249-5-riel@surriel.com> From: Andy Lutomirski Date: Sat, 28 Jul 2018 19:58:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 04/10] x86,mm: use on_each_cpu_cond for TLB flushes To: Rik van Riel Cc: LKML , kernel-team , Peter Zijlstra , Andrew Lutomirski , X86 ML , Vitaly Kuznetsov , Ingo Molnar , Mike Galbraith , Dave Hansen , will.daecon@arm.com, Catalin Marinas , Benjamin Herrenschmidt Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel wrote: > Instead of open coding bitmap magic, use on_each_cpu_cond > to determine which CPUs to send TLB flush IPIs to. > > This might be a little bit slower than examining the bitmaps, > but it should be a lot easier to maintain in the long run. Looks good. i assume it's not easy to get the remove-tables case to do a single on_each_cpu_cond() instead of two? Currently it's doing the lazy ones and the non-lazy ones separately.