Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp172296ybi; Tue, 2 Jul 2019 18:29:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIf5zORYrZrUpioLmL9i7xpZ/5GuzELCcb6+iANcs3WsNVYHJZN5320x8ksg+sBX+DVG01 X-Received: by 2002:a17:902:6b02:: with SMTP id o2mr35567168plk.99.1562117374610; Tue, 02 Jul 2019 18:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562117374; cv=none; d=google.com; s=arc-20160816; b=UXYgqBJbicy4WhESZfQLy8OptwXPTJlc0tdIhzZe/9/lLfONnsxSrFMjAzCe6WEV8S gHe/NTLLxMKrxnoVrV6ilCJmx5zzA/swEEZZsquqAorTiujI9teb5e0hj7RNPlnKdGN1 oKIaTv0lf78Ma9K89AJ2Br9var07oSU+m+NNBaaLjeGiNlAKauFNKB/G/97i1agDhBNf wF2GzBacfOjpw8qfwNxbPApVLTxWF49BUJEGnmjWvTidvR0I9SsdfGvaarJ3EqDukScD VwkeQZuKAL/z+xdp1fBCAVRFgus93bkOgK0QCZiikhfYtz9uP480LeIyJQPy/lkkzRR8 aOyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yy/jJe6Qlwwp1Uwe0Cit54zA7Vf11kpokyvinUCks7c=; b=E0Z25GVN4wGabHA9IJhHGICOZu/WPFz27mBs6msfnem03papAypc1cOt9JkbxTLWKP rArLPIhT8f8liyzokPwtQIJurUSC6jPZikVMTxPzr/88j6baxLXbWDoyq8Yx5xdQv7p9 7BhVvpivZXPKeECcAzfi+Pulus9/tv2WvWMqEZAq4wOLkGIcITrprRgGeiqaET2KzqfP OOQNI+PSWJqOgSF4iWe97Ik/A1sVuigP4HQkAZtdAM1iWBR4XhafZM+hV7r1nrOmvMdd 3g1IFFuDU2k3ZUtrdeP7Zo5MR02Uw+EUK5L4XYtGo6vzd/fnmsYkOrZUMqV1Xx5L6ANh 8FDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="aTQ/vUCf"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si433383pfb.60.2019.07.02.18.29.19; Tue, 02 Jul 2019 18:29:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="aTQ/vUCf"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727261AbfGCB2q (ORCPT + 99 others); Tue, 2 Jul 2019 21:28:46 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34017 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727133AbfGCB2o (ORCPT ); Tue, 2 Jul 2019 21:28:44 -0400 Received: by mail-wr1-f66.google.com with SMTP id u18so788105wru.1; Tue, 02 Jul 2019 18:28:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yy/jJe6Qlwwp1Uwe0Cit54zA7Vf11kpokyvinUCks7c=; b=aTQ/vUCfodZFR5bl0E3g9XXd7THPV9nPu2mYp1+I8zMhs9sW7E6Ryo+nF5yEJRUyNX fI8WUsDhjEVt5q7xnTAgk5AA+5WeigU53ZxjE4QoGIwbCvPIcq4EZoVsRxM6FKfrPuov Qv+OEuln/KI5BLM4Pcsc6t/+OoqYbY+FJfgqqCNBwH5J9qIXgp7HRmXM/Hp/6QQGgZD3 RYP/lR0JWxJM/E4pW5wsV+9KSD10OM3lmMEU8ATdAqNCmgb6fDdjtBE+6ORfdyU9DXjd JVUjqtL75spzdpAY6myj7OjBc40Gef9T6W9tBjtXlgTblrPH+kg8uUbhXkFlI1Wc3GOk D0Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yy/jJe6Qlwwp1Uwe0Cit54zA7Vf11kpokyvinUCks7c=; b=VbS7125Xu3y5i7b1GwiKV/aytg+I8tAWJI2xvqGtxl0ED+cm2aucFHw3lFV3KJapiY +Vy31Z2g9gZBZt4jT7MKTl/ZllRd0SvT+nMrZY7/nKayAIFhxyiUtMEktmEshbA4duOa AkakRNiI53CsVW4TU13pNqCjt3k4wciDg5TNmfSQYhk2F8Zw9fkwV78TF9oE10e4E/i7 k5vDcMtASQFf4S4hBhsTT2+wdZbOnlRUDyTMnMRAFSB2e+yRsdBVKZ6awTN5DiA/Od+B sTXmcwFJbouc44PwvZD6dnkzToyyCy9KGxuXJg9WsqtHLt5wJTipAigwtUWmsbP1mrBQ ojLg== X-Gm-Message-State: APjAAAV1xcLOF4U5PjewohHXwh1FasFaNAcfgz2Q+DQ3sUJdxRHBVhZw oUJTjZsY8ni3/qRLr5iSQbTxjutHdGTFrma2rPArj2PdkVA= X-Received: by 2002:adf:dec3:: with SMTP id i3mr14133575wrn.74.1562117322653; Tue, 02 Jul 2019 18:28:42 -0700 (PDT) MIME-Version: 1.0 References: <20190701213304.34eeaef8@canb.auug.org.au> <20190701231036.GC23718@mellanox.com> In-Reply-To: <20190701231036.GC23718@mellanox.com> From: Alex Deucher Date: Tue, 2 Jul 2019 21:28:30 -0400 Message-ID: Subject: Re: linux-next: build failure after merge of the hmm tree To: Jason Gunthorpe , "Kuehling, Felix" , "Yang, Philip" Cc: Stephen Rothwell , Dave Airlie , Linux Kernel Mailing List , DRI , Linux Next Mailing List , Alex Deucher Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 2, 2019 at 3:24 AM Jason Gunthorpe wrote: > > On Mon, Jul 01, 2019 at 09:33:04PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > After merging the hmm tree, today's linux-next build (x86_64 allmodconfig) > > failed like this: > > > > mm/hmm.c: In function 'hmm_get_or_create': > > mm/hmm.c:50:2: error: implicit declaration of function 'lockdep_assert_held_exclusive'; did you mean 'lockdep_assert_held_once'? [-Werror=implicit-function-declaration] > > lockdep_assert_held_exclusive(&mm->mmap_sem); > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > lockdep_assert_held_once > > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c: In function 'amdgpu_ttm_tt_get_user_pages': > > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:778:28: error: passing argument 2 of 'hmm_range_register' from incompatible pointer type [-Werror=incompatible-pointer-types] > > hmm_range_register(range, mm, start, > > ^~ > > In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:35: > > include/linux/hmm.h:464:29: note: expected 'struct hmm_mirror *' but argument is of type 'struct mm_struct *' > > struct hmm_mirror *mirror, > > ~~~~~~~~~~~~~~~~~~~^~~~~~ > > > > Caused by commit > > > > e36acfe6c86d ("mm/hmm: Use hmm_mirror not mm as an argument for hmm_range_register") > > > > interacting with commit > > > > 66c45500bfdc ("drm/amdgpu: use new HMM APIs and helpers") > > > > from the drm tree. > > > > All I could do for now was to mark the AMDGPU driver broken. Please > > submit a merge for for me (and later Linus) to use. > > This is expected, the AMD guys have the resolution for this from when > they tested hmm.git.. > > I think we are going to have to merge hmm.git into the amdgpu tree and > push the resolution forward, as it looks kind of complicated to shift > onto Linus or DRM. > > Probably amdgpu needs to gain a few patches making the hmm_mirror > visible to amdgpu_ttm.c and then the merge resolution will be simple? > > AMD/DRM we have a few days left to decide on how best to handle the > conflict, thanks. Philip and Felix have been working on a branch with hmm merged into drm-next with all the conflicts fixes up. I'll post it out tomorrow once I get Felix's latest revisions. Alex > > Regards, > Jason > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel