Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp828436ybc; Tue, 19 Nov 2019 09:54:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxE1n5fX3kJ+Uj+L31Xv8n3zJlUI2XrJYFnyDF8hZtPNRM4PuLr2PCbi3ReWkFADMZpUMvc X-Received: by 2002:a17:906:f756:: with SMTP id jp22mr35602806ejb.234.1574186097549; Tue, 19 Nov 2019 09:54:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574186097; cv=none; d=google.com; s=arc-20160816; b=Conj1R9uPnZwMSG5szvYn5AaW+LTf7svypurTsHB/nwNrFo9L458xhlqtIR5165SbZ e7B7KnmGC7YrLtqN88YlXVSjnayfT7ochZga4KaykBUitBhxGQ279i3rq+dpPEEDKfjW bS1vUhz49EYvJTnG5mYNNfPEnHdH52suEvjXc5bcQOaRpK59pRz4ROOMqTThE7QPAWzS dKoQoYQBKnTwDi1az1Fm+I1+PSqvD8FT9zvmDGfi+s6mOtOVK6yDeDE9S0tq5dDCww6s 9qDgPCb1WyMXZyMlItpRY/agXVY8EuYK7HpKTyiAIPS6D6JuWrJDp6rDia8wX79SlLiW Or/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=xpmzAq0JYp+zEy+DW4QfumSaQPrmHCpKiy9QUQPsLLo=; b=LwjyqBVJk+9DopOeIaTit696gg4qDuiSPlLXDEfUVJaCkN1N9D0F22jL0cvbfugRoi UJcR6B/sgIvD/nwNtxYXTuxCmPj+tF9RxkfkkngVrSS3t873lF25Jk3kj5qnwW2Ut7Te DaDX67zRjmR7JD101jDMY6LUMcfFqjoYo9uUKUWOUnq3snogIXRarvaGUDnl2qVkeWEr YhtLgeg2gawJbNInWcTiTvslgXhU33uChKmkHgmUgp0ciMax8i7c3z/J00uoDQrARqB+ lYrLqNgjBzWL9uOrTYUkTjIFVWmHMMHW7Cr+QaPFFKSARRhsmQN9cwm2nFrF2kgyF3oq aaPw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ga20si13793392ejb.14.2019.11.19.09.54.32; Tue, 19 Nov 2019 09:54:57 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727334AbfKSRwA (ORCPT + 99 others); Tue, 19 Nov 2019 12:52:00 -0500 Received: from mga14.intel.com ([192.55.52.115]:17665 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbfKSRwA (ORCPT ); Tue, 19 Nov 2019 12:52:00 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2019 09:51:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,218,1571727600"; d="scan'208";a="209488266" Received: from jacob-builder.jf.intel.com ([10.7.199.155]) by orsmga006.jf.intel.com with ESMTP; 19 Nov 2019 09:51:58 -0800 From: Jacob Pan To: iommu@lists.linux-foundation.org, LKML , Joerg Roedel , "Lu Baolu" , David Woodhouse Cc: "Tian, Kevin" , Raj Ashok , "Yi Liu" , Eric Auger , "Mehta, Sohil" , Jacob Pan Subject: [PATCH v3 0/8] VT-d Native Shared virtual memory cleanup and fixes Date: Tue, 19 Nov 2019 09:56:24 -0800 Message-Id: <1574186193-30457-1-git-send-email-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mostly extracted from nested SVA/SVM series based on review comments of v7. https://lkml.org/lkml/2019/10/24/852 This series also adds a few important fixes for native use of SVA. Nested SVA new code will be submitted separately as a smaller set. Based on the core branch of IOMMU tree staged for v5.5, where common APIs for vSVA were applied. git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git core Changelog: V3 - Squashed 1/10 & 2/10 - Deleted "8/10 Fix PASID cache flush" from this series - Addressed reviews from Eric Auger and Baolu V2 - Coding style fixes based on Baolu's input, no functional change - Added Acked-by tags. Thanks, Jacob Jacob Pan (8): iommu/vt-d: Fix CPU and IOMMU SVM feature matching checks iommu/vt-d: Match CPU and IOMMU paging mode iommu/vt-d: Reject SVM bind for failed capability check iommu/vt-d: Avoid duplicated code for PASID setup iommu/vt-d: Fix off-by-one in PASID allocation iommu/vt-d: Replace Intel specific PASID allocator with IOASID iommu/vt-d: Avoid sending invalid page response iommu/vt-d: Misc macro clean up for SVM drivers/iommu/Kconfig | 1 + drivers/iommu/intel-iommu.c | 23 +++---- drivers/iommu/intel-pasid.c | 96 ++++++++------------------ drivers/iommu/intel-svm.c | 162 +++++++++++++++++++++++++------------------- include/linux/intel-iommu.h | 5 +- 5 files changed, 134 insertions(+), 153 deletions(-) -- 2.7.4