This series improves arm64 memory event notifier (hot remove) robustness by enabling it to detect potential problems (if any) in the future. But first it enumerates memory isolation failure reasons that can be sent across a notifier. This series does not go beyond arm64 to explore if these failure reason codes could be used in other existing registered memory notifiers. Please do let me know if there is any other potential use cases, will be happy to incorporate next time around. Also should we add similar failure reasons for online_pages() as well ? This series has been tested on arm64, boot tested on x86 and build tested on multiple other platforms. This series applies on v5.7-rc1. Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: Dan Williams <dan.j.williams@xxxxxxxxx> Cc: David Hildenbrand <david@xxxxxxxxxx> Cc: Yu Zhao <yuzhao@xxxxxxxxxx> Cc: Hsin-Yi Wang <hsinyi@xxxxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: Will Deacon <will@xxxxxxxxxx> Cc: Mark Rutland <mark.rutland@xxxxxxx> Cc: Steve Capper <steve.capper@xxxxxxx> Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx Cc: linux-mm@xxxxxxxxx Cc: linux-kernel@xxxxxxxxxxxxxxx Anshuman Khandual (2): mm/hotplug: Enumerate memory range offlining failure reasons arm64/hotplug: Process MEM_OFFLINE and MEM_CANCEL_OFFLINE arch/arm64/mm/mmu.c | 52 ++++++++++++++++++++++++++++++++++++++---- drivers/base/memory.c | 9 ++++++++ include/linux/memory.h | 27 ++++++++++++++++++++++ mm/memory_hotplug.c | 24 ++++++++++++------- 4 files changed, 99 insertions(+), 13 deletions(-) -- 2.20.1