From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752469AbdFORns convert rfc822-to-8bit (ORCPT ); Thu, 15 Jun 2017 13:43:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53590 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752359AbdFORnm (ORCPT ); Thu, 15 Jun 2017 13:43:42 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 62E814ACB3 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jglisse@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 62E814ACB3 Date: Thu, 15 Jun 2017 13:43:25 -0400 (EDT) From: Jerome Glisse To: zhong jiang Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Dan Williams , "Kirill A . Shutemov" , John Hubbard , Ross Zwisler Message-ID: <1982176625.36197567.1497548604992.JavaMail.zimbra@redhat.com> In-Reply-To: <59420204.905@huawei.com> References: <20170524172024.30810-1-jglisse@redhat.com> <20170524172024.30810-8-jglisse@redhat.com> <59420204.905@huawei.com> Subject: Re: [HMM 07/15] mm/ZONE_DEVICE: new type of ZONE_DEVICE for unaddressable memory v3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.20.1.180, 10.4.195.3] Thread-Topic: mm/ZONE_DEVICE: new type of ZONE_DEVICE for unaddressable memory v3 Thread-Index: 2X2MorKY+XUaWUgAMGk/t9/ZH5Ug6g== X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 15 Jun 2017 17:43:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 2017/5/25 1:20, Jérôme Glisse wrote: [...] > > diff --git a/mm/Kconfig b/mm/Kconfig > > index d744cff..f5357ff 100644 > > --- a/mm/Kconfig > > +++ b/mm/Kconfig > > @@ -736,6 +736,19 @@ config ZONE_DEVICE > > > > If FS_DAX is enabled, then say Y. > > > > +config DEVICE_PRIVATE > > + bool "Unaddressable device memory (GPU memory, ...)" > > + depends on X86_64 > > + depends on ZONE_DEVICE > > + depends on MEMORY_HOTPLUG > > + depends on MEMORY_HOTREMOVE > > + depends on SPARSEMEM_VMEMMAP > > + > maybe just depends on ARCH_HAS_HMM is enough. I have updated that as part of HMM CDM patchset.