From: Stephen Rothwell Subject: Re: [PATCH 1/1] drm/amdgpu: adopt to hmm_range_register API change Date: Wed, 3 Jul 2019 14:54:43 +1000 Message-ID: <20190703145443.2ea425c8@canb.auug.org.au> References: <20190703015442.11974-1-Felix.Kuehling@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1946813774==" Return-path: Received: from ozlabs.org (ozlabs.org [203.11.71.1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5A3C46E09A for ; Wed, 3 Jul 2019 04:54:49 +0000 (UTC) In-Reply-To: <20190703015442.11974-1-Felix.Kuehling@amd.com> 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 --===============1946813774== Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/1ISLS9cnW4KdQ3cHKyFA5Eq"; protocol="application/pgp-signature" --Sig_/1ISLS9cnW4KdQ3cHKyFA5Eq Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, 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(-) I will apply this to the hmm tree merge today to see how it goes. --=20 Cheers, Stephen Rothwell --Sig_/1ISLS9cnW4KdQ3cHKyFA5Eq Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl0cNRMACgkQAVBC80lX 0GxR+wf/XafVose6tyhCcoiEqvhT+ysgJzCZmqFzBVqIISTf31GzmmteRaShVfAv qAQZpczlWvcJ8HWZIlJrNYQXlSgrP7s1Mu57oPZjUHoYwWGLKegjhVkUv8MJxm70 uD8kYtHsy7k9oK5aC+dVhcXgcVxIjFootGahidgHw0JLGTD9LrVKs5giMo/hHpRU /VvFzLeCHKbY3VqEi4/brg6vMkx5M1gHf5oWz/S8i4XxNhKHd7X/5TGSk/IqEM3n yG9QcUb/XHadm0DAcIYokCKQArVoB0uTo8FI23rufoP5v4imBIQVtXequtMKwA6w 2xXj+tSEXp9Ha/hkOJwI96/D/6BNHw== =TZJq -----END PGP SIGNATURE----- --Sig_/1ISLS9cnW4KdQ3cHKyFA5Eq-- --===============1946813774== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1946813774==--