Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933750AbbDVAgt (ORCPT ); Tue, 21 Apr 2015 20:36:49 -0400 Received: from gate.crashing.org ([63.228.1.57]:59144 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752410AbbDVAgr (ORCPT ); Tue, 21 Apr 2015 20:36:47 -0400 Message-ID: <1429662969.27410.68.camel@kernel.crashing.org> Subject: Re: Interacting with coherent memory on external devices From: Benjamin Herrenschmidt To: Jerome Glisse Cc: "Paul E. McKenney" , 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 Date: Wed, 22 Apr 2015 10:36:09 +1000 In-Reply-To: <20150421234606.GA6046@gmail.com> References: <20150421214445.GA29093@linux.vnet.ibm.com> <20150421234606.GA6046@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1662 Lines: 41 On Tue, 2015-04-21 at 19:46 -0400, Jerome Glisse wrote: > On Tue, Apr 21, 2015 at 02:44:45PM -0700, Paul E. McKenney wrote: > > Hello! > > > > We have some interest in hardware on devices that is cache-coherent > > with main memory, and in migrating memory between host memory and > > device memory. We believe that we might not be the only ones looking > > ahead to hardware like this, so please see below for a draft of some > > approaches that we have been thinking of. > > > > Thoughts? > > I have posted several time a patchset just for doing that, i am sure > Ben did see it. Search for HMM. I am about to repost it in next couple > weeks. Actually no :-) This is not at all HMM realm. HMM deals with non-cachable (MMIO) device memory that isn't represented by struct page and separate MMUs that allow pages to be selectively unmapped from CPU vs. device. This proposal is about a very different type of device where the device memory is fully cachable from a CPU standpoint, and thus can be represented by struct page, and the device has an MMU that is completely shared with the CPU, ie, the device operates within a given context of the system and if a page is marked read-only or inaccessible, this will be true on both the CPU and the device. Note: IBM is also interested in HMM for devices that don't qualify with the above such as some GPUs or NICs, but this is something *else*. Cheers, Ben. -- 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/