Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp173447rdb; Tue, 31 Oct 2023 04:32:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOvVw7ZkxxGBPaILLdQYt2wqJWbULt4luXYj5p7zrLkNBzsNKhEpB4jOPdgPDqFYBjfx9x X-Received: by 2002:a17:903:2303:b0:1cc:4fbe:9271 with SMTP id d3-20020a170903230300b001cc4fbe9271mr5177350plh.22.1698751936381; Tue, 31 Oct 2023 04:32:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698751936; cv=pass; d=google.com; s=arc-20160816; b=0XumO+zGoPpult7FE12DcU2tF9EsmbnLZr7Rf1QufemGKDgFb5W06Ey8P3ABQeekGb NBEoM5P8kcNM+ZXUaBSJBqYnLldaVJtPwQ0HclRAKblRbU8TlbiAFkAjhBhTGQkTrWEm Lz0TF8a4k2K7UTL+XhVM1uiIFEhEFKZvtBX5dLGyV+kBNr1pzj8ERosc0a3CGUwbVz9U Yy0GiJuVejPoDd9zqXQXtjvoJsHNMpXKAEsfS2AkXueTzDZd0RqMUMuLonMZnu7taKTY 0ddNvplsUrCdqZjmKroNmmekZ7KmSDief1TQ6tm4nxWXdBd/JwSmW4hYL4tk86W2CpPP Qpug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QvoxKC9rKfTJ+gX2v9OLDH64jTjXRvjskYK+ZaUEFIo=; fh=uW65fH9sGEKnxekwJS5xd6iNX3zjMaOe6mcdqX1PQB8=; b=fIoSFWlLHD90qZ++VYiSZmRnZzIsPyvZ4InNxUoeqQrEpgqHZFzx4HHMA0Pc+tbZu+ 6Yy/rFF6gRqsEoikBabtj6ZU/jwfB4HnlB9hKs8NUD4+v62vm2+TsChji8rsn1A4X1Iq ZyWyaGCSakeY1evrqlSEQwX9m4bMdS4RkuT46PNOPAQ/c9spY9YBeXaktp2QJaY7/qWM BjZ+Kr4xkfzetc18ZuSzog47T2K9yofn5BSO8zXUm3l6RRexzKcRQinCnYaN8N23G+QH E3P+TVy07W1geKLXLHG88FAVIvb0Y6UKi3Vvu3zL6FDQbsluAWvGU3Ui/Y5zFVQd0/5n fs/Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=WNEKVdVu; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z15-20020a170903018f00b001c9b5a96d15si911256plg.13.2023.10.31.04.32.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 04:32:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=WNEKVdVu; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 117E680BD539; Tue, 31 Oct 2023 04:32:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343751AbjJaLcC (ORCPT + 99 others); Tue, 31 Oct 2023 07:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235613AbjJaLcA (ORCPT ); Tue, 31 Oct 2023 07:32:00 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1373DA6; Tue, 31 Oct 2023 04:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Cz0AszdpkpMucjMcpNpYnWtyJXOqnAagDsX8Vbgc60uzMBIh3q6N2swFm+jAnJtFUM3Vsk7eW57rNMN5yg5Q8532KwIwB3e+XQ/zO0J9yBmVAlFrtMBIVH+BTVVBahbjqg0L8HoD63Gxa78yhGpWbp+RayJg5UIWIZKDBqahU5TUgOmFiHQiiZPHULU9ZGib8v0AYKVbCh7NLPCPUL0vpP8mmmRH6o/DUO6bNOt2mawupM+pe/iYJrwcpEFQ+UgdcYMWKCYSu2cNYsTig/5rwsTu91fRKETS41J/2fNalZoLw8nRzjqEBJdFt3VK4FaVwqvcvgtBtkXk08/hDa4PSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QvoxKC9rKfTJ+gX2v9OLDH64jTjXRvjskYK+ZaUEFIo=; b=k7Ul+MP1+UFfIihTDBBwX32x3IaZJ5Fv+sXSovdcoGZ3oIbP6B8r/5UyvyV7Damv27BB5uzGQiIz6Srgo0TUijwelnP1YErorke3Wx9XD4SquZoFgt6uuv5b6AaRYsIKyRqf+LY6J8/uUoYtlipYt2uqh3qeBCgTva7pXaS9jjFiOSz7og46Cd9SJAcoQx/ydHdyCUu1HfjrLeMRzKUwzM6HJJEO+aw4WnKdBsRka2vs7W3c7IGFdJahc4cnQsXyi+zB4V4/E6qbs0CI5bKevpCWvRJTFydAcIIce9tgYcXuFlzgHiYtyqPQ7355yBW+Qx1hGSlEAMOK3BGCXUi8Rg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QvoxKC9rKfTJ+gX2v9OLDH64jTjXRvjskYK+ZaUEFIo=; b=WNEKVdVunUOIPqkEejkgRMUFRd0qYaj75Uieum3ZdS3QlaFjT5O4auK/zW2Xw81D8dadjp8lxuDIXD6O1oNfOc4WoCD8qogdZlZZ3y5ymIEkeHrhgIloYH3UAknT/fD1Lxtjn4gvfEgt42QAcpr+nC2eVJ1YHr0jSNkiZI8uZVoKufDfUdGiFHF1JUZGXdILZQzrtB50ThXT/sHNAH1qTYnwlMm6RTPcuqPwRDxTY6AL7mgVgUTBLcSZ/kibMDLHAZQZENNb5juJbHu6GW92WOg+DLFxE6kOrt3uWS+NsT/uFw0DMV5/7gjnAvZFk4LbWFPZJBAnx4d5NZaPwjR2Ug== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) by IA1PR12MB6628.namprd12.prod.outlook.com (2603:10b6:208:3a0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.28; Tue, 31 Oct 2023 11:31:55 +0000 Received: from LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::b53a:1092:9be2:cfb9]) by LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::b53a:1092:9be2:cfb9%4]) with mapi id 15.20.6933.027; Tue, 31 Oct 2023 11:31:55 +0000 Date: Tue, 31 Oct 2023 08:31:54 -0300 From: Jason Gunthorpe To: Stephen Rothwell Cc: Joerg Roedel , Joao Martins , Joerg Roedel , Linux Kernel Mailing List , Linux Next Mailing List , Nicolin Chen , Yi Liu Subject: Re: linux-next: manual merge of the iommufd tree with the iommu tree Message-ID: <20231031113154.GX3952@nvidia.com> References: <20231027155522.6b2863a4@canb.auug.org.au> <20231027171522.692a58ec@canb.auug.org.au> <20231030182621.GV3952@nvidia.com> <20231031161214.25560598@canb.auug.org.au> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231031161214.25560598@canb.auug.org.au> X-ClientProxiedBy: MN2PR03CA0007.namprd03.prod.outlook.com (2603:10b6:208:23a::12) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|IA1PR12MB6628:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a4592b7-48f2-466b-a3f8-08dbda04fc38 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UbTnQ0Tpb97uflITebsRx6+t2XHEpJTx+5RzWRCtnz0UQt7/CvvKxpn/W4LXEleenVjDBvZl6TN63zbCuoFpDIIQCrArgWMHZyIopi30wBVgjIDSG0DYSwp5hg4ka3HSz+A1/AxqGdtrbYYUiwDyHzAQibw4vBbhcTWUh1MbiWkyeMBLKDLdnqP0pIRekTw1n7IEINZgyETdsrkMyUYBIbnyFz/FuYSWw3hp113N8Y4hSgB2z2ZILH5LeYBVF09pUwxrNKf9pBGwZMGZnBJS76+GXEZhPZ4chvNFMKq1V75JcblGyc8vqutNSpYbX/4x3NDXGzgdIp3ycObUFp6V85tXahvT3NYRzTWZeMT441tAuz+VZQSYrTMAvq7ad4TLzshk3Qhel3vR8W12vXpMhBYIpIe9ASJvbAxRMJSdGL7i+CcUH0i6QDwUY2ATlfjJmJvt5vDxM/NWWQLL3q9FvBhhBVBjTezi5CwdNELwisgdoSGck55G/WWE3Bfo8h+L7Z3xFt3Zda/yafhfwUrzmA4wOUuYzbovk0Gn9rWlt5tD5LfSHTs0J8gWlUtwyR4J X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV2PR12MB5869.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(39860400002)(396003)(376002)(136003)(346002)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(6506007)(6512007)(6486002)(478600001)(83380400001)(26005)(1076003)(2616005)(2906002)(5660300002)(66946007)(66556008)(41300700001)(54906003)(66476007)(8936002)(8676002)(4326008)(316002)(86362001)(36756003)(33656002)(38100700002)(6916009);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?HbNbJemcS8DhGZ0cXScwkGJEp7wx9l7Olbm3P4XNUKz5RDzwD99xyvPdgOoG?= =?us-ascii?Q?Eo5io+WydlsX0YxKmDR3ZzS9XEyYx86EHpkpNsCyROmd3cpp/QH+4W3I0gjp?= =?us-ascii?Q?unqq7y6be8Ybkr2FoPbuDl7edZO1iAiw+QVVKzlXY29RkppiXWhhfWBpHwtw?= =?us-ascii?Q?Oakeq3n7YhY3HvHodF/10YCrwosd/k7eyxiFrtCExNLK/YGlXcLPJtJmqW/7?= =?us-ascii?Q?hpkCcmWrLsfvUDJVACf+60e/I4kRw+304jvF9IvX220sc3pbg/ej9kK4WS+H?= =?us-ascii?Q?QCpF56s49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Zc00URIzGnclqI7u4d9J2m2Zm?= =?us-ascii?Q?uAM4+UoehvEuDF70dLRBJj9F6QZHU8gWUOantIAmzqWjDZhKZYaB14M1mRe3?= =?us-ascii?Q?twDrnGHwj2lm3kdCdSZx+Q611zz3jPsP9JadDUqRkFyHBJqs9rCs4D58Zcd0?= =?us-ascii?Q?2cmMmbCs3aIJQwJILVgeVaymHyOsrXq+o0+wneAZKinR19m1wezaEOnRZGXu?= =?us-ascii?Q?cKiKios+W+MR/5ahd3Ds2cKk2H+V2sAYGsenGu023wWzMMDiMMwtt6QL2z/B?= =?us-ascii?Q?y8tS5ZrZWdkAyXhhniFzOUZEc5IP3pAl5CXOPjdmEXyp/UB5x4HV/Jhnf/FL?= =?us-ascii?Q?mCgZMawVgHpv7ofKgL7kWks0QB8+eltfNvZy1ZQYRcbX8w7XB5Q8v0eiBA51?= =?us-ascii?Q?QlH9qnNRAMaXf13Plyc=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a4592b7-48f2-466b-a3f8-08dbda04fc38 X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2023 11:31:55.0416 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XjtadhLhSaUttrBLpNPQW8f2+Mj8Zpx9IiJahdqtAjOidz1/fo4ssnzGs6e4F8pR X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6628 X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 31 Oct 2023 04:32:14 -0700 (PDT) On Tue, Oct 31, 2023 at 04:12:14PM +1100, Stephen Rothwell wrote: > Hi all, > > On Mon, 30 Oct 2023 15:26:21 -0300 Jason Gunthorpe wrote: > > > > On Fri, Oct 27, 2023 at 05:15:22PM +1100, Stephen Rothwell wrote: > > > > > > On Fri, 27 Oct 2023 15:55:22 +1100 Stephen Rothwell wrote: > > > > > > > > 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_CLEAR flag") > > > > 65fe32f7a447 ("iommufd/selftest: Add nested domain allocation for mock domain") > > > > > > > > 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. > > > > > > The resolution should have been as below (I think). > > > > This was too horrible, I pushed a patch to reorganize the new iommufd side > > code to more closely match how the domain_alloc_paging stuff is > > supposed to work > > I have used the conflict resolution below now. Yep! Thanks, Jason