Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp435537iob; Thu, 28 Apr 2022 05:52:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2hEqx2SaO/98q6cdc/NzB3bD8HBIgGHjIyrkXJSgB+RFWp7K2CVuO+gpG05BNAKsLfRa2 X-Received: by 2002:a62:fb0f:0:b0:4f2:6d3f:5ffb with SMTP id x15-20020a62fb0f000000b004f26d3f5ffbmr34462873pfm.55.1651150332272; Thu, 28 Apr 2022 05:52:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1651150332; cv=pass; d=google.com; s=arc-20160816; b=lwyf2SgSC/9YDwbm4f3CLL/lRyf1MQe4BTfEs0VSt/IT5HmBjUUcLzCndnwdaxWrBf 0Celcd1ChgJ71LxhdGgT1r5oTbPr59jlNreKlhxiXWQ8UbxV/5fbJ3VcTWa1ltFqAfGI JHU5e34qZu/0FKb/BUk8P4sk1CCr6MErZF7mNG0dhhpABthI1bVMDInDVJ7tDZh9/oGB uODE9zA3Y2QsrngzLOvAhZ0YMTe8EZMtvRUD2rMlr1fyn+NteFDD0vixDAUhzI2Qif4F P2gWpLuf0jEdyi0HLcgRZ72cL+mmUEmCLxe9ADRTiO3WxXfwhpSWbpAodmqvblk72Pl2 2pww== 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=Mbr6e9pUtGzdHpL0FAj8pqrRWrJRnKQ0poHDoazb+mI=; b=qx4l1KrtzOL7b2gS1z1QaQMIutUk2iqQyykxXgbwHTjX9nOawac+hz5M6eHaNUL7U4 sHyNyL/tUJDo50i1gRqps3iB3MSErFJnIDsjMbWmgncJwmtKQb4Tt68SP/Raa0K4hL1W PIUWlVwRNZZgCJkl29QxJGm6dPlZlosGRjZefP1dg+AXdgP8u3ZH5BES1NjOEy4SygB5 Lc68GnOtVHHexi7/9VeHehpeyEPrcCKIEE87Tsirosl5DYntBDPDB2teJ7ZxoeAbz/Ni lvdfdHbI60kkJ4RP6rkRcjDHfBrqYn5WkaaoMaRqPVvAU658n1dAR9Zut5Qa/C5K6/rB 7wxw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=t2CIuH8l; 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::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j25-20020aa78d19000000b004fa3a8e0053si3741186pfe.266.2022.04.28.05.51.57; Thu, 28 Apr 2022 05:52:12 -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=@Nvidia.com header.s=selector2 header.b=t2CIuH8l; 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::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245528AbiD1L5d (ORCPT + 99 others); Thu, 28 Apr 2022 07:57:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235128AbiD1L5b (ORCPT ); Thu, 28 Apr 2022 07:57:31 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08on2071.outbound.protection.outlook.com [40.107.100.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CE3E84ED3 for ; Thu, 28 Apr 2022 04:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gGLZr94wt7eXy2/mMOVGUjXfkxjv5YCcBa0nvcrDK3OVfO6TuXuwhbtGGFZMFauYO+5u1Jw673U+Q2tSy0r6EsahFDyOh00hw8xgx+kwEnTmZlyAWfYZcrs14tHvIokIjSdmw0uwNFMeMPALK3PjH7jS147tY32o/fkiLZSyYbyqNrk6ElGjtIi28Oa5fVgU4sa9GQrf8iXPKR+YMmE7+hcmLyP2CaTi/F1BiKhiwY524aLBCq8BncCh5nCYvyzYOvydZR4ku0DhXCLgzkwXF/mRuNYZ1zDBAN9Yg/Pzd7kKSMxyeirNDp8MjGLk0WFRE/95BhlpuZEa1mx6AnnsfA== 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=Mbr6e9pUtGzdHpL0FAj8pqrRWrJRnKQ0poHDoazb+mI=; b=MEyh2edDkqCqG7ElMK0y8ILFW/IJXPyraaww/FVlKuN52EIb/0Eei6YT7pxIGjCC9g/sG5B3M4hHkVdIFRFUO8HjoxBZZKbT5kGGfbitQ6i8s5khA57jc4lP9kSDnw375gUwTSP5xNPZmuwhqeCA1nF12fJVxxYGCw0tOCekvdUrOxcrRypEbwQt2w+Zxpf+ZlqDQjVvreM17QnA7GjClHB0bEXuVZ6Ant6xstOHex1TrUqYjn4jqv9w7c0ASSC3UsI1fCnK6m0Ec2ud9LkCtPp/7Iw2wmRZU+7iFAqLAeNNo8sSEyF7B+2ucKpeVsz1QJH1Az5JoTkWXhy3ELC2BQ== 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=Mbr6e9pUtGzdHpL0FAj8pqrRWrJRnKQ0poHDoazb+mI=; b=t2CIuH8l2tI19PmS5dY2zYOQxHr1ijf1G9N1ju3+AxEJYhRZCPCd+VAyj2A7mVVIXXMLlZCaJnivYOZ5py7sRI5z2v6yCRVEEA1QFxj3yg4inh/PhS2C4z6Yrt97uPizn2xW7Bf36iEQpZvfn0OJTHkvO/f3Yi34pHvJ5wkQy6S1T7KRKhzUpWA82aNekmpd8njz4zs9bm4qskhSavkgX92By52u2urFsifFCz6wYWcNUVblv34XNQIrU8BMRDHPoN2iKXnCCX+oSMyoW9GKBhwCSQuS/7DrMuABhVyOjG0DX6h8mOaShTMzs7w4tgu2RAoJ5EJaHY1kjDY1pKHiLw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB4192.namprd12.prod.outlook.com (2603:10b6:208:1d5::15) by SN6PR12MB5694.namprd12.prod.outlook.com (2603:10b6:805:e3::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Thu, 28 Apr 2022 11:54:12 +0000 Received: from MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::ec2d:9167:1b47:2db2]) by MN2PR12MB4192.namprd12.prod.outlook.com ([fe80::ec2d:9167:1b47:2db2%6]) with mapi id 15.20.5186.023; Thu, 28 Apr 2022 11:54:12 +0000 Date: Thu, 28 Apr 2022 08:54:11 -0300 From: Jason Gunthorpe To: Joerg Roedel Cc: Lu Baolu , Kevin Tian , Liu Yi L , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH v8 00/11] Fix BUG_ON in vfio_iommu_group_notifier() Message-ID: <20220428115411.GA8364@nvidia.com> References: <20220418005000.897664-1-baolu.lu@linux.intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: BL1PR13CA0258.namprd13.prod.outlook.com (2603:10b6:208:2ba::23) To MN2PR12MB4192.namprd12.prod.outlook.com (2603:10b6:208:1d5::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c8f01d6e-ba10-4ea3-21bb-08da290dcf9e X-MS-TrafficTypeDiagnostic: SN6PR12MB5694:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CB0kYq8iqHUEluxvGkfWJ6nkg05qAUUwxb1B2vqqM8hQdARgSJW2eE0rBfy6uCZ1p9m1FRbZZFag+L6SNdcBIzVtNffHlQzhYADBsXlNz0YMwBgrBGqUDI8jHCThvNsIw7PoCzozyoRsqanN+JeuJBFdJruzfeOqegmBMjqXRUhihTdjq5Iv8vGRAziEfxdOgz4EwiRkO2uNYJ7eteXGyw/MHZhUX/yKpouYTogQWnIyrArYYpV8g1AtCLvYDVwZdV7H06JgEUSTWkJsPb3HiUxKhXo1joUUyKqLtMysceaP2JKTE47Gw5Ya11MF0HkQZTIqR46Tw4eYwPiSuxbKfZDBK+w9Z2VozePqUwSON7lsxWltNxx7NDa5abJomkcyHvWKiQX3HxI5QJKR2h/KAhJ4jsghyNJuMUQsE9S125tE6xJ3HsJtL3kRl5LjIIYof709nyx3Cc/t20Tnqx1AyVFt8gIKabc/0qGySW7gTPTA/5oU8AmG2hyzT/GHQs+2vj8gRLx/KJeV27yjRlyn4xq3ejyXcxFNJI6AvKoL3VMzz1cCUqiko5+5iDZfe5W6ckhT+sWuXPr7Lodc7y2QzEW6aBZX35l/OuXCu6O+3tPbqAxpUrMIkBSPa6de1yXOs5QLVL1lFOZQOS5muCS8GA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB4192.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(2906002)(6506007)(6916009)(54906003)(6486002)(8936002)(316002)(1076003)(36756003)(6512007)(186003)(26005)(66476007)(66556008)(66946007)(8676002)(4326008)(2616005)(33656002)(86362001)(38100700002)(508600001)(4744005)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?r/Na5eumAl+C9qBdCwGlvvQUHVEYP5SXqeFGLOgQ3i23Fq/H7sZtrFD2NXKG?= =?us-ascii?Q?Gu3wDDgfLY2T7xlhKirntQ0yBKssD+1YJlgNjO4tnIY7WvfFhZELpa5af+3V?= =?us-ascii?Q?W4GCIsONylL3vjp+hpAa4ia0be/522g+SjNVLWE36FpjhxL2M520slCXn1pN?= =?us-ascii?Q?Y+8/Jp3zmmPVUxndKATaAZEg6/PiRacrnvWgLQ9xAvJzHZcN/wi6dAOHz3t5?= =?us-ascii?Q?DzLI3dSp7oG38jajaCAeaJWeGjldqiEfqGAr2MH4CTxkDCL24VSxxlbEvvBI?= =?us-ascii?Q?FU2+uA4pbM8m9xCsVraXUXjOpxTAEutKRa7MjZtNptiEY8PgWJU0GGq75VcH?= =?us-ascii?Q?w36VmsE/NTT2svsvmXBY1oMvTphpsDPp3CnY7fWyOQgSKvJVL/Z2TZmY+glR?= =?us-ascii?Q?a3A4NRgfE3pHkisuSN+2r7556JCyF55d9x1NBfUOc+YeC51sJxBZ6gGTvpzm?= =?us-ascii?Q?JJc8akabnA6EdQwT2RRnTx7SsdNsO8PYXd3ZU5IMaraQ2FhMTFy6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bR0NRqvRT2Er892TCuizWU+Q0PjO7C5Fa7HD7Bgb+z1m?= =?us-ascii?Q?/EIs+W7RffCTsD1T8vCQyB7lapnwQfQbtMfZxZvYfFjfWYxnnReTDjVYbrRV?= =?us-ascii?Q?6vCVOFQcdwo6ikKmZtnKLb6KZqafmFoLJxi9Q0iFIT3lL7guDoU2PoDLj+KU?= =?us-ascii?Q?bpOPeoHv7kPofs41DrcbEVupB2K5xUiR+gp6CXouRoWzkFyip4/aJ3M9y0Mo?= =?us-ascii?Q?dDS9dJPtquQgfb9yaquf5IiKo804eJETiF49qmudVorHuTuR6xda7E9o3Jhw?= =?us-ascii?Q?P+mRyNG+t/XS+ooFvOgnxUydgODfieBR4i4ToVEdLC2XWOADZQRtTibKMvq7?= =?us-ascii?Q?QCkT0COWJA=3D=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8f01d6e-ba10-4ea3-21bb-08da290dcf9e X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4192.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2022 11:54:12.2637 (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: BSMToULVdzaaLYaFscIb5DGxdcMPvucQQU6hHSFXd6EdveQMMqrJKusDgHT/jjmW X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB5694 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no 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 On Thu, Apr 28, 2022 at 11:32:04AM +0200, Joerg Roedel wrote: > On Mon, Apr 18, 2022 at 08:49:49AM +0800, Lu Baolu wrote: > > Lu Baolu (10): > > iommu: Add DMA ownership management interfaces > > driver core: Add dma_cleanup callback in bus_type > > amba: Stop sharing platform_dma_configure() > > bus: platform,amba,fsl-mc,PCI: Add device DMA ownership management > > PCI: pci_stub: Set driver_managed_dma > > PCI: portdrv: Set driver_managed_dma > > vfio: Set DMA ownership for VFIO devices > > vfio: Remove use of vfio_group_viable() > > vfio: Remove iommu group notifier > > iommu: Remove iommu group changes notifier > > Applied to core branch, thanks Baolu. Can we get this on a topic branch so Alex can pull it? There are conflicts with other VFIO patches Thanks! Jason