Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp913788rdh; Thu, 26 Oct 2023 21:55:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMf4ZrbQJeWU70LUWteWO3q4SKxiVUpSmZTClpUi8msB9Pb9GoWzwCsTkmItTUM7T9pxtr X-Received: by 2002:a05:620a:4249:b0:778:8cef:a573 with SMTP id w9-20020a05620a424900b007788cefa573mr1562937qko.2.1698382553878; Thu, 26 Oct 2023 21:55:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698382553; cv=none; d=google.com; s=arc-20160816; b=vBTx/kkPZPzSaiyzBxdUiIsmcv0v4q6KxavjMzGeYeD05ymCmdZah8w4ec1mq+IgNc wcKBVL9kq8X33ZSrOi4rbA1yThwQttJ/PDKG2cqqjkzCRW8PiNtpvv7ss1taS9HSlB0Z LosU4ucYaY5KeNP08t/03blbi2X4i1EF1mIa3OoyLM8C1eIzLCAQIaoj9cqi47tKsN3H UiuquwHbio/2pehqFkPsTuMFrB055pGyTzVzzKhKEJkXE65HMa5xSkW1tvCz9BTmUkmL it1vMdW1n2fghkY/hAN1XPpZiKdN+tdBz62C/xisjsk2n8RP3RdDajWsB8bTzm6OarlS bQEA== 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=pn/MK2PwSd3NO/fy5gAheuSGiNydeLRHOjVKL3rZO80=; fh=zBCc/qqWAUryCnSof31iC/NE3oM9BcsYgXg/ZHh1pEc=; b=iXwMd/PeGjmX66MNKkrKfVfQ8rst1qISx2PYf2/PRx6VZdwTXhGyIKttjNyuu5/k4p Rj9Rp4OuwaNWLpO8QpnC2XHNjv9JOAg60sfpxDHk1ZXBpGELkg3D+Lva4UMi0TO2RONm +FyyRxbfCP7Dhtaf2Fipe1diYg4SMxYWOK5Kh2ZhXtSa5vhHbWRENygC/ijHnC2OOrKu cE5tnh/M2UxYeIq4N97RJwd5k74uCWB/6B5a8sux2Mc3TcBT9O926qGlH5jnWFI2f1F6 2ZMRNUKkZhUZQFEdeAKZKQXFwhT0JTi92C/GZmKk+z9QtFpZedBEpdhEqd0/G0Ylo8v5 6e+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=NNRNq9VH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h13-20020a81b40d000000b0059f7c69d4d7si1274721ywi.371.2023.10.26.21.55.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 21:55:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=NNRNq9VH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id CA2C18266513; Thu, 26 Oct 2023 21:55:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229501AbjJ0Ezd (ORCPT + 99 others); Fri, 27 Oct 2023 00:55:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232306AbjJ0Eza (ORCPT ); Fri, 27 Oct 2023 00:55:30 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 606081A7; Thu, 26 Oct 2023 21:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1698382525; bh=pn/MK2PwSd3NO/fy5gAheuSGiNydeLRHOjVKL3rZO80=; h=Date:From:To:Cc:Subject:From; b=NNRNq9VHCi50Uxd6ixpXE2LmG03uRZB/+Jp9sF6I02bJByTdcDGHdn1G8lvl6MQu4 uGA2jj/q9GdWDSJDfK5rUAw0MVlvJnXu6oJcYIR89HbruuU8Klou+wZI5qxSRnpR6w IE3SBgqsa8qJ4cCJf+JbMUqRrCumKHasOg+HerI7NB83Xji5Mp6gG20GdnNWHzYxGv 0d9Wgtbw2xXMxfrdFW79wZYYfW5nrEnzt2PF3lLZk4O+D8bpa316fEk4UhX4MMbwPU oAdz7qjfjqO2r+j1GwWphcodvpZbSnT8m24gwLmi2RlAQzybFB1MWhdx+FRCArePqa 66Wy2zOPoPWzg== 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SGr2M4MzDz4wd1; Fri, 27 Oct 2023 15:55:23 +1100 (AEDT) Date: Fri, 27 Oct 2023 15:55:22 +1100 From: Stephen Rothwell To: Jason Gunthorpe , Joerg Roedel Cc: Jason Gunthorpe , Joao Martins , Joerg Roedel , Linux Kernel Mailing List , Linux Next Mailing List , Nicolin Chen , Yi Liu Subject: linux-next: manual merge of the iommufd tree with the iommu tree Message-ID: <20231027155522.6b2863a4@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/bmNe/dKWE5QI_gaZUeETryt"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 26 Oct 2023 21:55:51 -0700 (PDT) --Sig_/bmNe/dKWE5QI_gaZUeETryt 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/selftest.c between commits: 1c68cbc64fe6 ("iommu: Add IOMMU_DOMAIN_PLATFORM") 13fbceb1b8e9 ("iommufd: Convert to alloc_domain_paging()") from the iommu tree and commits: 408663619fcf ("iommufd/selftest: Add domain_alloc_user() support in iommu= mock") 266ce58989ba ("iommufd/selftest: Test IOMMU_HWPT_ALLOC_DIRTY_TRACKING") 7adf267d66d1 ("iommufd/selftest: Test IOMMU_HWPT_SET_DIRTY_TRACKING") a9af47e382a4 ("iommufd/selftest: Test IOMMU_HWPT_GET_DIRTY_BITMAP") 0795b305da89 ("iommufd/selftest: Test IOMMU_HWPT_GET_DIRTY_BITMAP_NO_CLEA= R flag") 65fe32f7a447 ("iommufd/selftest: Add nested domain allocation for mock do= main") from the iommufd 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/iommu/iommufd/selftest.c index ee6079847091,6684ab4cdc7a..000000000000 --- a/drivers/iommu/iommufd/selftest.c +++ b/drivers/iommu/iommufd/selftest.c @@@ -272,9 -435,28 +430,20 @@@ static phys_addr_t mock_domain_iova_to_ =20 static bool mock_domain_capable(struct device *dev, enum iommu_cap cap) { - return cap =3D=3D IOMMU_CAP_CACHE_COHERENCY; + struct mock_dev *mdev =3D container_of(dev, struct mock_dev, dev); +=20 + switch (cap) { + case IOMMU_CAP_CACHE_COHERENCY: + return true; + case IOMMU_CAP_DIRTY_TRACKING: + return !(mdev->flags & MOCK_FLAGS_DEVICE_NO_DIRTY); + default: + break; + } +=20 + return false; } =20 -static void mock_domain_set_plaform_dma_ops(struct device *dev) -{ - /* - * mock doesn't setup default domains because we can't hook into the - * normal probe path - */ -} - static struct iommu_device mock_iommu_device =3D { }; =20 @@@ -293,8 -469,10 +462,9 @@@ static const struct iommu_ops mock_ops=20 .owner =3D THIS_MODULE, .pgsize_bitmap =3D MOCK_IO_PAGE_SIZE, .hw_info =3D mock_domain_hw_info, - .domain_alloc =3D mock_domain_alloc, + .domain_alloc_paging =3D mock_domain_alloc_paging, + .domain_alloc_user =3D mock_domain_alloc_user, .capable =3D mock_domain_capable, - .set_platform_dma_ops =3D mock_domain_set_plaform_dma_ops, .device_group =3D generic_device_group, .probe_device =3D mock_probe_device, .default_domain_ops =3D --Sig_/bmNe/dKWE5QI_gaZUeETryt Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmU7QroACgkQAVBC80lX 0GxGOwf9HDp0uSETtsl+pIsSYroDiWAMzI2zLn/AINQgJL8FkdeLQLdAzKr5KoL+ e5SRXhXHhGUrS6K3FSA9MkjOElYIsZmljZxXqfhXAReMy4Tw0r5x2NYApPK+zHrr h54ny8Lzkn9tTTl6Xdu8rqWxuPmIybuerq9Oi3/j9i1kIWpFHY1/IV/IR63suWhc SoU+jf7Hwu5ypr6OQDEqHzQ6yDhQSK2LxUtHz/CkM7xFBGbH2e1jS9OhGRJ0Wsmi mAtX80/BGolXw7H9MBA0KIUb7BVAp2AlzjXhFGyTFJ9kEFysJXI9YblfD7/70x2y T7qigIL88gApYW3jCqCcS7EI8eHKwg== =76VA -----END PGP SIGNATURE----- --Sig_/bmNe/dKWE5QI_gaZUeETryt--