Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp857900yba; Wed, 3 Apr 2019 22:28:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPjoorkHBvwBpa4RKbZ7MS21UUkEyxRoj86dp9DL7EO87UKVV9KhKVolVSppKZNZMM5LkY X-Received: by 2002:a63:be02:: with SMTP id l2mr3708085pgf.48.1554355713252; Wed, 03 Apr 2019 22:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554355713; cv=none; d=google.com; s=arc-20160816; b=Ue00oeMGevb6Px22mPIQs0Iz2n2IUPlz5Z5i/0W3fMRyp0e8Nayk3AOz0K1LKKEwUj 5oJL2q2C2CsTVtXH0ItgYMefLEw8empD+RN6llmUAqKDhRW6cDOaHlNx/7hNWw+2QGQi zq6PlpwMtfDhaXNIvxi2Nl1CJY7fIi+1KXASk896gFIR9GKmHAiJnITCOBoB0EUo+JiJ ijz1YjKum/ssDHOPWZMLXpPE9qu+RHyNwXkPR3nQC2sbECkaH0+KyFyrSD1fBxeAt5Fy lH+9uMf+evbAAKoWKDIsWbV840bqO6/+ZRbSWshnHsNtAoWBQZqCVON5a4y7w0H8L0Mv KNuw== 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=2n1pA2mwlwQsKIZqSTOKYQ2FK0GwFRWvbXpAPOwlfxQ=; b=inqQuaj7ynZpwFx1IwuSMD+iiA4dGWyOB+uwgjaFh5TYEdxrnFUqZ7ej/vXq4/eimv 4qdQnbtZOy+I03w/od6Ezwt+hCaCacuuNgJK1epyTyhYSOdQrEtD2mUF9S8HC4c+gM4r 3zPCN7reb8UoYqrOK8S0qYNgVH7XCcl/OEhmDycF3+gC9fCfwRkrqeCODpTzC9LCLk7y BhAtymbDnYSaLUOq6FgT+c+92rGDnFhilERUhTaefqdauCWEvKAa7iIoUD4XYuCqm8NW lWku+4EKkUmX13pjBkslxPgJTP4Y/2b3rCp5TO7ouTYEwFvcY9o0p1n7yS8g7D+htnjr riuA== 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 b12si15409966pgl.264.2019.04.03.22.28.18; Wed, 03 Apr 2019 22:28: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 S1726785AbfDDFZl (ORCPT + 99 others); Thu, 4 Apr 2019 01:25:41 -0400 Received: from foss.arm.com ([217.140.101.70]:51894 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbfDDFZl (ORCPT ); Thu, 4 Apr 2019 01:25:41 -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 48BD6A78; Wed, 3 Apr 2019 22:25:41 -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 1C48C3F721; Wed, 3 Apr 2019 22:25:34 -0700 (PDT) Subject: Re: [PATCH 1/6] arm64/mm: Enable sysfs based memory hot add interface To: David Hildenbrand , 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, cai@lca.pw References: <1554265806-11501-1-git-send-email-anshuman.khandual@arm.com> <1554265806-11501-2-git-send-email-anshuman.khandual@arm.com> <4b9dd2b0-3b11-608c-1a40-9a3d203dd904@redhat.com> From: Anshuman Khandual Message-ID: Date: Thu, 4 Apr 2019 10:55:36 +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: <4b9dd2b0-3b11-608c-1a40-9a3d203dd904@redhat.com> 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 01:50 PM, David Hildenbrand wrote: > On 03.04.19 06:30, Anshuman Khandual wrote: >> 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. >> > We recently discussed that the similar interface for removal should > rather be moved to a debug/test module. Can we maintain such a debug/test module mainline and enable it when required. Or can have both add and remove interface at /sys/kernel/debug/ just for testing purpose. > > I wonder if we should try to do the same for the sysfs probing > interface. Rather try to get rid of it than open the doors for more users. > I understand your concern. Will drop this patch.