Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5148385pxj; Wed, 9 Jun 2021 10:12:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnxw94lmFeRPCCyHTLPH51kt6TO5+zeEJwHdtExFHPs7B68lLhO556Ysdi9lTzFTuVM8SI X-Received: by 2002:a17:906:8608:: with SMTP id o8mr903734ejx.72.1623258745429; Wed, 09 Jun 2021 10:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623258745; cv=none; d=google.com; s=arc-20160816; b=es8MkGzVIhBcqlRLc9vkfRwY/leIJO2bgWfsYsOxVo+6SGeQVLVMpDrQWeDlIyVbVT AOUcIYPkSp/9H0W5FB0alCJ2LoyEhB7Ju7QQm5qUKmvhBjkxH8NfEwdsyR8fDQ8rp++B 6nvceBBaFSKH1xMoRyRElntUqT7yolIZHC2B7Sv8N79S0DhEmienA2DycYwq6OavrSOR v1Kr2ktTgOlcfN03Roc6c1YEOzGm0lHDsBJ29couGOpbrXe++v1DYOZScEA2lOzFmlsC ok6iouuEbfM6eKqZabDJtW6EhtZtkPwHNe9lJrvCG93TCg9ZGGpIHj9u08AF1tZhNCal c0qw== 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=jicOgGsQG0Z/ptj/djb6CCBbESTc95DNnmH5L9OFwKQ=; b=FM2YMXjD3Y7N10M+fBQIpsVmu7dVnj1LaTuQ3UifUgIpCp/2mtLPzoBYcfPzKoqk4T 9jvC1RZ6GO0g3xcZPbWbOWn5VBoQ/kcVHSXMCva19jKqWzLSW4/h2qEWmXr0ij8sm0cG ttc/kUOEKeTJ/+gEqxTkcUoPHiFmu1f7zFCqQHHkA9IrwvFm6dK9/Ek4OtnMiWzBQ8qW DKYMCnG0B3ElSbNINxNWXxSOh9is6WCd/BdmkGV9Kbe+Us+nXDUDVy8dxerIpER7fXeM YckeDSDGwR2Jvsv/uq3PbfwoyXQaRiMS2E3iQ0bfjb4OLpZHs2vrp2msO/bkb8cm3eFx jsyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z18si209317edd.97.2021.06.09.10.12.01; Wed, 09 Jun 2021 10:12:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237562AbhFIIRq (ORCPT + 99 others); Wed, 9 Jun 2021 04:17:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237514AbhFIIRq (ORCPT ); Wed, 9 Jun 2021 04:17:46 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFE23C061574 for ; Wed, 9 Jun 2021 01:15:51 -0700 (PDT) Received: by theia.8bytes.org (Postfix, from userid 1000) id 58D2C36A; Wed, 9 Jun 2021 10:15:49 +0200 (CEST) Date: Wed, 9 Jun 2021 10:15:48 +0200 From: Joerg Roedel To: John Garry Cc: will@kernel.org, dwmw2@infradead.org, baolu.lu@linux.intel.com, robin.murphy@arm.com, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, linuxarm@huawei.com, thunder.leizhen@huawei.com, chenxiang66@hisilicon.com, rdunlap@infradead.org Subject: Re: [PATCH v11 0/3] Enhance IOMMU default DMA mode build options Message-ID: References: <1623158308-180604-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1623158308-180604-1-git-send-email-john.garry@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, On Tue, Jun 08, 2021 at 09:18:25PM +0800, John Garry wrote: > Zhen Lei (3): > iommu: Enhance IOMMU default DMA mode build options > iommu/vt-d: Add support for IOMMU default DMA mode build options > iommu/amd: Add support for IOMMU default DMA mode build options So I like the idea, but can we go a step further and get (mostly) rid of the driver-specific setup code for lazy/non-lazy mode? This can happen in the dma-iommu code and the drivers only need to keep the support for their legacy command line options. Regards, Joerg