Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7682815rwb; Tue, 15 Nov 2022 16:20:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6HZXxhmV3doUTh/zM6Vgi4jNf5Ql97H/jPcFAtBo4pMfOL9PaDP0BqvlBhP6/rHBCa+dNY X-Received: by 2002:a17:906:ccd6:b0:78d:9002:fe3b with SMTP id ot22-20020a170906ccd600b0078d9002fe3bmr15912285ejb.769.1668558054940; Tue, 15 Nov 2022 16:20:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668558054; cv=none; d=google.com; s=arc-20160816; b=zT8+y9ANMX/Fan7O5tsfeRbcoH36E5WRBoihleEGalPiD1lQGYuCBdJAzSPpvNCKt8 8+5tAUNU2Ac97BpVB933G9uUS2fFBaGONmKq/JMgUxfxxYuVZOyNKPrcAXWzZdQtGsL/ 9uilQxKPjW2feyMiHkskp4QpqMFGRgUITy+04HKwY6NP7MHNCBq3y9gjkpoMYsjPfYzh c0EDIaDonotBH2y/o3/RsgtQ8uXshGQDdpgzoremPt3HPR5PXxMtc8RvqJo14lhBfj4g 7pAncuI41kZ9nwKiaMsVhzJWb8Hg7Az28oQmjWKddeVniv74rxT0GaHG9CNLMIOHApgC oC6w== 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=mNBclmwaAQTxYMzZYFdEyX+gKdInfl7kuoGFMn09KBE=; b=gf6c0D9QuvEypKofLVKXPQvgysEIkuKysMwI+KryzQW7MqrKxbgxCRUg34w3pLSM8R s0LLuVLYKJCuo+/WZoBp+kEmyS2/zn7mcqUNtF0oxDWlwz3cenltwVuG5N2k42qxY2gD GJ9n3T1cIJ0Lka4fYs7hdLedqx0yosxe+ZVtHqPmYgdAofqWUFy1lzkMN/fkNWeCcZ02 Jh1RX5KHeZBLfLRKVyQHIPnyWsig2YQHjDnsu6eVJOMtiraymjbZZw9nZ93op7QyCor7 Q7oRYq/pMbh2Hk9n+pubJ70CmXZjfWCvV2m2+A6KEfqGc6bUX5YfqFK8V0RgcSK7STsL rS+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=VSBRMDX7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020aa7c2ca000000b004520b01a355si11175355edp.52.2022.11.15.16.20.33; Tue, 15 Nov 2022 16:20:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=VSBRMDX7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231398AbiKOXsB (ORCPT + 90 others); Tue, 15 Nov 2022 18:48:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbiKOXr6 (ORCPT ); Tue, 15 Nov 2022 18:47:58 -0500 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F807317F7; Tue, 15 Nov 2022 15:47:56 -0800 (PST) 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 4NBjXn6LxNz4xTg; Wed, 16 Nov 2022 10:47:53 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1668556074; bh=mNBclmwaAQTxYMzZYFdEyX+gKdInfl7kuoGFMn09KBE=; h=Date:From:To:Cc:Subject:From; b=VSBRMDX7d+o9U9vMdOkJFHDqhGZZpXmU1SF9zkKv+LvurcZNq+W66tBxTt9ArbT0p Puva/8Di6LF2Z1Q/TQb5Vzf90i1/4hFWHUotU+H8u5iyk/DbzxogZvIbzjcrCOqNZV fZdaZuguvV6MVMuqJG/CqR6dR+UyGPNxKJD8Il1th71kdbqwzf2F0NfvLwGtyTEz7z nGKpPzpV4A3GWAX5c/PTIrCISK4ki7IHi+AfYi4JxcoNxdDfzTZsSxd7DWiO7jaLTw JptBX61a7jj9+u4GEbZ+N+PK4xmNmhdv1R9LrYQe02zszVqfeS0q9kwScGoo5CiF+I QLGKVNzyAeFuQ== Date: Wed, 16 Nov 2022 10:47:52 +1100 From: Stephen Rothwell To: Daniel Vetter , Intel Graphics , DRI Cc: Christian =?UTF-8?B?S8O2bmln?= , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: manual merge of the drm-misc tree with the drm-misc-fixes tree Message-ID: <20221116104752.4c64495a@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/wjgPxu/WZguAY0NUMy/Wf_I"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS autolearn=ham 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_/wjgPxu/WZguAY0NUMy/Wf_I Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the drm-misc tree got a conflict in: drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c between commit: eca13f3c67b6 ("drm/amdgpu: use the last IB as gang leader v2") from the drm-misc-fixes tree and commit: 1728baa7e4e6 ("drm/amdgpu: use scheduler dependencies for CS") from the drm-misc tree. I fixed it up (see below) 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. --=20 Cheers, Stephen Rothwell diff --cc drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index de5cb056c9ad,0528c2b1db6e..000000000000 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@@ -1197,10 -1201,7 +1203,10 @@@ static int amdgpu_cs_sync_rings(struct=20 } =20 for (i =3D 0; i < p->gang_size; ++i) { + if (p->jobs[i] =3D=3D leader) + continue; + - r =3D amdgpu_sync_clone(&leader->sync, &p->jobs[i]->sync); + r =3D amdgpu_sync_push_to_job(&p->sync, p->jobs[i]); if (r) return r; } @@@ -1241,14 -1243,11 +1247,14 @@@ static int amdgpu_cs_submit(struct amdg for (i =3D 0; i < p->gang_size; ++i) drm_sched_job_arm(&p->jobs[i]->base); =20 - for (i =3D 0; i < (p->gang_size - 1); ++i) { + for (i =3D 0; i < p->gang_size; ++i) { struct dma_fence *fence; =20 + if (p->jobs[i] =3D=3D leader) + continue; + fence =3D &p->jobs[i]->base.s_fence->scheduled; - r =3D amdgpu_sync_fence(&leader->sync, fence); + r =3D drm_sched_job_add_dependency(&leader->base, fence); if (r) goto error_cleanup; } --Sig_/wjgPxu/WZguAY0NUMy/Wf_I Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmN0JSgACgkQAVBC80lX 0GxUwAgAoWI36aevpcyI9lzL7qDXiwqHVX3Vr5ed8U4YFtRFEOCr8jK+zBq4DnQK RTORhliDSaGNM4mZAbYeUcqPcIGEWBqcIYKmpwNPihBWP85dcO1LXN8r1Zxb33/y tuniOCKdJtCExKjq7b5I1FPkFxKMFND/MCkcWzMur4b/F8KedMYfczRqD1N1uU2C Nrrq88G/KeTj/3nqeH0+ErAdl++9zlLmWOHpzGUXJmjGmcVb7gHhZapFpNYbIhEB 8OqKTU38GWuz+okJdR4wx4WIbcAQYbr+yO7nPKOgrwnjRlYEpJcdhCFh0jN/RwrG Etxmk8SdRn4TLVl1kX/HxmWAGDEs8A== =2ttS -----END PGP SIGNATURE----- --Sig_/wjgPxu/WZguAY0NUMy/Wf_I--