From: Stephen Rothwell Subject: Re: [PATCH 1/1] drm/amdgpu: adopt to hmm_range_register API change Date: Wed, 3 Jul 2019 18:30:36 +1000 Message-ID: <20190703183036.09032d12@canb.auug.org.au> References: <20190703015442.11974-1-Felix.Kuehling@amd.com> <20190703145443.2ea425c8@canb.auug.org.au> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1570015043==" Return-path: Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 951486E0B8 for ; Wed, 3 Jul 2019 08:30:54 +0000 (UTC) In-Reply-To: <20190703145443.2ea425c8@canb.auug.org.au> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: "Kuehling, Felix" Cc: "Yang, Philip" , Dave Airlie , "dri-devel@lists.freedesktop.org" , "linux-mm@kvack.org" , "linux-next@vger.kernel.org" , "Deucher, Alexander" , Jason Gunthorpe List-Id: dri-devel@lists.freedesktop.org --===============1570015043== Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/e5qSB1VclK5wgme0230sZ_1"; protocol="application/pgp-signature" --Sig_/e5qSB1VclK5wgme0230sZ_1 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Wed, 3 Jul 2019 14:54:43 +1000 Stephen Rothwell w= rote: > > On Wed, 3 Jul 2019 01:55:08 +0000 "Kuehling, Felix" wrote: > > > > From: Philip Yang > >=20 > > In order to pass mirror instead of mm to hmm_range_register, we need > > pass bo instead of ttm to amdgpu_ttm_tt_get_user_pages because mirror > > is part of amdgpu_mn structure, which is accessible from bo. > >=20 > > Signed-off-by: Philip Yang > > Reviewed-by: Felix Kuehling > > Signed-off-by: Felix Kuehling > > CC: Stephen Rothwell > > CC: Jason Gunthorpe > > CC: Dave Airlie > > CC: Alex Deucher > > --- > > drivers/gpu/drm/Kconfig | 1 - > > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 5 ++--- > > drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- > > drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 3 +-- > > drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | 8 ++++++++ > > drivers/gpu/drm/amd/amdgpu/amdgpu_mn.h | 5 +++++ > > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 12 ++++++++++-- > > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 5 +++-- > > 8 files changed, 30 insertions(+), 11 deletions(-) =20 >=20 > I will apply this to the hmm tree merge today to see how it goes. This (at least) build for me. --=20 Cheers, Stephen Rothwell --Sig_/e5qSB1VclK5wgme0230sZ_1 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl0cZ6wACgkQAVBC80lX 0GwxCAgAm5w3v6m4QhQxoWWwyh1Z0i31z/xsiFrk/0NFrUOK/amLgWJZSB6ROTmT 7ySOpcelOGLsmu7jt9EFVgk7Mio1uPAWYIErYOOp0+PlhloVGbS+lNH+mVNMNuNV xh0mtxzfkltkBEaKMBNRU0V/GIu9s/BAQPVgy6m1g3Nc1a2iOKaojrYdgcjO5stD jQ5J9Nw3gvx9qJmGD3vO7f9aIEOc8l+oO9thr2E3nM0f0v0OVs3oVS0yjMRnidHJ Gu1z/04ZuG477a1nSPU6NrzNQFxrBhz5zO0OIIH2egAwJXh7DzHOIOnHFqkFPdhO o0IPmHtn4WsoNYDaDRuHEWI2ae0V9g== =UeUM -----END PGP SIGNATURE----- --Sig_/e5qSB1VclK5wgme0230sZ_1-- --===============1570015043== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1570015043==--