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: 1485889 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=W4LHJGrO; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FvMYQ3NC9z9sW6 for ; Tue, 1 Jun 2021 16:23:38 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4FvMYQ5HHFz306n for ; Tue, 1 Jun 2021 16:23:38 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=W4LHJGrO; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::62f; helo=mail-pl1-x62f.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=W4LHJGrO; dkim-atps=neutral Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4FvMY00rZ5z2yWt for ; Tue, 1 Jun 2021 16:23:15 +1000 (AEST) Received: by mail-pl1-x62f.google.com with SMTP id e15so6331197plh.1 for ; Mon, 31 May 2021 23:23:14 -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=T+i36+G9iBZ52E11MmzLQCoJTOTcJQ6p0ndepVvbm9ZHbSV8HxFeOFB8vwydiuTQeW ItcJDNuFhT3wwYA4hDlR89t4M7oX0lSx5P3kHgPB5PkSSu+s93NyxDcUyXjZan3l5+Wo vSdB2Ll9m169cY1LVB5FFmBFAuHad7A49cPAbcyl4/mAwNx6wEO9EfTconaXfxU+XxJF B+AaotRfmEdjl99svpoV0cic5gAvYDDkfxkbjiNbN6DhEXORAman4lqnqp1v6gkZFhxE JNu7+B8tCp5jaGuxo2P03svR6S3cXOZsitpVjRdYaUUXGI9BCX8Yi6BBaBPaebFBOBtv 1rYg== X-Gm-Message-State: AOAM5331C1EzrhDXd6vdRU8VDSLMkVITr4mIhZDBcZtZvKq1LMt6qeYA uElTPAlBsxd+lw9g9LN+WC+APLsh7KY= 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 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 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, Randy Dunlap , linux-kernel@vger.kernel.org, Nicholas Piggin , linux-mm@kvack.org, Andy Lutomirski , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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(-)