LKML Archive on lore.kernel.org help / color / mirror / Atom feed
From: Andrea Reale <ar@linux.vnet.ibm.com> To: Michal Hocko <mhocko@kernel.org> Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, m.bielski@virtualopensystems.com, arunks@qti.qualcomm.com, mark.rutland@arm.com, scott.branden@broadcom.com, will.deacon@arm.com, qiuxishi@huawei.com, catalin.marinas@arm.com, realean2@ie.ibm.com Subject: Re: [PATCH v2 0/5] Memory hotplug support for arm64 - complete patchset v2 Date: Mon, 4 Dec 2017 11:34:12 +0000 [thread overview] Message-ID: <20171204113412.GB6373@samekh> (raw) In-Reply-To: <20171130145734.c62ggrx3r7335etc@dhcp22.suse.cz> Hi Michal, On Thu 30 Nov 2017, 15:57, Michal Hocko wrote: > On Thu 23-11-17 17:33:31, Andrea Reale wrote: > > On Thu 23 Nov 2017, 17:02, Michal Hocko wrote: > > > > Hi Michal, > > > > > I will try to have a look but I do not expect to understand any of arm64 > > > specific changes so I will focus on the generic code but it would help a > > > _lot_ if the cover letter provided some overview of what has been done > > > from a higher level POV. What are the arch pieces and what is the > > > generic code missing. A quick glance over patches suggests that > > > changelogs for specific patches are modest as well. Could you give us > > > more information please? Reviewing hundreds lines of code without > > > context is a pain. > > > > sorry for the lack of details. I will try to provide a better > > overview in the following. Please, feel free to ask for more details > > where needed. > > > > Overall, the goal of the patchset is to implement arch_memory_add and > > arch_memory_remove for arm64, to support the generic memory_hotplug > > framework. > > > > Hot add > > ------- > > Not so many surprises here. We implement the arch specific > > arch_add_memory, which builds the kernel page tables via hotplug_paging() > > and then calls arch specific add_pages(). We need the arch specific > > add_pages() to implement a trick that makes the satus of pages being > > added accepted by the asumptions made in the generic __add_pages. (See > > code comments). > > Actually I would like to see exactly this explained. The arch support of > the hotplug should be basically only about arch_add_memory and add_pages > resp. arch_remove_memory and __remove_pages. Nothing much more, really. > The core hotplug code should take care of the rest. Ideally you > shouldn't be really forced to touch the generic code. If yes than this > should be called out explicitly. For what concerns hot add, there are no changes to the core hotplug code whatsoever; just arch_add_memory and add_pages. For what concerns hot remove, there are two changes to generic code, as described in the second part of https://lkml.org/lkml/2017/11/23/456. The first is the removal of the BUG() call in arch_remove_memory and moving it to ACPI code: I think we agree that calling BUG() from arch_remove_memory is undesirable. I have to develop a better understanding on how to get rid of it from ACPI as well. The second are the memblock changes for vmemmap removal. I'll try to discuss this change in more details in a follow up email. Thanks, Andrea > -- > Michal Hocko > SUSE Labs >
prev parent reply other threads:[~2017-12-04 11:34 UTC|newest] Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-11-23 11:13 [PATCH v2 0/5] Memory hotplug support for arm64 - complete patchset v2 Andrea Reale 2017-11-23 11:13 ` [PATCH v2 1/5] mm: memory_hotplug: Memory hotplug (add) support for arm64 Maciej Bielski 2017-11-24 5:55 ` Arun KS 2017-11-24 9:42 ` Andrea Reale 2017-11-24 10:53 ` Maciej Bielski 2017-11-26 6:58 ` Arun KS 2017-11-27 15:19 ` Robin Murphy 2017-11-27 16:39 ` Maciej Bielski 2017-11-27 17:11 ` Andrea Reale 2017-11-23 11:14 ` [PATCH v2 2/5] mm: memory_hotplug: Remove assumption on memory state before hotremove Andrea Reale 2017-11-23 22:18 ` Rafael J. Wysocki 2017-11-24 14:39 ` Rafael J. Wysocki 2017-11-24 14:49 ` Andrea Reale 2017-11-24 15:43 ` Michal Hocko 2017-11-24 15:54 ` Andrea Reale 2017-11-24 18:17 ` Michal Hocko 2017-11-29 1:20 ` joeyli 2017-11-30 9:47 ` Michal Hocko 2017-11-27 15:20 ` Robin Murphy 2017-11-27 17:44 ` Andrea Reale 2017-11-29 0:49 ` joeyli 2017-11-29 1:52 ` joeyli 2017-12-04 11:28 ` Andrea Reale 2017-12-04 14:05 ` Rafael J. Wysocki 2017-11-23 11:14 ` [PATCH v2 3/5] mm: memory_hotplug: memblock to track partially removed vmemmap mem Andrea Reale 2017-11-27 15:20 ` Robin Murphy 2017-11-27 17:38 ` Andrea Reale 2017-11-30 14:51 ` Michal Hocko 2017-12-04 11:49 ` Andrea Reale 2017-12-04 12:32 ` Michal Hocko 2017-12-04 12:42 ` Andrea Reale 2017-12-04 12:48 ` Michal Hocko 2017-11-23 11:14 ` [PATCH v2 4/5] mm: memory_hotplug: Add memory hotremove probe device Andrea Reale 2017-11-24 10:35 ` zhong jiang 2017-11-24 10:44 ` Andrea Reale 2017-11-24 12:17 ` zhong jiang 2017-11-24 14:29 ` Andrea Reale 2017-12-04 17:50 ` Reza Arbab 2017-11-27 15:33 ` Robin Murphy 2017-11-27 17:14 ` Andrea Reale 2017-11-30 14:49 ` Michal Hocko 2017-12-04 11:51 ` Andrea Reale 2017-12-04 12:33 ` Michal Hocko 2017-12-04 12:44 ` Andrea Reale 2017-11-23 11:15 ` [PATCH v2 5/5] mm: memory-hotplug: Add memory hot remove support for arm64 Andrea Reale 2017-11-23 16:02 ` [PATCH v2 0/5] Memory hotplug support for arm64 - complete patchset v2 Michal Hocko 2017-11-23 17:33 ` Andrea Reale 2017-11-30 14:57 ` Michal Hocko 2017-12-04 11:34 ` Andrea Reale [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20171204113412.GB6373@samekh \ --to=ar@linux.vnet.ibm.com \ --cc=arunks@qti.qualcomm.com \ --cc=catalin.marinas@arm.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=m.bielski@virtualopensystems.com \ --cc=mark.rutland@arm.com \ --cc=mhocko@kernel.org \ --cc=qiuxishi@huawei.com \ --cc=realean2@ie.ibm.com \ --cc=scott.branden@broadcom.com \ --cc=will.deacon@arm.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).