From patchwork Wed Jul 25 14:06:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 10544061 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 87DDD1805 for ; Wed, 25 Jul 2018 14:06:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7635A20408 for ; Wed, 25 Jul 2018 14:06:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 682EB206E2; Wed, 25 Jul 2018 14:06:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, SUSPICIOUS_RECIPS autolearn=no version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 188F120408 for ; Wed, 25 Jul 2018 14:06:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D55236B02B5; Wed, 25 Jul 2018 10:06:53 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id CDBC76B02B6; Wed, 25 Jul 2018 10:06:53 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B7D596B02B7; Wed, 25 Jul 2018 10:06:53 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl0-f70.google.com (mail-pl0-f70.google.com [209.85.160.70]) by kanga.kvack.org (Postfix) with ESMTP id 7469E6B02B5 for ; Wed, 25 Jul 2018 10:06:53 -0400 (EDT) Received: by mail-pl0-f70.google.com with SMTP id w1-v6so5428928ply.12 for ; Wed, 25 Jul 2018 07:06:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id; bh=K4b2ZvEoyZrFhsHcQ2FFpXvW3K3aFD+/fhlZycDpmNI=; b=tuMpPGNKRQzy0A0k829ZcHnnp3R34yqsO7I1ZqY/7KZLFoG0arF4/vNZ5QdXE1YVqZ 7Iiz81MYtlgwOXY3bHdQHt5BYF6McJ08u+TpXQhjOrx7J+XAAidMsUPNfJyPkV/vA6GQ BBlpdadTmfnZ0PlMHECBEIs6faCXjOzCT5mSEXBeLW/tXcJYmggmQLbIHXznc+D9Xou0 GW8n0yYIz1vzk33uJnm1igYD4JoV6KWi24rzxit4/CEh8bUrhfYg9VkHwBx3YjKKQ+u/ GZ4aIdmynW8zHFwI+9aHUqHMAbiTp9TjdWpF4+N8Kfyw4c1ET2JNA0XMy/x6Gs6wqw9k iVPQ== X-Gm-Message-State: AOUpUlEdvsmq/v+SBxq3BPWzAeFbKR0k48AzqbGKpkbwkbtaEvCdQNlJ yLF1dHRSIEsSZ0WcUl+cotu0ADFnEAy45xhNAbHfSuCmhnCacDwsz9hpqPZju6zrPybQ8gO0G3Z ciZW1tIQ+vZBXOWN76rJEHHeG4nmXBJLOc1gK6fp6QXKYiN4XktgHlMBJjBNJz+Hu873GLH5Mge vBtKURBG1l0SgsS0y37vj63LLJ6kAJt0kI0co+2XjN9OHaDbjbnQlu675HetnFjAJ133BJdagI5 KHt3bHKrmVeg78fJRHFRuF7YELJbRZPg7HffkZVZHA37msb4B3G7LPd2t0cShQVnxgp8bO1ATjB HwsfxiNZwlNXwLdtXbo7zORyGhN4T1C/zCg55tqBKRsLLHBFSgp6b4/uAazY44EpYfjO5CN5GCd F X-Received: by 2002:a17:902:aa01:: with SMTP id be1-v6mr21187871plb.296.1532527613158; Wed, 25 Jul 2018 07:06:53 -0700 (PDT) X-Received: by 2002:a17:902:aa01:: with SMTP id be1-v6mr21187824plb.296.1532527612231; Wed, 25 Jul 2018 07:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532527612; cv=none; d=google.com; s=arc-20160816; b=VLtOXfDO1tPLvjDt6VYnJddew032DVgMLOYXI8TKCqq9zMRz2TC062MOdJ4WE50w8q nkapCGXyfCjhqerpSAZSHlgpyDNu9A68eKRqhGRbqoiccxzTH9B5ZZY4NENEqe3rgmqg yzbyduu2uYflpFDKhlLAaH8p1iC8L/KtFM+XSOlTgc7S/OR4rxlRIc9s1aI/lSAioHmv 1mGMTKJ05r+7c544sKFbKwwcQQlatYMPls2gtVBvxIVRUvm8V02LP7DLTDXeAhZtnekd 4gTZ9jDrPN+yvxdng3o6rV/2x6qRSg3y6zO43F/YxpfqzGEv6UgUY0rCjccimGmDHjXj BFUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=K4b2ZvEoyZrFhsHcQ2FFpXvW3K3aFD+/fhlZycDpmNI=; b=UevMA2ZaUTQG+2eufyh3GgRnHJoBYoBlYo9neTOAi35PnBpDrMxraRTLGlyyZ9QeLy 2haZjPTskWvMABfDVRZUVnMlE8qXl6HQJ51l2ifoAHUxh1UusBRy8IjklrZJEOBTPpkF Gh3hP3TCzeMlvHpEDIHnwjy2EbaXoxb5yXkvIBsGdwqbTzUPu6raEGJZfOztp2cWpzRG 4iNLro6EZGddQvpOG8uXEDS4hti67g5O5C5ZmznGYZtSA+jJfwdhil5Rq4DKbrK66XW3 iAgBjoC/4ifi4A3YS72h1NbVcGnxgAjSeLJuLQW5QGZ+XTTw7sRCRbUJJ0QMGRHdO6J4 Ciww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m78q4HP7; spf=pass (google.com: domain of npiggin@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=npiggin@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id f33-v6sor4020847pgl.432.2018.07.25.07.06.52 for (Google Transport Security); Wed, 25 Jul 2018 07:06:52 -0700 (PDT) Received-SPF: pass (google.com: domain of npiggin@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m78q4HP7; spf=pass (google.com: domain of npiggin@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=npiggin@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=K4b2ZvEoyZrFhsHcQ2FFpXvW3K3aFD+/fhlZycDpmNI=; b=m78q4HP732aLZOMNiRqmzUKgsWgbkPNxzEjEOW09RGXNA3b5In2WD6dtgZ/lOxW1zo 1hgJQLDrwbHRKZM0cOZL9TA2C0J1k1XwXSCmYrEoS5ucsUEigLvHtUD1iQUBoMTuwqgt bp2VCd5wi0bzKzDxu8oqVIqgVJ2wNc3KMlqE4wS1qRKsShmGoyiEZ6qiY8PqEM1vWC7x ySDtVBcDyx72nT/HB4jwwmMmr/aAYuCHW0uvj57QsRdVlMNuuUmQh4iz4aR18Atvfq7j INqTjr3j0ILzaLPH/NEIz56+BSltH1TjGL8iaMq0OaQYTcn3bT6zoW9hii01OkKGAoBT 9rjQ== X-Google-Smtp-Source: AAOMgpf7FhkU1iFGXkchR10j+f3+ZSGfvDSHhqHDhnWtLzOJGZTHzWCZ9JZozUWbf8RmndQKnW0w2A== X-Received: by 2002:a63:5b51:: with SMTP id l17-v6mr20248091pgm.165.1532527611793; Wed, 25 Jul 2018 07:06:51 -0700 (PDT) Received: from roar.au.ibm.com ([61.69.188.107]) by smtp.gmail.com with ESMTPSA id d132-v6sm20923421pga.10.2018.07.25.07.06.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 07:06:51 -0700 (PDT) From: Nicholas Piggin To: linux-mm@kvack.org Cc: Nicholas Piggin , linuxppc-dev@lists.ozlabs.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 0/4] mm: mmu_gather changes to support explicit paging Date: Thu, 26 Jul 2018 00:06:37 +1000 Message-Id: <20180725140641.30372-1-npiggin@gmail.com> X-Mailer: git-send-email 2.17.0 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: X-Virus-Scanned: ClamAV using ClamSMTP The first 3 patches in this series are some generic mm changes I would like to make, including a possible fix which may(?) be needed for ARM64. Other than the bugfix, these first 3 patches should not change anything so hopefully they aren't too controversial. The powerpc patch is also there for reference. Thanks, Nick Nicholas Piggin (4): mm: move tlb_table_flush to tlb_flush_mmu_free mm: mmu_notifier fix for tlb_end_vma mm: allow arch to have tlb_flush caled on an empty TLB range powerpc/64s/radix: optimise TLB flush with precise TLB ranges in mmu_gather arch/powerpc/include/asm/tlb.h | 34 +++++++++++++++++++++++++++++++++ arch/powerpc/mm/tlb-radix.c | 10 ++++++++++ include/asm-generic/tlb.h | 35 ++++++++++++++++++++++++++++++---- mm/memory.c | 14 ++------------ 4 files changed, 77 insertions(+), 16 deletions(-)