Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751852AbdFIKuE (ORCPT ); Fri, 9 Jun 2017 06:50:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:42916 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751809AbdFIKuB (ORCPT ); Fri, 9 Jun 2017 06:50:01 -0400 Date: Fri, 9 Jun 2017 12:49:47 +0200 From: Michal Hocko To: Wei Yang Cc: Andrew Morton , Linux-MM , Mel Gorman , Vlastimil Babka , Andrea Arcangeli , Jerome Glisse , Reza Arbab , Yasuaki Ishimatsu , qiuxishi@huawei.com, Kani Toshimitsu , slaoub@gmail.com, Joonsoo Kim , Andi Kleen , David Rientjes , Daniel Kiper , Igor Mammedov , Vitaly Kuznetsov , LKML , Balbir Singh , Dan Williams , Heiko Carstens , Martin Schwidefsky , Tobias Regnery , Yasuaki Ishimatsu Subject: Re: [PATCH -v4 0/14] mm: make movable onlining suck less Message-ID: <20170609104947.GD21764@dhcp22.suse.cz> References: <20170515085827.16474-1-mhocko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 807 Lines: 22 On Fri 09-06-17 17:51:24, Wei Yang wrote: > Hi, Michal > > I am not that familiar with hotplug and trying to catch up the issue > and your solution. > > One potential issue I found is we don't check the physical boundary > when add_memory_resource(). > > For example, on x86-64, only 64T physical memory is supported currently. > Looks it is expanded after 5-level pagetable is introduced. While there is > still some limitations on this. But we don't check the boundary I think. > > During the bootup, this is ensured by the max_pfn which is guaranteed to > be under MAX_ARCH_PFN. I don't see some limitation on this when doing > hotplug. This might be true and I would have to double check but this rework doesn't change anything in that regards. Or do I miss something? -- Michal Hocko SUSE Labs