From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: [RFC] asm-generic/tlb: stub out pmd_free_tlb() if __PAGETABLE_PMD_FOLDED Date: Mon, 14 Oct 2019 14:48:02 -0700 Message-ID: <20191014214802.GA32665@bombadil.infradead.org> References: <20191011121951.nxna6hruuskvdxod@box> <20191011223818.7238-1-vgupta@synopsys.com> <8bfd023b-5c00-8355-fd0f-3b4377951e6c@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+gla-linux-snps-arc=m.gmane.org@lists.infradead.org To: Linus Torvalds Cc: linux-arch , Arnd Bergmann , Peter Zijlstra , Vineet Gupta , Linux Kernel Mailing List , Nick Piggin , Linux-MM , "Aneesh Kumar K . V" , Andrew Morton , linux-snps-arc@lists.infradead.org, Will Deacon , "Kirill A . Shutemov" List-Id: linux-arch.vger.kernel.org On Mon, Oct 14, 2019 at 01:38:34PM -0700, Linus Torvalds wrote: > And now I've said pgd/pud/p4d/pmd so many times that I've confused > myself and think I'm wrong again, and I think that historically - > originally - we always had a pgd, and then the pmd didn't exist > because it was folded into it. That makes sense from a x86 naming > standpoint. Then x86 _did_ get a pmd, and then we added more levels in > between, and other architectures did things differently. Oh my goodness. Thank you for writing all this out and finally getting to this point. I was reading the whole thing thinking "This is different from what I remember" and then you got here. This explains so much about how our MM does/doesn't work, and it's not just me that's confused ;-) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.133]:48190 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730586AbfJNVsG (ORCPT ); Mon, 14 Oct 2019 17:48:06 -0400 Date: Mon, 14 Oct 2019 14:48:02 -0700 From: Matthew Wilcox Subject: Re: [RFC] asm-generic/tlb: stub out pmd_free_tlb() if __PAGETABLE_PMD_FOLDED Message-ID: <20191014214802.GA32665@bombadil.infradead.org> References: <20191011121951.nxna6hruuskvdxod@box> <20191011223818.7238-1-vgupta@synopsys.com> <8bfd023b-5c00-8355-fd0f-3b4377951e6c@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Linus Torvalds Cc: Vineet Gupta , linux-arch , Arnd Bergmann , Peter Zijlstra , "Aneesh Kumar K . V" , Linux Kernel Mailing List , Nick Piggin , Linux-MM , Andrew Morton , linux-snps-arc@lists.infradead.org, Will Deacon , "Kirill A . Shutemov" Message-ID: <20191014214802.mvwfQDY3eVOTBsHdqpHLUUoEoJpF3LFrRGLREL99vUA@z> On Mon, Oct 14, 2019 at 01:38:34PM -0700, Linus Torvalds wrote: > And now I've said pgd/pud/p4d/pmd so many times that I've confused > myself and think I'm wrong again, and I think that historically - > originally - we always had a pgd, and then the pmd didn't exist > because it was folded into it. That makes sense from a x86 naming > standpoint. Then x86 _did_ get a pmd, and then we added more levels in > between, and other architectures did things differently. Oh my goodness. Thank you for writing all this out and finally getting to this point. I was reading the whole thing thinking "This is different from what I remember" and then you got here. This explains so much about how our MM does/doesn't work, and it's not just me that's confused ;-)