Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp765990rwb; Thu, 27 Jul 2023 22:32:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlGd0J/GrNt9aP13B1iHeyACdglSM80dhtQYAJt3xHBYZeTz9r7ZxC3ZiSiiAHwH6oRE88zi X-Received: by 2002:a05:6808:114e:b0:3a4:1e4e:c8b8 with SMTP id u14-20020a056808114e00b003a41e4ec8b8mr2476570oiu.14.1690522336557; Thu, 27 Jul 2023 22:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690522336; cv=none; d=google.com; s=arc-20160816; b=JWyPIyV0jJU6QbgxIFldNpC7O6gvgMw9qSyq10MODyEGk6iRkVx9l9HC7mLTcHQ56W h3/WYZzpq5EA0jDkTIMY9k4A0KMUus7uqvF/WtvCZGa5R8KCcja46HWxDVlaMsQg1cZf 2NTRcFKxjkB40eSB5iNI6wY73e5B/y4cL6aSK96yc37mTWkL5qaelU5IaYBNSUSrNI0+ CWJTUleDX8aSjyjLV1UXzC+eju/QEaZNlJ1rulIJAQKMAtuvknaJ3RUgqI2XjDCn9u4R jutC0jqdMRR8LKBlJ+GAw87fkapAMJ7lKyuq/CM9pxYszU8mraZEhnOFpEzGS7lSPsWH YHbw== 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=anotzehS965Qfz/VuQ8/6Xu5j+6SUU0tQfkZVUCA1H0=; fh=bNbne3f+gDFmiyvWk8Q8oWaFEuR3s9BMuk6ra1mnAb4=; b=WcinQ8e7eoiPyovRu4oK36HSPUayO3NIdTBFCq1+zpnjNZHLqkhyzFk1t2YscIsH86 nl1Nl9NCaAy7scWYWa29oDmpg7m1KlOJUP1c4HprpvMb0Fx96rMmFRQa+Y+4QXYM/QQE 2FF0JXp4naOtggc/uX1KTK2jlk0JjzUyl8vGLwwDEtuFzJWC18P/MgbxbEKpeiO6Fpn/ yUg3fem3+7li162UOLx00sVdCgfPRig5BWHl+U8PFHxrukGo0BL0G9Rd89jhCVO484BQ LL99qDvtqkY+GnArrmj4GyyH40F9o/1Afrxd8Sqa/BgXj07UOT+GcbWJR2utVV61yzSL kgiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=Kf4ZHBvB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w14-20020a17090a4f4e00b00267ff53e3bfsi2454305pjl.177.2023.07.27.22.32.04; Thu, 27 Jul 2023 22:32:16 -0700 (PDT) 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=Kf4ZHBvB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231778AbjG1D4o (ORCPT + 99 others); Thu, 27 Jul 2023 23:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbjG1D4n (ORCPT ); Thu, 27 Jul 2023 23:56:43 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 841A52D51; Thu, 27 Jul 2023 20:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1690516600; bh=anotzehS965Qfz/VuQ8/6Xu5j+6SUU0tQfkZVUCA1H0=; h=Date:From:To:Cc:Subject:From; b=Kf4ZHBvB2hSogh+y1z9vz4FWxwZymogZ0X7caGubmIQ7yzHse2yHKJrMSceT1j0+D 1IqaunE0azTPutE2kVuM+U56Kv8iVPBAzr72qBdgUC6SxYMdmPLMfqy+oPfLtdlxp4 elp8ZSIBpI4E8SU2z0oCwD7ysep/50slWUY2Ivz4rYVgH24e1l+mEFyFSVJn/9NAdK aWKtbA5OS0wdfTmMUM4Fr5b1sLEsTh0WkZqCVjzmD1YexsSM0jFhJ2tbfrCjtZwaOZ 5H003ZuhLzkNpkjyDEndQqXVS92zvplGSN1lt5wc3S0bIyp2Q8cl0ZoULvDzpYFtKi UDoEo6dMTRjTw== 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 (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4RBv2b6kvCz4wbv; Fri, 28 Jul 2023 13:56:39 +1000 (AEST) Date: Fri, 28 Jul 2023 13:56:38 +1000 From: Stephen Rothwell To: Jason Gunthorpe Cc: Jason Gunthorpe , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: manual merge of the iommufd tree with the iommufd-fixes tree Message-ID: <20230728135638.2ac25a2b@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/wCmSbf.q8uEVjUf2p9oTgGO"; 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,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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_/wCmSbf.q8uEVjUf2p9oTgGO Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the iommufd tree got a conflict in: drivers/iommu/iommufd/device.c between commit: 99f98a7c0d69 ("iommufd: IOMMUFD_DESTROY should not increase the refcount") from the iommufd-fixes tree and commits: 91a2e17e243f ("iommufd: Replace the hwpt->devices list with iommufd_group= ") d03f1336fd91 ("iommufd: Move putting a hwpt to a helper function") from the iommufd tree. I fixed it up (I used the latter version of this file and added the following merge fix 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: Fri, 28 Jul 2023 13:52:56 +1000 Subject: [PATCH] fix for "iommufd: Move putting a hwpt to a helper function" interacting with "iommufd: IOMMUFD_DESTROY should not increase the refcount" Signed-off-by: Stephen Rothwell --- drivers/iommu/iommufd/iommufd_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/iommufd/iommufd_private.h b/drivers/iommu/iommuf= d/iommufd_private.h index 5cba9107f873..cc3d534b0caf 100644 --- a/drivers/iommu/iommufd/iommufd_private.h +++ b/drivers/iommu/iommufd/iommufd_private.h @@ -280,7 +280,7 @@ static inline void iommufd_hw_pagetable_put(struct iomm= ufd_ctx *ictx, { lockdep_assert_not_held(&hwpt->ioas->mutex); if (hwpt->auto_domain) - iommufd_object_destroy_user(ictx, &hwpt->obj); + iommufd_object_deref_user(ictx, &hwpt->obj); else refcount_dec(&hwpt->obj.users); } --=20 2.40.1 --=20 Cheers, Stephen Rothwell --Sig_/wCmSbf.q8uEVjUf2p9oTgGO Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmTDPHYACgkQAVBC80lX 0Gy93wgAlJSA40kArB7lDC3p9+R+98gWNm1UGBL+gcK8V837qRfASKjialyoS1hW HuciInTeSS3pmLxkX2CvaPrjSLIw2l+NemEKKVb4b3ZJV0P5g4qHwz2rjXKtEaau lf/zpWWS7+2iMTWawAEeSck3pnZ3PeB+mLdtZ/80fLASaWyupzhmoFX8+ao1TgLX 4I87DjXqvWjmPhvv9MmNo2Ce1qOz4EyEyHGUEKWttyVrcXQXI8pT45YKzazNI0h1 bhbb/Lk9KZxAqWo1hjoxP6saDP0uS8z8UQodO2p4grybzOIzrSorVsfobNskLIVH 4ePi9PI7tr7LP/uKZOzYp1y5deNr/Q== =gjXK -----END PGP SIGNATURE----- --Sig_/wCmSbf.q8uEVjUf2p9oTgGO--