Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1975715yba; Tue, 2 Apr 2019 21:31:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNTMxaSyizIwe65yDB7w7Sbjl6Trw0iKuBwtlkY2VA9eJwwzr9AnjM2nI3f6dnTRiSJhaT X-Received: by 2002:a17:902:9884:: with SMTP id s4mr25231394plp.179.1554265875765; Tue, 02 Apr 2019 21:31:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554265875; cv=none; d=google.com; s=arc-20160816; b=lWJ+Bm2D+SJ86kf2fYE/Q2ZHQgsIM0MHz9scYf8JOBygVGMynul7vK0v40BwwheXCg x0v4FR7jSla1a96Rx+baYKu0wyqU9S+vMyMwLisnI6sR3xB8AtKLugNEZ2+zd8VyuOBk MvWr3NLPAvu42dh2bJpjc6V2wsxU+r+N+owA1CBka4rmF06gO/wCDW8L/nnSx3vOzxSg l+LnQ4E36lOmt6FcusX18m7If5LwQ8shRxHQZlqvuhfrm+PGNyGlQtenohKha/yVXCKn VVi1GxERdGXpa1A1/txeJmALRFWXwHqc7KvuMWT8w02q0HIeTPlpwrJ1iquw0VvTlvEt 3zuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=B0Km0z7J00nzfFzzN3rWUsWibL2B59QvurZv2eHIpkY=; b=SmW3pBNVl7EixPE/4FhhhH8EZcfLW/HQ9jxZdmMw1Vdw//27qkIIb6LNzxvmsFkhng 8DochM82wT52PSARMFdsFWbgFN/5GW5pE0b6YjkhSa+NDJ059EHQN6FkgSCTCZeb5GgB LNtnjHacBZKPFmnxHadT1II8YsMozOhbkSh/NotyddiXGM0EWZLBAV6Mp7r6RdYxrUGY AXwqpPWkqYcQwt6+Vy/+uIJUxFGmCgNtUC0F/N0FLMNF/YK44Txfe3UlpQZuB6pw+obt GGHC87oZC5pyz7st0Mb3GJIoC3p/5rZJTepnh9JDzt1vYmx3cjLed1OSz3uN6U9w010s tVHA== 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 d68si12806959pfg.83.2019.04.02.21.31.00; Tue, 02 Apr 2019 21:31:15 -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 S1726833AbfDCEaS (ORCPT + 99 others); Wed, 3 Apr 2019 00:30:18 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:60230 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbfDCEaS (ORCPT ); Wed, 3 Apr 2019 00:30:18 -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 13D5F15AD; Tue, 2 Apr 2019 21:30:18 -0700 (PDT) Received: from p8cg001049571a15.arm.com (unknown [10.163.1.97]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B6BCE3F721; Tue, 2 Apr 2019 21:30:12 -0700 (PDT) From: Anshuman Khandual To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, akpm@linux-foundation.org, will.deacon@arm.com, catalin.marinas@arm.com Cc: mhocko@suse.com, mgorman@techsingularity.net, james.morse@arm.com, mark.rutland@arm.com, robin.murphy@arm.com, cpandya@codeaurora.org, arunks@codeaurora.org, dan.j.williams@intel.com, osalvador@suse.de, logang@deltatee.com, pasha.tatashin@oracle.com, david@redhat.com, cai@lca.pw Subject: [PATCH 1/6] arm64/mm: Enable sysfs based memory hot add interface Date: Wed, 3 Apr 2019 10:00:01 +0530 Message-Id: <1554265806-11501-2-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1554265806-11501-1-git-send-email-anshuman.khandual@arm.com> References: <1554265806-11501-1-git-send-email-anshuman.khandual@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sysfs memory probe interface (/sys/devices/system/memory/probe) can accept starting physical address of an entire memory block to be hot added into the kernel. This is in addition to the existing ACPI based interface. This just enables it with the required config CONFIG_ARCH_MEMORY_PROBE. Signed-off-by: Anshuman Khandual --- arch/arm64/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7e34b9e..a2418fb 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -266,6 +266,15 @@ config HAVE_GENERIC_GUP config ARCH_ENABLE_MEMORY_HOTPLUG def_bool y +config ARCH_MEMORY_PROBE + bool "Enable /sys/devices/system/memory/probe interface" + depends on MEMORY_HOTPLUG + help + This option enables a sysfs /sys/devices/system/memory/probe + interface for testing. See Documentation/memory-hotplug.txt + for more information. If you are unsure how to answer this + question, answer N. + config SMP def_bool y -- 2.7.4