From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guy Shattah Subject: Re: [RFC PATCH 3/3] mm/map_contig: Add mmap(MAP_CONTIG) support Date: Mon, 16 Oct 2017 14:09:03 +0300 Message-ID: <267dbccf-5649-7a7c-b85d-66546c0913cc@mellanox.com> References: <20171012014611.18725-1-mike.kravetz@oracle.com> <20171012014611.18725-4-mike.kravetz@oracle.com> <20171012143756.p5bv4zx476qkmqhh@dhcp22.suse.cz> <20171013084054.me3kxhgbxzgm2lpr@dhcp22.suse.cz> <20171013152801.nbpk6nluotgbmfrs@dhcp22.suse.cz> <20171013154747.2jv7rtfqyyagiodn@dhcp22.suse.cz> <20171013161736.htumyr4cskfrjq64@dhcp22.suse.cz> <752b49eb-55c6-5a34-ab41-6e91dd93ea70@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Michal Nazarewicz , Michal Hocko , Christopher Lameter Cc: Mike Kravetz , linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Marek Szyprowski , "Aneesh Kumar K . V" , Joonsoo Kim , Anshuman Khandual , Laura Abbott , Vlastimil Babka List-Id: linux-api@vger.kernel.org On 16/10/2017 13:33, Michal Nazarewicz wrote: > On Sun, Oct 15 2017, Guy Shattah wrote: >> Why have several driver specific implementation if you can generalize >> the idea and implement an already existing POSIX standard? > Why is there a need for contiguous allocation? This was explained in detail during a talk delivered by me and Christopher Lameter during Plumbers conference 2017 @ https://linuxplumbersconf.org/2017/ocw/proposals/4669 Please see the slides there. > If generalisation is the issue, then the solution is to define a common > API where user-space can allocate memory *in the context of* a device. > This provides a ‘give me memory I can use for this device’ request which > is what user space really wants. Do you suggest to add a whole new common API instead of merely adding a flag to existing one?