From patchwork Tue Jun 1 06:22:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 12290461 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20B77C4708F for ; Tue, 1 Jun 2021 06:23:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 95943613AD for ; Tue, 1 Jun 2021 06:23:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 95943613AD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id ACA348D0002; Tue, 1 Jun 2021 02:23:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A7AAB6B006E; Tue, 1 Jun 2021 02:23:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9421B8D0002; Tue, 1 Jun 2021 02:23:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0068.hostedemail.com [216.40.44.68]) by kanga.kvack.org (Postfix) with ESMTP id 61DFB6B006C for ; Tue, 1 Jun 2021 02:23:13 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id DFEF58249980 for ; Tue, 1 Jun 2021 06:23:12 +0000 (UTC) X-FDA: 78204162624.07.D557C99 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by imf13.hostedemail.com (Postfix) with ESMTP id 7C7D5E00025A for ; Tue, 1 Jun 2021 06:23:00 +0000 (UTC) Received: by mail-pj1-f47.google.com with SMTP id pi6-20020a17090b1e46b029015cec51d7cdso1235184pjb.5 for ; Mon, 31 May 2021 23:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R9w3VBsyynBzvrOKhGUnor+2tF9n4dKvU0meQmd4evY=; b=W4LHJGrOxmR9j6iCI+qXHFE0u44HsMkEPSrrEziVpXFsxYWySDL75LZQzT+eozQx6/ P8LxHQ5OcolPa8nnCg84G8q8lEuhN3sQtaXAEoIMKiECXWrX5Vuw3h4AHSktWZjfXT3k GOKZ0H0zkcANaZBcbker5dcVfOvLYKdCyfXLoDJp37S9pO8j43wTpw0HSoIiilA472e8 lUiH99RrUo829uszk+oFNeq6ezF9ZkpTUWhsSaQGJb0GLvo4XJD5RW65i1NKgEZ5dLdC 5TQBZGZWAP2c+ZS749kKFePyP69Nwzx2DPvyhAXBMdUg1OrSZQXOMSJ2NweUTxt6SIg+ 3ANQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R9w3VBsyynBzvrOKhGUnor+2tF9n4dKvU0meQmd4evY=; b=XuQaDyKTk7wlFyuzG2WfOSt7GtPp2oAJNOQPLw0AfYg/fMqZUQUDU7yJpMQySgqvPN ua/ng115W42EKZpw5rUFKj8KzULOxsJz5JU85qHSHg55dgmfTxObDeYJx0pwKfUv3reb QmoKcUwN38td/n7iRLUpFPt+AF5QVeAwfqBhsRTOTpw4wEZv00Xizs2mzxHBAYybAg6Z QDbphuMWOIWZDVYdzYVFg2q9boiWHtCDIiE27Yg5ER3pTdk0Is+ldZkGkwV6Zn4CQG8l zaYWKN3r/ur8G+aeoOSlGelE41jHDbBP03VxIuVUzjGYe7eqW7GveJXrVsjjrb027CT1 bC1w== X-Gm-Message-State: AOAM533P7qfMyU7BoZaA3X9gqpqUWwttkZk5YqY3qtEwoPbybxPSIwzn h0as6k6ypMYWh8IJH7gP6jk= X-Google-Smtp-Source: ABdhPJxdBCBt6kjcsuYhTACpiaI01k2nCclazEEWA4VvIVS22YbO1VZ/TPZyZ/KCQQgJxi56faaOqw== X-Received: by 2002:a17:902:f68c:b029:102:e6b5:f8c8 with SMTP id l12-20020a170902f68cb0290102e6b5f8c8mr12494108plg.70.1622528591450; Mon, 31 May 2021 23:23:11 -0700 (PDT) Received: from bobo.ibm.com (60-241-69-122.static.tpgi.com.au. [60.241.69.122]) by smtp.gmail.com with ESMTPSA id h1sm12519100pfh.72.2021.05.31.23.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 May 2021 23:23:11 -0700 (PDT) From: Nicholas Piggin To: Andrew Morton Cc: Nicholas Piggin , Randy Dunlap , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, Anton Blanchard , Andy Lutomirski Subject: [PATCH v3 0/4] shoot lazy tlbs Date: Tue, 1 Jun 2021 16:22:59 +1000 Message-Id: <20210601062303.3932513-1-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=W4LHJGrO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf13.hostedemail.com: domain of npiggin@gmail.com designates 209.85.216.47 as permitted sender) smtp.mailfrom=npiggin@gmail.com X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 7C7D5E00025A X-Stat-Signature: e6zfipi5iqremxedwb3z7zsxjfb17dat X-HE-Tag: 1622528580-103585 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: There haven't been objections to the series since last posting, this is just a rebase and tidies up a few comments minor patch rearranging. Thanks, Nick Nicholas Piggin (4): lazy tlb: introduce lazy mm refcount helper functions lazy tlb: allow lazy tlb mm switching to be configurable lazy tlb: shoot lazies, a non-refcounting lazy tlb option powerpc/64s: enable MMU_LAZY_TLB_SHOOTDOWN arch/Kconfig | 38 ++++++++++++ arch/arm/mach-rpc/ecard.c | 2 +- arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/smp.c | 2 +- arch/powerpc/mm/book3s64/radix_tlb.c | 4 +- fs/exec.c | 4 +- include/linux/sched/mm.h | 20 +++++++ kernel/cpu.c | 2 +- kernel/exit.c | 2 +- kernel/fork.c | 52 ++++++++++++++++ kernel/kthread.c | 11 ++-- kernel/sched/core.c | 88 ++++++++++++++++++++-------- kernel/sched/sched.h | 4 +- 13 files changed, 192 insertions(+), 38 deletions(-)