From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B08A7C64EC4 for ; Thu, 9 Mar 2023 22:18:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbjCIWSL (ORCPT ); Thu, 9 Mar 2023 17:18:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbjCIWSK (ORCPT ); Thu, 9 Mar 2023 17:18:10 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E38D1A948; Thu, 9 Mar 2023 14:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678400289; x=1709936289; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qEZC/0d3RxKKD4t5SPbuVMigiv80v1jYfs2FicqiFA0=; b=Bcqhca4Yr6F4tLHSWe35pP52ee5s4xf3+nbxdoK2DBBv70Y2/14cCWq2 4LaRNUVf6s697mw8wzOx81tUY1cAxaotAEC584zwC8GUFp2FghXLcwKZ7 niVDEx51R1JFabjZ7ctcsGTnN+2LnyELcjTKj6hMdnBz0OcmpR04q/pmE AFddZkMq4uMdtKvg1928RgiCy5ajtp3Pe43QmW56JsQn1kYYip5pZUWjV hWIBb+xYGM+RUKWE4cHK1kKqMsEkf7Wlmko78qwJUsAhGri6DKFuieCFz 0WJny0Na1h7C7s5qIfj2RyNzzk3V9gXMU3pQ1AaPiKAPicesa1qCPTrnn w==; X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="364235183" X-IronPort-AV: E=Sophos;i="5.98,247,1673942400"; d="scan'208";a="364235183" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 14:18:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10644"; a="707788826" X-IronPort-AV: E=Sophos;i="5.98,247,1673942400"; d="scan'208";a="707788826" Received: from srinivas-otcpl-7600.jf.intel.com (HELO jacob-builder.jf.intel.com) ([10.54.39.106]) by orsmga008.jf.intel.com with ESMTP; 09 Mar 2023 14:18:07 -0800 From: Jacob Pan To: LKML , iommu@lists.linux.dev, Jason Gunthorpe , "Lu Baolu" , Joerg Roedel , Jean-Philippe Brucker , Dave Hansen , Thomas Gleixner , X86 Kernel , bp@alien8.de, "H. Peter Anvin" , Peter Zijlstra , corbet@lwn.net, vkoul@kernel.org, dmaengine@vger.kernel.org, linux-doc@vger.kernel.org Cc: "Robin Murphy" , "Will Deacon" , David Woodhouse , Raj Ashok , "Tian, Kevin" , Yi Liu , "Yu, Fenghua" , Dave Jiang , Kirill Shutemov , Tony Luck , Jacob Pan Subject: [PATCH v5 0/7] Remove VT-d virtual command interface and IOASID Date: Thu, 9 Mar 2023 14:21:52 -0800 Message-Id: <20230309222159.487826-2-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230309222159.487826-1-jacob.jun.pan@linux.intel.com> References: <20230309222159.487826-1-jacob.jun.pan@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org Hi all, This patch set removes unused VT-d virtual command interface followed by removal of the IOASID infrastructure. This has only been tested on x86 platforms, need help with testing on ARM SMMU and other architectures. Thanks, Jacob ChangeLog: v5: - put removing iommu_sva_find() in a separate patch (Kevin) - move definition of helpers to iommu code to be consistent with declarations. (Kevin) - misc fixes v4: - keep mm_pasid helpers inline as much as we can for fork performance - separate GFP_ATOMIC to GFP_KERNEL change for bisectability v3: - moved helper functions for PASID under SVA code, avoided circular inclusion between mm.h and iommu.h - deleted makefiles - put rename under a different patch Jacob Pan (5): iommu/vt-d: Remove virtual command interface iommu/sva: Move PASID helpers to sva code iommu/sva: Remove PASID to mm lookup function iommu/sva: Use GFP_KERNEL for pasid allocation iommu/ioasid: Rename INVALID_IOASID Jason Gunthorpe (2): iommu/sva: Stop using ioasid_set for SVA iommu: Remove ioasid infrastructure Documentation/x86/sva.rst | 2 +- arch/x86/kernel/traps.c | 5 +- drivers/dma/idxd/device.c | 8 +- drivers/dma/idxd/idxd.h | 2 +- drivers/dma/idxd/init.c | 2 +- drivers/dma/idxd/irq.c | 2 +- drivers/iommu/Kconfig | 5 - drivers/iommu/Makefile | 1 - drivers/iommu/intel/cap_audit.c | 2 - drivers/iommu/intel/dmar.c | 6 +- drivers/iommu/intel/iommu.c | 87 +------ drivers/iommu/intel/iommu.h | 3 - drivers/iommu/intel/svm.c | 3 +- drivers/iommu/ioasid.c | 422 -------------------------------- drivers/iommu/iommu-sva.c | 62 ++--- drivers/iommu/iommu-sva.h | 4 - include/linux/ioasid.h | 83 ------- include/linux/iommu-helper.h | 12 + include/linux/iommu.h | 8 +- include/linux/sched/mm.h | 27 +- mm/init-mm.c | 4 +- 21 files changed, 54 insertions(+), 696 deletions(-) delete mode 100644 drivers/iommu/ioasid.c delete mode 100644 include/linux/ioasid.h -- 2.25.1