Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4437307yba; Wed, 17 Apr 2019 11:27:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyU7qyEdoDqWrb0QfxsMFFJqdgRoWliz/hflBpZR7eHindExnPwzdHyjUxzluzLa9eMI9bs X-Received: by 2002:a63:fb4d:: with SMTP id w13mr58525975pgj.397.1555525653246; Wed, 17 Apr 2019 11:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555525653; cv=none; d=google.com; s=arc-20160816; b=dU/s67i8D08CkqG6p2lCEP0UBdTqHa3u0MzqnDoarXlWuKSfKVF+CmShwBuhiANbLC YcSxgUqL//oHFSMi5sKAtK1z+IdCf5niBgMRGSOHn0/zud6/Di8/2GOUHtjDf6ebTRaL 8RRD9d5QZS1dDPeoD+hvVe1nClNjmnLskGehRlrmv3LpBjD6Y17No6LZ7ssvHsT8a3EP YZCzwLLJ0ToA1rU9JUafegvREqRmyG+EyTbctM4WTwN3N0HsSML/n1sJeBVICU7Ug+Um Hff5GYOpXi1PVB8BufVV5C4tqxG++R5CIw3zbSaXPz8O8UU23ahfBKEcVqTCatQ5Venx O9Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=EcVQqbPsBLazfmwcePHB1XP40c+WrTsPFIhUq7aOyRc=; b=LO1oQU4DrwVsGGzg9BCxY5AsThzop7P/JHJZQZ+q/NKE/tMudvEO5g+9DvLDmPy1Su rJzfvpJMYC/rgVQBBaXvnigUK/7uamlAM7bebBYKAVBNDVMRoybT/t02Lg6Cl6r3ooq+ 6whnT63kF/mfgtaKsqC5aBFF2XjLqAC1/nZcTKiUs677h78HKmRI2HC+FafQIIXRv0fr sViTF7ZA2DUSqPKFHkMahdWJKtw+OEKrhyHadqUP2LP6IzFLpXk/IGYiVjjJBzkTcWQQ z6p15gBIN3ovflqSIhXaOQT9yDsaezBWPIlbCy4poPH6tltrYcduziu5oQVzgWMoE2iP BqKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4si51503658pgr.158.2019.04.17.11.27.17; Wed, 17 Apr 2019 11:27:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731475AbfDQS0W (ORCPT + 99 others); Wed, 17 Apr 2019 14:26:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53316 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729247AbfDQS0W (ORCPT ); Wed, 17 Apr 2019 14:26:22 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BCA6C3078AAE; Wed, 17 Apr 2019 18:26:21 +0000 (UTC) Received: from redhat.com (unknown [10.20.6.236]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C068A1001E8A; Wed, 17 Apr 2019 18:26:20 +0000 (UTC) Date: Wed, 17 Apr 2019 14:26:18 -0400 From: Jerome Glisse To: Guenter Roeck Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Leon Romanovsky , Jason Gunthorpe , Andrew Morton , Ralph Campbell , John Hubbard Subject: Re: [PATCH] mm/hmm: kconfig split HMM address space mirroring from device memory Message-ID: <20190417182618.GA11499@redhat.com> References: <20190411180326.18958-1-jglisse@redhat.com> <20190417182118.GA1477@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190417182118.GA1477@roeck-us.net> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Wed, 17 Apr 2019 18:26:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 17, 2019 at 11:21:18AM -0700, Guenter Roeck wrote: > On Thu, Apr 11, 2019 at 02:03:26PM -0400, jglisse@redhat.com wrote: > > From: J?r?me Glisse > > > > To allow building device driver that only care about address space > > mirroring (like RDMA ODP) on platform that do not have all the pre- > > requisite for HMM device memory (like ZONE_DEVICE on ARM) split the > > HMM_MIRROR option dependency from the HMM_DEVICE dependency. > > > > Signed-off-by: J?r?me Glisse > > Cc: Leon Romanovsky > > Cc: Jason Gunthorpe > > Cc: Andrew Morton > > Cc: Ralph Campbell > > Cc: John Hubbard > > Tested-by: Leon Romanovsky > > In case it hasn't been reported already: > > mm/hmm.c: In function 'hmm_vma_handle_pmd': > mm/hmm.c:537:8: error: implicit declaration of function 'pmd_pfn'; did you mean 'pte_pfn'? No it is pmd_pfn > > and similar errors when building alpha:allmodconfig (and maybe others). Does HMM_MIRROR get enabled in your config ? It should not does adding depends on (X86_64 || PPC64) to ARCH_HAS_HMM fix it ? I should just add that there for arch i do build. Cheers, J?r?me