Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3220487yba; Mon, 22 Apr 2019 23:10:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwr/jt7KQirGnuU5wIYmNLMeFtRlWulGJulBJL3g8WKKX08BNiMtPSn1Y3z2xWq8ifR0UQ/ X-Received: by 2002:a62:3583:: with SMTP id c125mr2495064pfa.169.1555999821026; Mon, 22 Apr 2019 23:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555999821; cv=none; d=google.com; s=arc-20160816; b=XHxTftOixKJeniL6DnitdQFO6vpcRrph2RigD0Ov3alQFSw8+et9Yxs2r3xjhYoJCJ 4ZVJcKrFH6f2d2S+bOyXFmFDl38qxzdpEJNBOy/XFJSgr0U3xoR5+bVNbbQV2mn5cIEc iQ7I6Vx0cox2CIqNEqcuHA3oRJQAQVCWag4vZHCCCAR8MXxBrvLnc0ISDnzMCyYOQYen rqHTMprNzElsw5t2V+TOoDp3YoNW7JU4XLE2v4dGn7j16gLqjZ610GZ4Y/XaNEQ+iW+H d/UlLd7mj7nfcn8iX9W2z2hhZiKCPrvzvX4U8xAnTqgdB2lvTfNC47ZhNF4ZdBt+K6Bh evsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=95hXoiX0gZ0mrR9gMXGY8c2xX343rBpk2omMG8Zlw70=; b=qVgAOjweBy067FqO0NLwa7FPboUJij3SU61tE/khRCBOtPlHx9fbI+2jo8t5H4Uv79 B8mtvIy3gpWabIeYXkYIRzLJxw5XYdiGWSb54RiOVJDjsYqXeVrUs+GGbMde706Rf/mZ 0QWk+6yy+SVuZkx88CLiUiT3nBLukgsR3tyI6lPCgLCPMz47EKLriG/uYOmtHJElEEdL rcvWOIXQSefz6fi1aR7CJA16DDQ7SU0n6Nf10IFNi7s1o8aS1bnJC8nMURrJfSbb4D1S roenZcK6uypYIFDS+DzNNCHyRG1xqM2G2OCtQvbJ4yPFGieRfORh11xzfYh9BNCD6eyG srOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j143si16750563pfd.124.2019.04.22.23.10.06; Mon, 22 Apr 2019 23:10:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726154AbfDWGJP (ORCPT + 99 others); Tue, 23 Apr 2019 02:09:15 -0400 Received: from verein.lst.de ([213.95.11.211]:44320 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725937AbfDWGJP (ORCPT ); Tue, 23 Apr 2019 02:09:15 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id B6D4368AFE; Tue, 23 Apr 2019 08:08:58 +0200 (CEST) Date: Tue, 23 Apr 2019 08:08:58 +0200 From: Christoph Hellwig To: Lu Baolu Cc: Christoph Hellwig , David Woodhouse , Joerg Roedel , ashok.raj@intel.com, jacob.jun.pan@intel.com, alan.cox@intel.com, kevin.tian@intel.com, mika.westerberg@linux.intel.com, pengfei.xu@intel.com, Konrad Rzeszutek Wilk , Marek Szyprowski , Robin Murphy , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Jacob Pan Subject: Re: [PATCH v3 08/10] iommu/vt-d: Check whether device requires bounce buffer Message-ID: <20190423060858.GA12762@lst.de> References: <20190421011719.14909-1-baolu.lu@linux.intel.com> <20190421011719.14909-9-baolu.lu@linux.intel.com> <20190422164755.GC31181@lst.de> <76e35340-32c3-ee0d-5232-bd8800248402@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <76e35340-32c3-ee0d-5232-bd8800248402@linux.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> Again, this and the option should not be in a specific iommu driver. >> > > The option of whether bounce is ignored should be in the specific iommu > driver. Why? As a user I could not care less which IOMMU driver my particular system uses.