From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37165C3815B for ; Wed, 15 Apr 2020 06:40:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 034C8206F9 for ; Wed, 15 Apr 2020 06:40:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 034C8206F9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8C5D58E0003; Wed, 15 Apr 2020 02:40:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8757C8E0001; Wed, 15 Apr 2020 02:40:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 78AEB8E0003; Wed, 15 Apr 2020 02:40:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0049.hostedemail.com [216.40.44.49]) by kanga.kvack.org (Postfix) with ESMTP id 611148E0001 for ; Wed, 15 Apr 2020 02:40:14 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 248DD1EF1 for ; Wed, 15 Apr 2020 06:40:14 +0000 (UTC) X-FDA: 76709139948.19.sugar44_766964d593c3c X-HE-Tag: sugar44_766964d593c3c X-Filterd-Recvd-Size: 3034 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf36.hostedemail.com (Postfix) with ESMTP for ; Wed, 15 Apr 2020 06:40:13 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9FFDD31B; Tue, 14 Apr 2020 23:40:12 -0700 (PDT) Received: from p8cg001049571a15.arm.com (unknown [10.163.1.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 3062E3F73D; Tue, 14 Apr 2020 23:44:16 -0700 (PDT) From: Anshuman Khandual To: linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org Cc: akpm@linux-foundation.org, catalin.marinas@arm.com, will@kernel.com, mark.rutland@arm.com, Anshuman Khandual , Michal Hocko , Dan Williams , David Hildenbrand , Yu Zhao , Hsin-Yi Wang , Thomas Gleixner , Steve Capper , linux-kernel@vger.kernel.org Subject: [PATCH 0/2] arm64/hotplug: Process MEM_OFFLINE and MEM_CANCEL_OFFLINE events Date: Wed, 15 Apr 2020 12:09:42 +0530 Message-Id: <1586932784-16315-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 Cc: Michal Hocko Cc: Dan Williams Cc: David Hildenbrand Cc: Yu Zhao Cc: Hsin-Yi Wang Cc: Thomas Gleixner Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Steve Capper Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org 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