Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7735007rwb; Tue, 15 Nov 2022 17:13:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DqyQHMY8loi1nr7xWTQw3ycpReDGi4SLAWe3Ulkc9V+HvCQc+EXwiIUv8c/w0vsZzg4Mu X-Received: by 2002:a63:3c8:0:b0:476:ea7d:2931 with SMTP id 191-20020a6303c8000000b00476ea7d2931mr67781pgd.142.1668561220031; Tue, 15 Nov 2022 17:13:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668561220; cv=none; d=google.com; s=arc-20160816; b=PyY7M3VEpFSSSKVMieVltxsv/S6xKs2NVd/zvJCP+D8ll9dM5VAbcdS5nU8ut1GQlv hlkfGrSvPaei4OqFIZKT8lUrSTAOjAsllj3AVXagQ8DT6zQ5c+whGgDtUK56sk7pzsNS 3KCgFcefMinrZOP8kbEAPHlDXDZthpzZXcA8MVvTpo0yzJTpZP/nl4/4KAjK6urtaVWQ xvze+45jyNDY2argqd5MqoC6lAaQtQJbet68sS8aQ911n/0jvByo8rtko626w+ANkO3y HiDXV+u2SO1mXvtFSTb6cEG4op8Z2VQ31dFXn04fQB8i2gf4PPz4gA8zA4KsqA7fx64k TUnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=TdQclqV/GxQxmzjoq+seDxRYSbFQNh0oghMNSOC4DRc=; b=mEFi1JWB55AJk4O0R+m23Xum0rhEGSiX6lSOpa2U88ZbSSrtURQfTZf0Gd8+IKn1/l oCVsH7MrBDujoL44otJbvTS8S9OVkqiptkRd9/ZZZJwzp+K3r5WV6jPLvHImNXD3Obn6 fXzDjtsY1NZv5NGJKe05nJ3YJgdlIOnFUeNcMh7VpBT/911XL8EOlO0O23ev+8NxVTE6 eRKTUMzSbwpdWdTiozynLQ6SGlfmIq4MLSBgbgfsP+83U1810U3hjlUi9MQ+mpOBjn3E Pyp0yTMXB/4C2ggAMa7XVm9mz39IXr0axhOQi0Toydy1V3323dIhOWVCCywgnGqfndZv FW5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=pt9vpjbI; 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 t11-20020a170902d14b00b00174c5fdc8d2si12184488plt.307.2022.11.15.17.13.17; Tue, 15 Nov 2022 17:13:40 -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=pt9vpjbI; 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 S229766AbiKPAZ1 (ORCPT + 90 others); Tue, 15 Nov 2022 19:25:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbiKPAZY (ORCPT ); Tue, 15 Nov 2022 19:25:24 -0500 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53CC028E04; Tue, 15 Nov 2022 16:25:22 -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 4NBkMx2zQKz4xYV; Wed, 16 Nov 2022 11:25:17 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1668558317; bh=TdQclqV/GxQxmzjoq+seDxRYSbFQNh0oghMNSOC4DRc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pt9vpjbIZc/Qt7JzGdhuYK9vsoQ7zDkdQJR2fZ6m2BW1JGYO2jVs8bftpEERuhgsi nZeKj3DmSnNX12QR6IhvJVAjLv/0yJCbb1UpzunRJ+OcMBHnAzuwkfrutwb25fPSlz pBfuTXoOidWN4GPdtpsYzWYVSXb9flSr+D3VRsA8QTvqwMQZ+WQ6DHjXdLh17cbAxL znPicgM3hQiNdmHUlAUBce3EMDvBCXtAgQnhmfrc3M19d/rd46LRsBlEnGD3opevs+ GQ0gI1zN5h3+oC4Of4U+5YL+EdYdintDMPOOB8v2Ib/bmxjDkXUzFBKh0oHcrigtta mc2KeiDKMT9ag== Date: Wed, 16 Nov 2022 11:25:15 +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: Re: linux-next: manual merge of the drm-misc tree with the drm-misc-fixes tree Message-ID: <20221116112515.3f01531b@canb.auug.org.au> In-Reply-To: <20221116104752.4c64495a@canb.auug.org.au> References: <20221116104752.4c64495a@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/c7RRuG4mWy0.E5ybru8QUfJ"; 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_/c7RRuG4mWy0.E5ybru8QUfJ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Wed, 16 Nov 2022 10:47:52 +1100 Stephen Rothwell = wrote: >=20 > Today's linux-next merge of the drm-misc tree got a conflict in: >=20 > drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c >=20 > between commit: >=20 > eca13f3c67b6 ("drm/amdgpu: use the last IB as gang leader v2") >=20 > from the drm-misc-fixes tree and commit: >=20 > 1728baa7e4e6 ("drm/amdgpu: use scheduler dependencies for CS") >=20 > from the drm-misc tree. >=20 > 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 > --=20 > Cheers, > Stephen Rothwell >=20 > 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; > } Note that I had to keep the declaration of "leader" in amdgpu_cs_sync_rings= (). --=20 Cheers, Stephen Rothwell --Sig_/c7RRuG4mWy0.E5ybru8QUfJ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmN0LesACgkQAVBC80lX 0Gw0/Qf/RUcE8uXqZXS+I8FAM+PzcSOeembp4BtTZRPi66xV7YhCONtlqTTkLTB4 JAf1fShC67V3+95bUPJBrfzNaH3we2+AztN4H9N98nurIQ1Vau0WOOUW0Qr2mr5m AoaoLwLP5CwO7rEsTy1nOj72zjnaZCVnHg3vvX2+JMTGHDkD7hv16Bl8a4WUKxZY r0LSw1My//57cEPA/hPu9TzgymxtQotOJUz7oWQWKdnhfOpzA3zJWERd3bNGDsjM OyU1+AnmROKEQ7LD1l9gLkhecfrwVfmjbSowJi/cQHOyXqa98j++243LYWl9743h twIdwG8fW17DpXxGva20FN0FabG1Rg== =3ggI -----END PGP SIGNATURE----- --Sig_/c7RRuG4mWy0.E5ybru8QUfJ--