From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by kanga.kvack.org (Postfix) with ESMTP id 58C4A6B76DF for ; Wed, 5 Dec 2018 18:27:16 -0500 (EST) Received: by mail-qk1-f197.google.com with SMTP id z68so21678338qkb.14 for ; Wed, 05 Dec 2018 15:27:16 -0800 (PST) Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id w128si1091414qkc.37.2018.12.05.15.27.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 15:27:15 -0800 (PST) Date: Wed, 5 Dec 2018 18:27:10 -0500 From: Jerome Glisse Subject: Re: [RFC PATCH 02/14] mm/hms: heterogenenous memory system (HMS) documentation Message-ID: <20181205232710.GP3536@redhat.com> References: <20181205180756.GI3536@redhat.com> <20181205183314.GJ3536@redhat.com> <0ddb2620-ecbd-4b7b-aeb7-3f4ae7746e83@deltatee.com> <20181205185550.GK3536@redhat.com> <7ab26ea6-d16d-8d71-78ca-4266a864f8d3@deltatee.com> <20181205225828.GL3536@redhat.com> <20181205232028.GO3536@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: Dan Williams , Andi Kleen , Linux MM , Andrew Morton , Linux Kernel Mailing List , "Rafael J. Wysocki" , 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 On Wed, Dec 05, 2018 at 04:23:42PM -0700, Logan Gunthorpe wrote: > > > On 2018-12-05 4:20 p.m., Jerome Glisse wrote: > > And my proposal is under /sys/bus and have symlink to all existing > > device it agregate in there. > > That's so not the point. Use the existing buses don't invent some > virtual tree. I don't know how many times I have to say this or in how > many ways. I'm not responding anymore. And how do i express interaction with different buses because i just do not see how to do that in the existing scheme. It would be like teaching to each bus about all the other bus versus having each bus register itself under a common framework and have all the interaction between bus mediated through that common framework avoiding code duplication accross buses. > > > So you agree with my proposal ? A sysfs directory in which all the > > bus and how they are connected to each other and what is connected > > to each of them (device, CPU, memory). > > I'm fine with the motivation. What I'm arguing against is the > implementation and the fact you have to create a whole grand new > userspace API and hierarchy to accomplish it. > > Logan