Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5834900pxb; Mon, 14 Feb 2022 08:40:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwPMPEt0zTDjaZhesu4a770heuUsni9nPIGB7vebF6s3g3gXy94fA2vTAVQ0vlE6GNpfhv X-Received: by 2002:a63:5503:: with SMTP id j3mr478277pgb.378.1644856835831; Mon, 14 Feb 2022 08:40:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644856835; cv=none; d=google.com; s=arc-20160816; b=lwgB5rhWKhlwv+lz5N1w+9l800/22vEEIV3c2gOVDHZvKqIj+jj5dX0cuDCZwLBl4l 3JAYfSNYGF1lqvETWq/FaRrbuSbL06FDRfaXmXJ5yqzUZIgN5RbUHuu8ropMstW28uWX J26YE49OfhoOkcyzXT3bXhw3B/9kcG0ZtXCBUG95hW9hHgfa78vWWHeOjOOYZeQ1m7DV aatsTbULbGzjmAdUKnjpO3Wm8BbQDOzmj9RBBbLGFP4patSLwfLowpSHBA/VA4eKyZFG 9+msGR8LSISo2BQCX7cUggid37bmrjksqaiAX+p5LMLJXA+y+NWqtz25Rl7+eiaRt6u/ da1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=LSOm0BSCk0k7MWmlAw/S2ANrnLKr9m3/p2e4OWBtqRs=; b=Eq0fQkqF3r9/QWIdDnFNf2I4L8GTin7acmE43E5wmD9XHBc1Kq02x+Z8IEpC2VINIU oHOGdRaeF9IJwpTDv8qpUEk3MDrN9KZaozS5vojD6CArT5PpGKtYdWTfsVCtg7Mz32ay LyV9bRBw4Ff0iBs/KSHWHYha1rvgdNUT3xpWgYbqqM1SyAR/5/aOUX2W/Swlcgu3ANeQ 9217EiYFtz9MVnyMapYyOnDDCqkah3Kr5fmVpy41G7SGaUClmS8rvfJ1vPaA8wysVX/M ahbvRkZBBx0GglHNdzdPYtOACV2N5SjDH2KTSaplUTNX6np6V5pM+uB04kLpfrX17T04 /eUA== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c142si6309917pfb.59.2022.02.14.08.40.18; Mon, 14 Feb 2022 08:40:35 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354992AbiBNOOs (ORCPT + 99 others); Mon, 14 Feb 2022 09:14:48 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231236AbiBNOOr (ORCPT ); Mon, 14 Feb 2022 09:14:47 -0500 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D85BA278 for ; Mon, 14 Feb 2022 06:14:39 -0800 (PST) Received: by theia.8bytes.org (Postfix, from userid 1000) id E6060374; Mon, 14 Feb 2022 15:14:37 +0100 (CET) Date: Mon, 14 Feb 2022 15:14:36 +0100 From: Joerg Roedel To: Lu Baolu Cc: Jason Gunthorpe , Christoph Hellwig , Ben Skeggs , Kevin Tian , Ashok Raj , Will Deacon , Robin Murphy , Alex Williamson , Eric Auger , Liu Yi L , Jacob jun Pan , David Airlie , Daniel Vetter , Thierry Reding , Jonathan Hunter , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 00/10] iommu cleanup and refactoring Message-ID: References: <20220214015538.2828933-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220214015538.2828933-1-baolu.lu@linux.intel.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Mon, Feb 14, 2022 at 09:55:28AM +0800, Lu Baolu wrote: > v3: > - Remove ops check when dev_iommu_ops() is used. > - This version of series is available on github: > https://github.com/LuBaolu/intel-iommu/commits/iommu-domain-ops-v3 > > Lu Baolu (10): > iommu/vt-d: Remove guest pasid related callbacks > iommu: Remove guest pasid related interfaces and definitions > iommu/vt-d: Remove aux-domain related callbacks > iommu: Remove aux-domain related interfaces and iommu_ops > iommu: Remove apply_resv_region > drm/nouveau/device: Get right pgsize_bitmap of iommu_domain > iommu: Use right way to retrieve iommu_ops > iommu: Remove unused argument in is_attach_deferred > iommu: Use dev_iommu_ops() helper > iommu: Split struct iommu_ops Really cool, thanks for doing this, Baolu! I am currently running some tests on this series to make sure there are no build breakages. And I agree with Jason that: iommu: Use right way to retrieve iommu_ops and iommu: Use dev_iommu_ops() helper can be combined into one patch. Splitting iommu_ops was something I have been thinking about for some time, so thanks again for doing this. Regards, Joerg