From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752564AbdFNWJi (ORCPT ); Wed, 14 Jun 2017 18:09:38 -0400 Received: from gate.crashing.org ([63.228.1.57]:35859 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751606AbdFNWJh (ORCPT ); Wed, 14 Jun 2017 18:09:37 -0400 Message-ID: <1497478076.2897.46.camel@kernel.crashing.org> Subject: Re: [HMM-CDM 0/5] Cache coherent device memory (CDM) with HMM From: Benjamin Herrenschmidt To: Dave Hansen , Jerome Glisse Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, John Hubbard , David Nellans , cgroups@vger.kernel.org, Dan Williams , Ross Zwisler , Johannes Weiner , Michal Hocko , Vladimir Davydov , Balbir Singh , Aneesh Kumar , "Paul E . McKenney" Date: Thu, 15 Jun 2017 08:07:56 +1000 In-Reply-To: <3a617630-2406-da49-707c-4959a2afd8e1@intel.com> References: <20170614201144.9306-1-jglisse@redhat.com> <8219f8fb-65bb-7c6b-6c4c-acc0601c1e0f@intel.com> <20170614213800.GD4160@redhat.com> <3a617630-2406-da49-707c-4959a2afd8e1@intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-2.fc25) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2017-06-14 at 14:58 -0700, Dave Hansen wrote: > > > http://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf > > > > It doesn't interact with that. HMM-CDM is a set of helper that don't > > do anything unless instructed so. So for device memory to be presented > > as HMM-CDM you need to hotplug it as ZONE_DEVICE(DEVICE_PUBLIC) which > > can be done with the helper introduced in patch 2 of this patchset. > > I guess I'm asking whether we *should* instruct HMM-CDM to manage all > coherent device memory.  If not, where do we draw the line for what we > use HMM-CDM, and for what we use the core MM? Well, if you want the features of HMM ... It basically boils down to whether you have some kind of coherent processing unit close to that memory and want to manage transparent migration of pages between system and device memory, that sort of thing. Cheers, Ben.