Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1021539pxb; Wed, 6 Apr 2022 06:56:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoWRft5wkD6Is1Es/+9TBRcmg58hq/2gVbUkJTuDIqGzOScmucfNtZktIUqi5NVBwV7ikB X-Received: by 2002:a17:90b:713:b0:1c9:8dbf:e6fd with SMTP id s19-20020a17090b071300b001c98dbfe6fdmr10198333pjz.80.1649253415699; Wed, 06 Apr 2022 06:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649253415; cv=none; d=google.com; s=arc-20160816; b=1FvE41FoL+LlV66I5rL1jsglgjxOa0DF9mIUtdaW9junHtsjHB4PEV2wqUuwvutjla aMTnPj4IXtYKtPb2Lo/cRoPmmfln7H6wxbCoXkAGOrm5qn5Fm15mUXlHAf4WbbntTEfg M9Q2sumImZa7AjBM6Ana52yW9YozzHAUdblwjpmxf1exaeuBvh1vCvjSqKfvagUMwAYk wvPwVlagscmwpQIBG4VJTfpwKFxL5ESWaKzLU+llyrDRcLwRILufNSCIhGeJkvZu+6b6 nZLUaRUdYQtHxPs645yuoTXJjHpol3TOtjP+lnLu0476HOfAooA9FQlyX9UL/OWmQb7C M6lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=QqgDmsFvSYcgWUESimdJ8L2VbsOjXioSTdWO5yoK+sc=; b=lgF7PtkxnPwivI7PgLNhpjxGP3gKp0yswnbRdXaJt5dD/xMcJiOdi8m2A5B0nbfQoG t463pMCHpFanCeymNw+iwnIGfvNnKn7TPYE22y3hRcXNHSLuuHNJSdZg/31XHy1cDIUZ ql1IOOQ3xwZJ1SijibqMUY6PXUlYQ5iwSqECKwZbmJwgN9k7dHtjei6HFHaLMQHUsvCZ meuAwZQUUPkc7LMR2DON18jUB5FNirXmiYaxxvUqKVeyBbI0wJO6q+GHQHFUjbIZhN2m WMBzhZidPnaaOZzbIcZohiWlCvNfKGCQ7sr/UMmkIdDq/YELuTG5UYwS6DCnRuuhYmYb WvQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b="rLk73Ha/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k19-20020a170902ba9300b001549d3bcb46si15199122pls.584.2022.04.06.06.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:56:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b="rLk73Ha/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 86655195325; Wed, 6 Apr 2022 04:49:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345888AbiDFFsc (ORCPT + 99 others); Wed, 6 Apr 2022 01:48:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2361243AbiDFEZm (ORCPT ); Wed, 6 Apr 2022 00:25:42 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D64B2C; Tue, 5 Apr 2022 17:34:08 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4KY59V1grWz4xY1; Wed, 6 Apr 2022 10:34:06 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1649205247; bh=QqgDmsFvSYcgWUESimdJ8L2VbsOjXioSTdWO5yoK+sc=; h=Date:From:To:Cc:Subject:From; b=rLk73Ha/H0NukY3HR2rCuYtPehs1SnGxxMUO12TO+iC+BdxvU/NtX8VODTKI18Ire dHn7QTHafzv+jbWMpLJlUZW559uyF6T8bxANz9yOXmvZhQnnieKsvog0Yys9f37AV6 ARfxov3RnOGAke0TatW4FcMNxZ1IxleoVEnMXdUtoH16ANL0VUGWOqQqFzYXUNdgQf Zd3BTmfgxZAySLkJQH5lguNtOANau84S6KSV0Q0/tLWu5CyQp+Dt2e/QA6b54ftK+n aRwNLOLNGQFl6iNBdRCX87QQBsorL/n5ayAPweM5ytoWpHA6Df0xQkmwnn4qKaM/jq uQYTsVdfTZPig== Date: Wed, 6 Apr 2022 10:34:05 +1000 From: Stephen Rothwell To: Alex Deucher , Daniel Vetter , Intel Graphics , DRI Cc: Alex Deucher , Christian =?UTF-8?B?S8O2bmln?= , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: manual merge of the amdgpu tree with the drm-misc tree Message-ID: <20220406103405.299c06b9@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/HS+hEAkeP/V.TjBE.IFp.s9"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/HS+hEAkeP/V.TjBE.IFp.s9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the amdgpu tree got a conflict in: drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c between commit: fee2ede15542 ("drm/ttm: rework bulk move handling v5") from the drm-misc tree and commit: 184a69ca4d41 ("drm/amdgpu: separate VM PT handling into amdgpu_vm_pt.c") from the amdgpu tree. I fixed it up (I used this file from the latter and added the following patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. From: Stephen Rothwell Date: Wed, 6 Apr 2022 10:28:53 +1000 Subject: [PATCH] fix up for "drm/ttm: rework bulk move handling v5" Signed-off-by: Stephen Rothwell --- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c b/drivers/gpu/drm/am= d/amdgpu/amdgpu_vm_pt.c index 958d7ed97882..a29933fa001f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c @@ -630,7 +630,14 @@ static void amdgpu_vm_pt_free(struct amdgpu_vm_bo_base= *entry) =20 if (!entry->bo) return; + shadow =3D amdgpu_bo_shadowed(entry->bo); + if (shadow) { + ttm_bo_set_bulk_move(&shadow->tbo, NULL); + amdgpu_bo_unref(&shadow); + } + + ttm_bo_set_bulk_move(&entry->bo->tbo, NULL); entry->bo->vm_bo =3D NULL; list_del(&entry->vm_status); amdgpu_bo_unref(&shadow); @@ -653,8 +660,6 @@ static void amdgpu_vm_pt_free_dfs(struct amdgpu_device = *adev, struct amdgpu_vm_pt_cursor cursor; struct amdgpu_vm_bo_base *entry; =20 - vm->bulk_moveable =3D false; - for_each_amdgpu_vm_pt_dfs_safe(adev, vm, start, cursor, entry) amdgpu_vm_pt_free(entry); =20 --=20 2.35.1 --=20 Cheers, Stephen Rothwell --Sig_/HS+hEAkeP/V.TjBE.IFp.s9 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmJM3/0ACgkQAVBC80lX 0Gxogwf/exk2DdA1yDjnxFuGFmWqyrQlc0z7MS+nraBxW/sGxr0WCISIaq3m71tn cB46hEIgHt/Ob0BtV+gDLmTHihgasmCZ4xCdmo7MY9XmG7xcs8+VSwk7OPL1B4RN Bx32107zw/Qa0wce1GPJQbnGOznqqG+AfYUvLkc9LBBaKNM4pfhpnqKLfcKvil2Z HVSqiVinejMJNHI14fJhhFJDKAkbS8sLhDXBnTYaiEvyHMILz2fDQ/j19cxEwBre ac1rWzhYvCsQz4dc3J+Z8pvXL/BV3mdQ2jKDVGerrh6hiX6oyUZ7TcRNi6QU1tyk RWI2Sk04O8v1VBB0T2uEgLmrmCIKFA== =7nog -----END PGP SIGNATURE----- --Sig_/HS+hEAkeP/V.TjBE.IFp.s9--