Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3405291pxk; Mon, 28 Sep 2020 17:19:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbXUq1XU1ExlHScKrXgQAShGQtJoyylwx/72p0vD9mGqmXnVnAXT9GURyfMpo2hdDez0/m X-Received: by 2002:a50:baed:: with SMTP id x100mr529688ede.384.1601338780824; Mon, 28 Sep 2020 17:19:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601338780; cv=none; d=google.com; s=arc-20160816; b=xpY8knaSIkyylAXSLfPiS6xu+YvUCBr9DQAK3h6tU8JcNm7MM/x/O+dIMuxhPoqAXf uAG1uspg9AR88L3zf4uk0K8rAbh8S5WbnlpSuIdSuXGpI6vpr+XnXTJ39C/pc1+Y++hD FBnCSZ0D7ypu6Jf0ShEZ/QcXOGyzgFruUjudWr25KDWxKr/+o6OLJ8d6K47Nau0WShCQ jZJho0+47Bq9yjojlXoVXQN4WsuaNe9H4mKjk5ClU1LcjlCozrxj+UQTE7VuDRGr435D GQ4iL4w1SaQhfgupQ43WynSFeu0UXAzEsq3H2pdbZaHobs6WUF2z6969AiluOIHYohdG L3bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:cc:ironport-sdr:ironport-sdr; bh=fPNmHhUZ2Qvjjr78yexBQadUKDzbD6j3yz/zJ2osxHk=; b=Fuf4tjvLq48ChKwmp6HZx2li7Cep0dt5C8rOdoNK9vi67DIZKVmhbKNCrAQ4QFfkTz ylAgp3VAFVZ2UUqMFwDZ67H+g0T9NdhitgWsQQ1EJCkh0EhXIma9yIuoF1AqVQNr1T6N W7pWr38Z7FpgOKS0YMhqimmEWh29lFZHBu19QxLgB5uLuPuyUbiezWTPk25/2cp4got0 cz0f2Q/W69LHE5qZoRARqtbIEawj/govzd5snnn81S6mQQWtPdud7Dz022F4Kex+bC66 nT4XfU3W5BkaOx4pHAXUIzAzx0Aq9vcZlt6LnXURL1/58CgWV6vbTYXVLPPqREJCGYag 4EGw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mb8si1608043ejb.518.2020.09.28.17.19.14; Mon, 28 Sep 2020 17:19:40 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727008AbgI2ARu (ORCPT + 99 others); Mon, 28 Sep 2020 20:17:50 -0400 Received: from mga01.intel.com ([192.55.52.88]:35622 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726698AbgI2ARu (ORCPT ); Mon, 28 Sep 2020 20:17:50 -0400 IronPort-SDR: RbVH6Bc6DLDNbfZBUS24tpwE26LDNf7cIcCHNMF54hRrq3ZtsuhX8gXl1WYElpX1Tuny/jVVQc uKx+Xs/VeuUQ== X-IronPort-AV: E=McAfee;i="6000,8403,9758"; a="180241687" X-IronPort-AV: E=Sophos;i="5.77,315,1596524400"; d="scan'208";a="180241687" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2020 17:17:49 -0700 IronPort-SDR: vBRBwymd2PTiWX2JYPy/kVamnLH16EZO03swENsMtJAUXMzMi//4+COfuiuFAY5Az4SbuQygQB dsW9T/Fk2OZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,315,1596524400"; d="scan'208";a="415182150" Received: from allen-box.sh.intel.com (HELO [10.239.159.139]) ([10.239.159.139]) by fmsmga001.fm.intel.com with ESMTP; 28 Sep 2020 17:17:47 -0700 Cc: baolu.lu@linux.intel.com, Ashok Raj , Intel-gfx@lists.freedesktop.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/7] Convert the intel iommu driver to the dma-iommu api To: Tvrtko Ursulin , Joerg Roedel , Tom Murphy , David Woodhouse , Christoph Hellwig References: <20200927063437.13988-1-baolu.lu@linux.intel.com> From: Lu Baolu Message-ID: Date: Tue, 29 Sep 2020 08:11:35 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tvrtko, On 9/28/20 5:44 PM, Tvrtko Ursulin wrote: > > On 27/09/2020 07:34, Lu Baolu wrote: >> Hi, >> >> The previous post of this series could be found here. >> >> https://lore.kernel.org/linux-iommu/20200912032200.11489-1-baolu.lu@linux.intel.com/ >> >> >> This version introduce a new patch [4/7] to fix an issue reported here. >> >> https://lore.kernel.org/linux-iommu/51a1baec-48d1-c0ac-181b-1fba92aa428d@linux.intel.com/ >> >> >> There aren't any other changes. >> >> Please help to test and review. >> >> Best regards, >> baolu >> >> Lu Baolu (3): >>    iommu: Add quirk for Intel graphic devices in map_sg > > Since I do have patches to fix i915 to handle this, do we want to > co-ordinate the two and avoid having to add this quirk and then later > remove it? Or you want to go the staged approach? I have no preference. It depends on which patch goes first. Let the maintainers help here. Best regards, baolu > > Regards, > > Tvrtko > >>    iommu/vt-d: Update domain geometry in iommu_ops.at(de)tach_dev >>    iommu/vt-d: Cleanup after converting to dma-iommu ops >> >> Tom Murphy (4): >>    iommu: Handle freelists when using deferred flushing in iommu drivers >>    iommu: Add iommu_dma_free_cpu_cached_iovas() >>    iommu: Allow the dma-iommu api to use bounce buffers >>    iommu/vt-d: Convert intel iommu driver to the iommu ops >> >>   .../admin-guide/kernel-parameters.txt         |   5 - >>   drivers/iommu/dma-iommu.c                     | 228 ++++- >>   drivers/iommu/intel/Kconfig                   |   1 + >>   drivers/iommu/intel/iommu.c                   | 901 +++--------------- >>   include/linux/dma-iommu.h                     |   8 + >>   include/linux/iommu.h                         |   1 + >>   6 files changed, 336 insertions(+), 808 deletions(-) >>