Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1195652yba; Thu, 4 Apr 2019 06:12:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBEb4GCuQyNiUGKIO/k1pWy6js+AqXmvZpZl9QUlCSu4i64FEvcbAWLq5NM1brE1cyTlHl X-Received: by 2002:a63:408:: with SMTP id 8mr5758397pge.334.1554383553395; Thu, 04 Apr 2019 06:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554383553; cv=none; d=google.com; s=arc-20160816; b=qOtN9zGE1w6CW4ZKeDr/zACFMpR6wW9lGauzH0g3rAezUt2yABsiAGKcPYQOqqLgil XD2OJSgSyq8OcHImu0gYBAhfFRw4BOpzkfvGP/dhzDhfKXlFBfZv81EIf4S6Q4HMLPg6 Re/u2r4uors2ldlK1creG6IubBtY6w2OEiKNOq1xz1i5CuP5f+83nyEWHFFV7vFfid3g toNo0z+xd/npFFKwvdR4p4cL7drb13NxESD1253HiD5pbsfkq903N79kdoBFzu7iPRHe I/LwNPRd0PlkJDjERrxyAz1I3DaOVSFUL6OkDwo/7hAzfadEta6i0dBMBSB73ZKhAB9Y UlaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=77oy2l8hjVP8piQUpW0+JPvcwf7YhI2VkCu5Ok1v/mw=; b=fCjYf3H+gvm5tz7vaXI40hEsAczVqQODQoeRfsU+T5Zb9y+nrwygiPAF44V49E1KIs 7PDd/cnhoRxmDXfGPWVYAyDgb2Ziv2rIYXWQKu+HVX5NTN3hBpqtApMXTrYefcsz9K0I 1afa8I3lqEnVc9G8GuUQhhzU2eXteBT7QLmMJW18pTLjnt+QU4UEd6p9ZuM3mjVWCm6E 6Dekl5Tk/juQ7LHpsuIuA/Z6JYMdukgbj1fgpry2d1u/LlSPSiYmQ55fkX8ZbknmzOc6 rZftaeqYaaI/6LaXtd0U2IJi7aaM16+oGUfk+QxoGNgR5bUmbkjp3WK3FbXV+8ZJXcjq PGsA== 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 t9si5778225pgp.273.2019.04.04.06.12.17; Thu, 04 Apr 2019 06:12:33 -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 S1728676AbfDDNLa (ORCPT + 99 others); Thu, 4 Apr 2019 09:11:30 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:60018 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfDDNL3 (ORCPT ); Thu, 4 Apr 2019 09:11:29 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 38A17A78; Thu, 4 Apr 2019 06:11:29 -0700 (PDT) Received: from [10.162.40.100] (p8cg001049571a15.blr.arm.com [10.162.40.100]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CA5593F68F; Thu, 4 Apr 2019 06:11:23 -0700 (PDT) Subject: Re: [PATCH 0/6] arm64/mm: Enable memory hot remove and ZONE_DEVICE To: Dan Williams Cc: Linux Kernel Mailing List , linux-arm-kernel@lists.infradead.org, Linux MM , Andrew Morton , Will Deacon , Catalin Marinas , Michal Hocko , Mel Gorman , james.morse@arm.com, Mark Rutland , Robin Murphy , cpandya@codeaurora.org, arunks@codeaurora.org, osalvador@suse.de, Logan Gunthorpe , Pavel Tatashin , David Hildenbrand , cai@lca.pw References: <1554265806-11501-1-git-send-email-anshuman.khandual@arm.com> From: Anshuman Khandual Message-ID: <6d46fc37-91e2-c44c-6e01-bfbd5c022f39@arm.com> Date: Thu, 4 Apr 2019 18:41:25 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/03/2019 11:38 PM, Dan Williams wrote: > On Tue, Apr 2, 2019 at 9:30 PM Anshuman Khandual > wrote: >> >> This series enables memory hot remove on arm64, fixes a memblock removal >> ordering problem in generic __remove_memory(), enables sysfs memory probe >> interface on arm64. It also enables ZONE_DEVICE with struct vmem_altmap >> support. >> >> Testing: >> >> Tested hot remove on arm64 for all 4K, 16K, 64K page config options with >> all possible VA_BITS and PGTABLE_LEVELS combinations. Tested ZONE_DEVICE >> with ARM64_4K_PAGES through a dummy driver. >> >> Build tested on non arm64 platforms. I will appreciate if folks can test >> arch_remove_memory() re-ordering in __remove_memory() on other platforms. >> >> Dependency: >> >> V5 series in the thread (https://lkml.org/lkml/2019/2/14/1096) will make >> kernel linear mapping loose pgtable_page_ctor() init. When this happens >> the proposed functions free_pte|pmd|pud_table() in [PATCH 2/6] will have >> to stop calling pgtable_page_dtor(). > > Hi Anshuman, Hello Dan, > > I'd be interested to integrate this with the sub-section hotplug > support [1]. Otherwise the padding implementation in libnvdimm can't > be removed unless all ZONE_DEVICE capable archs also agree on the > minimum arch_add_memory() granularity. I'd prefer not to special case > which archs support which granularity, but it unfortunately > complicates what you're trying to achieve. Sorry I have not been following your series on sub-section hotplug support. Hence might not have the full context here. Could you please give some more details on what exactly might be a problem. > > I think at a minimum we, mm hotplug co-travellers, need to come to a > consensus on whether sub-section support is viable for v5.2 and / or a > pre-requisite for new arch-ZONE_DEVICE implementations I would need to go through sub-section hotplug series first to understand the pre-requisite. Do we need to support sub-section hotplug first before being able to enable ZONE_DEVICE ? - Anshuman