From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-x244.google.com (mail-pg0-x244.google.com [IPv6:2607:f8b0:400e:c05::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3v394R3N3TzDqJg for ; Wed, 18 Jan 2017 12:53:59 +1100 (AEDT) Received: by mail-pg0-x244.google.com with SMTP id 204so9358506pge.2 for ; Tue, 17 Jan 2017 17:53:59 -0800 (PST) From: Balbir Singh Date: Wed, 18 Jan 2017 07:23:45 +0530 To: Reza Arbab Cc: Balbir Singh , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, "Aneesh Kumar K.V" , Alistair Popple Subject: Re: [PATCH v5 4/4] powerpc/mm: unstub radix__vmemmap_remove_mapping() Message-ID: <20170118015345.GA18959@localhost.localdomain> References: <1484593666-8001-1-git-send-email-arbab@linux.vnet.ibm.com> <1484593666-8001-5-git-send-email-arbab@linux.vnet.ibm.com> <20170117072513.GE8963@dhcp-9-109-223-248.in.ibm.com> <20170117183653.7bd62joj5yog5yca@arbab-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20170117183653.7bd62joj5yog5yca@arbab-vm> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Jan 17, 2017 at 12:36:53PM -0600, Reza Arbab wrote: > On Tue, Jan 17, 2017 at 12:55:13PM +0530, Balbir Singh wrote: > > On Mon, Jan 16, 2017 at 01:07:46PM -0600, Reza Arbab wrote: > > > Use remove_pagetable() and friends for radix vmemmap removal. > > > > > > We do not require the special-case handling of vmemmap done in the x86 > > > versions of these functions. This is because vmemmap_free() has already > > > freed the mapped pages, and calls us with an aligned address range. > > > > > > So, add a few failsafe WARNs, but otherwise the code to remove physical > > > mappings is already sufficient for vmemmap. > > > > I wonder if we really need them? > > Not sure what the guideline is for a "this shouldn't happen" WARN. It could > save us some grief, should our vmemmap code ever start calling with an > unaligned range, like it does on x86. > Fair enough Acked-by: Balbir Singh