Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2886211pxk; Mon, 28 Sep 2020 02:47:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySc8wLA7WXeeZo69Q2pUJFnmcKlBJsX8yopL/4x4iMm0YPSijJ6F1uuEU+Sh+pSVnbHDjW X-Received: by 2002:a17:906:2b4f:: with SMTP id b15mr815051ejg.477.1601286421040; Mon, 28 Sep 2020 02:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601286421; cv=none; d=google.com; s=arc-20160816; b=GtuWwL1eMLSNcwZAxxGjDbeUnF/bnIOQjRgvYNS3Blq4EtiLn7rbnpGM4ZfMDrEYGy vqbfYWvEKo4Iem4/GJSb/ukwxWAi+ER52XulZLFyXB0zONr3CjbkIOu5Yy3gY2ZztWuD Wg2WiKE3dWCMCWXuJ7Dx5+0L24yP3/ReFRWUMdamjTvAJhmxFpdOk9+xlRvf1+Nt7wu9 RooIXTDC67J3w7z6Fl+x0/QgaYDU1JLyPS8fKPp8oSGVuUC4HrJ7apkVkdz/ijEQKO4Y m067sLjNkE6FNGJHfY23JacrwQS21kcuZnLZVgTsxAcAKIyM8f4EHX1zokA5sYWXRPNu pOXA== 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:organization :from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=AFxDhlzm3K97b/NaQuN921NsRWqaSWhI1qqfuS6vm5I=; b=dpwDTBUHkMYiBI8aAo8kW9H1Lq5pGXD8HCcoz3YH/v9YjB0Uzr8KiZ0wrZ/5o9ItpV m0Vg1WT1OkyvfjFvbhz2eTTqEFcfnp0a0nQ2FV6gbhP48iXuSCUfuMoW7SK5h9bHYNQ7 r2ZqRGNW2Fmi4IFHljQ8zuKsjwxR5xYJ/2/mTBUWHp21Rw+4Rg89N/HcBKApv+VsaXGQ 4M47iS0YE5NgtBYNVvdCzVwkqHz+wGfnbYC4dPHe6mn1XEUxoKnjEdWHaudk6PsG8/zW /2B5mZGF85YEE9c6v0sjcXw1k8fQEVA0qnMAIJQmjNHI3SYXK0YvikVsnv6EErGiVV9v vA/A== 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 y2si230658ejc.669.2020.09.28.02.46.38; Mon, 28 Sep 2020 02:47:01 -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 S1726727AbgI1Jos (ORCPT + 99 others); Mon, 28 Sep 2020 05:44:48 -0400 Received: from mga05.intel.com ([192.55.52.43]:32783 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbgI1Jor (ORCPT ); Mon, 28 Sep 2020 05:44:47 -0400 IronPort-SDR: yJJ3lJALOIAbr6nScVnDAihjYOoNDp6kNsyMZzAUZ5m+1eESyCkRN4oORgbfGuLubm0CrlLY4D NNvxQ3AJAt1g== X-IronPort-AV: E=McAfee;i="6000,8403,9757"; a="246708861" X-IronPort-AV: E=Sophos;i="5.77,313,1596524400"; d="scan'208";a="246708861" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2020 02:44:46 -0700 IronPort-SDR: 2tjmcGEZ/+K7vGu4mwps+Jnj56puQNgH9yUuCen7PBQdlOZ1+OafMXAQ8apkeDOTbbN8SnOE58 9OPrz021udJw== X-IronPort-AV: E=Sophos;i="5.77,313,1596524400"; d="scan'208";a="456757836" Received: from agal3-mobl1.ger.corp.intel.com (HELO [10.214.224.94]) ([10.214.224.94]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2020 02:44:43 -0700 Subject: Re: [PATCH v4 0/7] Convert the intel iommu driver to the dma-iommu api To: Lu Baolu , Joerg Roedel , Tom Murphy , David Woodhouse , Christoph Hellwig Cc: Ashok Raj , Intel-gfx@lists.freedesktop.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <20200927063437.13988-1-baolu.lu@linux.intel.com> From: Tvrtko Ursulin Organization: Intel Corporation UK Plc Message-ID: Date: Mon, 28 Sep 2020 10:44:40 +0100 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: <20200927063437.13988-1-baolu.lu@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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(-) >