From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7613BC43334 for ; Thu, 21 Jul 2022 11:07:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 657928E0005; Thu, 21 Jul 2022 07:07:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5DFD88E0003; Thu, 21 Jul 2022 07:07:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4A7828E0005; Thu, 21 Jul 2022 07:07:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 3BB208E0002 for ; Thu, 21 Jul 2022 07:07:01 -0400 (EDT) Received: from smtpin31.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A265EA04C5 for ; Thu, 21 Jul 2022 08:37:28 +0000 (UTC) X-FDA: 79710452976.31.B4B3A3A Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) by imf28.hostedemail.com (Postfix) with ESMTP id C7827C0093 for ; Thu, 21 Jul 2022 08:37:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/waEL92ZUjXVpyZQLVT0SgQb3olAeZWoorHC9Ns4fIg=; b=HxnTYQo+qITEJ6oSSbWJAZ/yI/ lyKER31rJ7VVPVww3Xea1b9bKkpDn0mY4GpnLbNc529I7g/4qrI4T1l2pMuTgGSqAkWZQBfkZhYNk mY1c5jiHj1A7LpVZTsdTUhjuTXeFo0jEUHkOlJpkddoqc5rkGiNXAMho9fr4Gek+qIuCCOcpGp4Wb 5j7q7oomDKCPvg/miF1xrRDUfgUcnmUfTkO3UAX3ElcUGcEpB4yBCTE+Hqs5Kb5sFG1IJrVzwQDR/ p/CmQHNYBLoWxXYHn1R76uY8w0ryC24Aq5QGeIU1l5ZYw90nqZTp9s0QiL5zLHBkuHFOcsXABtzi3 QyUBgebw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oERgH-005W43-0Y; Thu, 21 Jul 2022 08:37:13 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 81215300790; Thu, 21 Jul 2022 10:37:08 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1B41C2011B913; Thu, 21 Jul 2022 10:37:08 +0200 (CEST) Date: Thu, 21 Jul 2022 10:37:08 +0200 From: Peter Zijlstra To: Jann Horn , Linus Torvalds , Will Deacon Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Dave Airlie , Daniel Vetter , Andrew Morton , Guo Ren , David Miller Subject: Re: [PATCH 0/4] munmap() vs unmap_mapping_range() Message-ID: References: <20220708071802.751003711@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220708071802.751003711@infradead.org> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658392648; a=rsa-sha256; cv=none; b=bv6HgGAjwcXhP18yPRvpcJGElYdjyGwuDdvgeB91ahpxgu9VWWEw2k5bMl9ogkLcBVoWDs y9LxfY3x0jMGeiaT9NbRnXjN8pCT7Jz6eJe+zwiKS2QbhoPWy9+qOXER8EmJe2c39n8Kh6 zRb8NyQeoQrT8jlA/GEyvjQuNzu8trQ= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=HxnTYQo+; spf=none (imf28.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.92.199) smtp.mailfrom=peterz@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658392648; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=/waEL92ZUjXVpyZQLVT0SgQb3olAeZWoorHC9Ns4fIg=; b=vEByBNNonB7jQhBQNiaE/rl14gOql8bkZwXGagdJ32wQ1pNf24EtPFJM6U+Xxp37z/cKTQ NYPToc/KlWSjigrXR5VBBGgi0ktACiqlduKL1gdzuNXSPJozEpvsVj7mAV5pC7cdDOricS Fv4xdOXD4KdnfkWbeYJTXMCRxTkEx+I= X-Rspamd-Queue-Id: C7827C0093 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=HxnTYQo+; spf=none (imf28.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.92.199) smtp.mailfrom=peterz@infradead.org; dmarc=none X-Rspam-User: X-Rspamd-Server: rspam06 X-Stat-Signature: xpbbizgupxqq8tjk1dc5qaowwosagu6y X-HE-Tag: 1658392644-359441 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: On Fri, Jul 08, 2022 at 09:18:02AM +0200, Peter Zijlstra wrote: > Hi, > > These 4 patches implement the suggestion by Linus. > > The first patch nukes all architecture implementations of tlb_{start,end}_vma() > by adding two additional MMU_GATHER config knobs. > > DaveM, please clarify the sparc64 case, it seems a little odd to have > flush_cache_range() but to explicitly not call it at unmap time. It would be > nice to remove this one special case. > > The second patch isn't strictly needed for this series but since I was looking > at all this, I figured C-SKY didn't make a whole lot of sense. Guo, please > have a look. > > The third patch cleans up the #ifdeffery and provides a single > tlb_{start,end}_vma() implementation for everyone. > > The fourth, and final, patch does the force TLB-flush on VM_PFNMAP thing. > > I've had the first three patches exposed to the robots and they've (so far) not > reported build (or other) fail. > What are we doing with these patches? Andrew will you pick them up, or will I smuggle them in x86/mm or something ?