From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8840C282DA for ; Wed, 17 Apr 2019 18:26:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8668B20675 for ; Wed, 17 Apr 2019 18:26:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731782AbfDQS0W (ORCPT ); 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