Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758022AbbDXS4u (ORCPT ); Fri, 24 Apr 2015 14:56:50 -0400 Received: from resqmta-ch2-02v.sys.comcast.net ([69.252.207.34]:40616 "EHLO resqmta-ch2-02v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755669AbbDXS4r (ORCPT ); Fri, 24 Apr 2015 14:56:47 -0400 Date: Fri, 24 Apr 2015 13:56:45 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Jerome Glisse cc: Benjamin Herrenschmidt , paulmck@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, jglisse@redhat.com, mgorman@suse.de, aarcange@redhat.com, riel@redhat.com, airlied@redhat.com, aneesh.kumar@linux.vnet.ibm.com, Cameron Buschardt , Mark Hairgrove , Geoffrey Gerfin , John McKenna , akpm@linux-foundation.org Subject: Re: Interacting with coherent memory on external devices In-Reply-To: <20150424171957.GE3840@gmail.com> Message-ID: References: <20150422163135.GA4062@gmail.com> <1429756456.4915.22.camel@kernel.crashing.org> <20150423161105.GB2399@gmail.com> <20150424150829.GA3840@gmail.com> <20150424164325.GD3840@gmail.com> <20150424171957.GE3840@gmail.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1642 Lines: 33 On Fri, 24 Apr 2015, Jerome Glisse wrote: > > Right this is how things work and you could improve on that. Stay with the > > scheme. Why would that not work if you map things the same way in both > > environments if both accellerator and host processor can acceess each > > others memory? > > Again and again share address space, having a pointer means the same thing > for the GPU than it means for the CPU ie having a random pointer point to > the same memory whether it is accessed by the GPU or the CPU. While also > keeping the property of the backing memory. It can be share memory from > other process, a file mmaped from disk or simply anonymous memory and > thus we have no control whatsoever on how such memory is allocated. Still no answer as to why is that not possible with the current scheme? You keep on talking about pointers and I keep on responding that this is a matter of making the address space compatible on both sides. > Then you had transparent migration (transparent in the sense that we can > handle CPU page fault on migrated memory) and you will see that you need > to modify the kernel to become aware of this and provide a common code > to deal with all this. If the GPU works like a CPU (which I keep hearing) then you should also be able to run a linu8x kernel on it and make it a regular NUMA node. Hey why dont we make the host cpu a GPU (hello Xeon Phi). -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/