Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9B53C4727C for ; Tue, 22 Sep 2020 03:34:32 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5027C23A32 for ; Tue, 22 Sep 2020 03:34:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.b="fMTLWIDc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5027C23A32 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 746E489DB8; Tue, 22 Sep 2020 03:34:30 +0000 (UTC) Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) by gabe.freedesktop.org (Postfix) with ESMTPS id B17E089DB8; Tue, 22 Sep 2020 03:34:28 +0000 (UTC) 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 4BwRkS1XHyz9sTQ; Tue, 22 Sep 2020 13:34:22 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1600745665; bh=kE/eQIIvejiVNgVuiLPMxkDduOmD4b/H7xjzjTsXLIU=; h=Date:From:To:Cc:Subject:From; b=fMTLWIDcxx7IKUxHM2cILY1eClHKUPacmZhfXtNbmMVddOoHRVln+kL/tDlP4QxVo 9k7q1kgV7N/THWNCKryveGIxZHwjdxq9kIQhaTsCwWvtLie4IKhmIwyOxFAiLbpr3J AcuwsDoPvJuVCf364cSQfowGZ/+evVONvJ3+pnTXGHSCFzU4cvw3HVVHiazRt/mtqC 43VwDxQlC1XtVOTlWPm+bfGHGpFO8d1vN2JFgzHOYJG/3rtmJIa5BjkqBx6qFIp2wr z+bGdgb6QIofKdk3J0yv3eaNXAllgtFIIie7CA08o/tqwCAU0eY2zwRTjiP7fZRMyi x0fQZXi2/lZ9w== Date: Tue, 22 Sep 2020 13:34:20 +1000 From: Stephen Rothwell To: Daniel Vetter , Intel Graphics , DRI , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi Message-ID: <20200922133420.149dcbd0@canb.auug.org.au> MIME-Version: 1.0 Subject: [Intel-gfx] linux-next: manual merge of the drm-misc tree with the drm-intel tree X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linux Next Mailing List , Linux Kernel Mailing List , Chris Wilson Content-Type: multipart/mixed; boundary="===============2103764183==" Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" --===============2103764183== Content-Type: multipart/signed; boundary="Sig_/9mjQf=4/FmIV+m0uvcJus0L"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/9mjQf=4/FmIV+m0uvcJus0L 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/i915/selftests/mock_gem_device.c between commit: 9f9f4101fc98 ("drm/i915/selftests: Push the fake iommu device from the st= ack to data") from the drm-intel tree and commit: cd01269d11a3 ("drm/i915/selftests: align more to real device lifetimes") 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/i915/selftests/mock_gem_device.c index 397c313a8b69,c207d2239791..000000000000 --- a/drivers/gpu/drm/i915/selftests/mock_gem_device.c +++ b/drivers/gpu/drm/i915/selftests/mock_gem_device.c @@@ -118,12 -116,11 +116,11 @@@ static struct dev_pm_domain pm_domain=20 =20 struct drm_i915_private *mock_gem_device(void) { - struct drm_i915_private *i915; - struct pci_dev *pdev; #if IS_ENABLED(CONFIG_IOMMU_API) && defined(CONFIG_INTEL_IOMMU) - struct dev_iommu iommu; + static struct dev_iommu fake_iommu =3D { .priv =3D (void *)-1 }; #endif + struct drm_i915_private *i915; + struct pci_dev *pdev; - int err; =20 pdev =3D kzalloc(sizeof(*pdev), GFP_KERNEL); if (!pdev) @@@ -141,11 -132,28 +132,26 @@@ dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); =20 #if IS_ENABLED(CONFIG_IOMMU_API) && defined(CONFIG_INTEL_IOMMU) - /* HACK HACK HACK to disable iommu for the fake device; force identity m= apping */ - memset(&iommu, 0, sizeof(iommu)); - iommu.priv =3D (void *)-1; - pdev->dev.iommu =3D &iommu; + /* HACK to disable iommu for the fake device; force identity mapping */ + pdev->dev.iommu =3D &fake_iommu; #endif + if (!devres_open_group(&pdev->dev, NULL, GFP_KERNEL)) { + put_device(&pdev->dev); + return NULL; + } +=20 + i915 =3D devm_drm_dev_alloc(&pdev->dev, &mock_driver, + struct drm_i915_private, drm); + if (IS_ERR(i915)) { + pr_err("Failed to allocate mock GEM device: err=3D%ld\n", PTR_ERR(i915)= ); + devres_release_group(&pdev->dev, NULL); + put_device(&pdev->dev); +=20 + return NULL; + } =20 pci_set_drvdata(pdev, i915); + i915->drm.pdev =3D pdev; =20 dev_pm_domain_set(&pdev->dev, &pm_domain); pm_runtime_enable(&pdev->dev); --Sig_/9mjQf=4/FmIV+m0uvcJus0L Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl9pcLwACgkQAVBC80lX 0Gwq9Af/S1WDHFw/FtKLGg+c18sLxAFdxecg+cuEhRg2XgfecUztRz3r7J8/JX9Z UCwQqiv0kGB5+IKpKEve9TZWH78r9Sao9DXj9TbcHgz/FU110+rkuCutKiA/gpYt ChH0KdeICx0y1WkGV3lvlhTdqJ4Gr/8+Pvr62OzY0R2VK+u7ocxuuCE/lOjfvGJE EoAdC2roIaNse1zWGCQgf3QRx9LpmKJS8XhQfWOVkXgy0qyDuBbzcSyYABF4YTFw +SjQaV860zXvDMs0JqnrMo6QECF7Y29SZrsFbCc9aTP1EG/s/PR3ttfwKWtjuLv0 +2i2G6t5x1neRS5HnXFRXhE7Eyl2yQ== =4Ip8 -----END PGP SIGNATURE----- --Sig_/9mjQf=4/FmIV+m0uvcJus0L-- --===============2103764183== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============2103764183==--