Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp478856ybd; Wed, 26 Jun 2019 01:15:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPyrT+8ZK1+UtmhF5fm7MxfOq8IpppQkuyIQR2ZsIRJhXY2zffrMdr6CTbHC4rSQUryaDx X-Received: by 2002:a63:c20e:: with SMTP id b14mr1693635pgd.96.1561536947327; Wed, 26 Jun 2019 01:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561536947; cv=none; d=google.com; s=arc-20160816; b=l22p8wWrTSqhMm5X5g2EUYf6misl57BpbtroovMs47v9ISFMX+u54j3ADdwEou9gVq RNqSqmF7VeSGSVvAL+VrMP/U50L0G5Ij5BOJz2MOBghzpeKFdhXTa0dD4SwbTfcqlJSv VYsFkaRA7lJnT5AdJZfWxVz16qZcdzf9w0gALEMTHHmNJ1zJ93QQAcx0SBJtc6GifGl5 Kaca+eFEvIVtfHlqf6N62Kfsk0knd5fzgjCsEcLhVjE+vo9lZDDi3XfGZzeFWBF2RvKk zb1X73xt9erwS49vMUH96sYD7vINOCg3jgieD8OuqDNTyruTvHtyFTYINFjWXzjysjIs RCkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Ju1KSPvhOb5INBPqIbo0ETZbUyGfjddJsPo7jeUpmDw=; b=V6Q/b5CJarREACBWT/BZMVW7xmgKVW6mhvxfS8eTjWg64HITblrvnKgvqKwCauH7Rm BTOif2E+9LmZAerwwk9hA2Ky1zhwfgaA+yTn0BFGkXiXt3IdTNeiotO636eR2Nd3UHei bL5nAclncggwidN/naeTUomOcc1V2N72Xlo+YfJUsg5u8bCexI+bA5sDro8jrPWbrmVY CLoWrtBMJ2ojbi/ThjfxNdOVj9v0TZeNfPLztwHdHX5IFO6EDEp3xPSfTUNqwccXwHlw 5LKAlNFuCScAVGozBZdWCiW9KURF6kBXMMPSaHu/K9NWkVo1ndF67LudYHXvG8qrpGSH zWXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 97si2723110ple.161.2019.06.26.01.15.31; Wed, 26 Jun 2019 01:15:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726416AbfFZIPU (ORCPT + 99 others); Wed, 26 Jun 2019 04:15:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:57078 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725379AbfFZIPU (ORCPT ); Wed, 26 Jun 2019 04:15:20 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3DF6BAD09; Wed, 26 Jun 2019 08:15:19 +0000 (UTC) Date: Wed, 26 Jun 2019 10:15:16 +0200 From: Oscar Salvador To: David Hildenbrand Cc: akpm@linux-foundation.org, mhocko@suse.com, dan.j.williams@intel.com, pasha.tatashin@soleen.com, Jonathan.Cameron@huawei.com, anshuman.khandual@arm.com, vbabka@suse.cz, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/5] Allocate memmap from hotadded memory Message-ID: <20190626081516.GC30863@linux> References: <20190625075227.15193-1-osalvador@suse.de> <2ebfbd36-11bd-9576-e373-2964c458185b@redhat.com> <20190626080249.GA30863@linux> <2750c11a-524d-b248-060c-49e6b3eb8975@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2750c11a-524d-b248-060c-49e6b3eb8975@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 26, 2019 at 10:11:06AM +0200, David Hildenbrand wrote: > Back then, I already mentioned that we might have some users that > remove_memory() they never added in a granularity it wasn't added. My > concerns back then were never fully sorted out. > > arch/powerpc/platforms/powernv/memtrace.c > > - Will remove memory in memory block size chunks it never added > - What if that memory resides on a DIMM added via MHP_MEMMAP_DEVICE? > > Will it at least bail out? Or simply break? > > IOW: I am not yet 100% convinced that MHP_MEMMAP_DEVICE is save to be > introduced. Uhm, I will take a closer look and see if I can clear your concerns. TBH, I did not try to use arch/powerpc/platforms/powernv/memtrace.c yet. I will get back to you once I tried it out. -- Oscar Salvador SUSE L3