Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2236917pxk; Sat, 26 Sep 2020 23:43:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysEum3UeY/ObVwW6a2TCUaZrNgd1GV80b1MvBCw1Nn0krB0+uN7vf64gmVC2jjoT1vBdZX X-Received: by 2002:aa7:cb8f:: with SMTP id r15mr9989098edt.356.1601189038136; Sat, 26 Sep 2020 23:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601189038; cv=none; d=google.com; s=arc-20160816; b=kZsPC0ReHdYRjAYZvvK9vbwGQULD9N/28+BhhGfsa5vhOsQop+Eb+/Y5/H/g77rEG2 QDXPWs4BIEuT47hpV/IyixCdOmv/aNp3DJ+KluHMdGk4KcA9/duXyh61XN9NuNvORMdV GwYD/KHg7KUS1k0ELisz+eleDiBysa461RWxAFl1EmAsa9yQJCL5UgDyQPWQhqk/zwev Xvr7daa8R826/2EZ/mh/6yJLKZteqIyveaiDysbjYpvc0Pb15LgkkMKVN4pWd68SyyS7 HtZl4jh3e0T5jeW8v0IitrzZzAzY5Z1+fOz3Zic4BjpkKETQ/L6wE6KbTInhK6Y3Tu1g TlNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=isErxsJXJQ/NHqpI2/1uIhVyWBax0iIYV/4xLism2IQ=; b=itmB5CK5L/viUtJRgObLWrw3zi9vLXMn/bHeHca+rty/P9vhdWo1HaIQc0BFyGd1xQ Shceejpvk1x4z5EFTRbFKCAiNGIl8+IJaQXCWOkDlwikalSsz+BgCT+vUZacGF9KYEm1 0AhKc5ffqtKy+Ti+kn54R0gcfWb5genkboO/pIdVZ+etB5FVYbO2ld0WFqxYkoEtPs2e am19P7q0YmjTl00wcP06C5U+Va9irQpp8YZ+VWraeRaWsnaH7zbRQh9sv8fi+lwBdsy0 cLH9erWkvpLLkjLgAZ9YgW2B5vPdWDoRT9tgtiIru5lrtrfWbyhhj6MyyF3WeYAQ18Y/ 9FDA== 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 d10si5888162edv.145.2020.09.26.23.43.21; Sat, 26 Sep 2020 23:43:58 -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 S1730366AbgI0Gku (ORCPT + 99 others); Sun, 27 Sep 2020 02:40:50 -0400 Received: from mga17.intel.com ([192.55.52.151]:35933 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726382AbgI0Gkt (ORCPT ); Sun, 27 Sep 2020 02:40:49 -0400 IronPort-SDR: q9E0pFWu8j41mxoD+a5yQKBYva+Yk/wfnXuFVqjdC3aiMDszIi+36zmNsH+6Dlx2crfyPy2/uU jB37DqMHoInw== X-IronPort-AV: E=McAfee;i="6000,8403,9756"; a="141863643" X-IronPort-AV: E=Sophos;i="5.77,309,1596524400"; d="scan'208";a="141863643" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2020 23:40:49 -0700 IronPort-SDR: BcD1OrQHfpsDohmg8zEQeY/oyfp6Yvh2Q4v/w6YCEht/PqSE8MrvvNg8OhReoQQwT6f09GASjt oqbuR5dl6czA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,309,1596524400"; d="scan'208";a="349457807" Received: from allen-box.sh.intel.com ([10.239.159.139]) by FMSMGA003.fm.intel.com with ESMTP; 26 Sep 2020 23:40:47 -0700 From: Lu Baolu To: Joerg Roedel , Tom Murphy , David Woodhouse , Christoph Hellwig Cc: Ashok Raj , Tvrtko Ursulin , Intel-gfx@lists.freedesktop.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Lu Baolu Subject: [PATCH v4 0/7] Convert the intel iommu driver to the dma-iommu api Date: Sun, 27 Sep 2020 14:34:30 +0800 Message-Id: <20200927063437.13988-1-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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(-) -- 2.17.1