From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by kanga.kvack.org (Postfix) with ESMTP id 27E456B707F for ; Tue, 4 Dec 2018 15:14:34 -0500 (EST) Received: by mail-pg1-f198.google.com with SMTP id o17so9665857pgi.14 for ; Tue, 04 Dec 2018 12:14:34 -0800 (PST) Received: from mga14.intel.com (mga14.intel.com. [192.55.52.115]) by mx.google.com with ESMTPS id l96si17740327plb.292.2018.12.04.12.14.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Dec 2018 12:14:33 -0800 (PST) Date: Tue, 4 Dec 2018 12:14:32 -0800 From: Andi Kleen Subject: Re: [RFC PATCH 02/14] mm/hms: heterogenenous memory system (HMS) documentation Message-ID: <20181204201432.GH18167@tassilo.jf.intel.com> References: <20181203233509.20671-1-jglisse@redhat.com> <20181203233509.20671-3-jglisse@redhat.com> <875zw98bm4.fsf@linux.intel.com> <20181204182421.GC2937@redhat.com> <20181204185725.GE2937@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Logan Gunthorpe Cc: Jerome Glisse , Dan Williams , Linux MM , Andrew Morton , Linux Kernel Mailing List , "Rafael J. Wysocki" , Ross Zwisler , Dave Hansen , Haggai Eran , balbirs@au1.ibm.com, "Aneesh Kumar K.V" , Benjamin Herrenschmidt , "Kuehling, Felix" , Philip.Yang@amd.com, "Koenig, Christian" , "Blinzer, Paul" , John Hubbard , rcampbell@nvidia.com > Also, in the same vein, I think it's wrong to have the API enumerate all > the different memory available in the system. The API should simply We need an enumeration API too, just to display to the user what they have, and possibly for applications to size their buffers (all we do with existing NUMA nodes) But yes the default usage should be to query for necessary attributes -Andi