Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6630494rwl; Wed, 22 Mar 2023 13:15:02 -0700 (PDT) X-Google-Smtp-Source: AK7set/XVEG8YgQH8r6tDV81ZfnC27/htp+Ik2eWWzIqKv9DwdW/pO8OSchTjHrU1bWSXUGd17Gm X-Received: by 2002:aa7:cd86:0:b0:4fc:c7c8:e78d with SMTP id x6-20020aa7cd86000000b004fcc7c8e78dmr7825992edv.31.1679516102173; Wed, 22 Mar 2023 13:15:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679516102; cv=none; d=google.com; s=arc-20160816; b=YTPAEEmnS7wefKd9g2iXsJFyOO36jMXEf48Pt2POlfDa0MN54LuS1uJeu9qmP/LnFM avxh4SHPuc+Z6eQ6yYtq5MCDCjUDlpxi5eW8ntmVio3Gc7IuhQvmrcc8ppA1KRXLfc// mxqV0qRbhQoQ6uOL6BzN9AoWIQm+w1esILtbKRXzahIeMxOzyMHdS8Brm6h4i6aduKlV 4r6WEJRWwTZeE0qGEfLR1tBLGg+oJr6T7H3GbFm9t9UTowsgiuvAb8uY/XtzeDDy4Mkf IGZVut+ddSqfjWx3RAbrJBkHyiOSfrEYn2QPmK5VkEvmTI/5/tpUhrKXhlI/Oz9qKevR Sywg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FSsre0u4Am/NJEqiXWbtDU22IIPtjUg3FdBEpQ/cZkw=; b=CPmZHLVts3nzeDwvCT1zUvg7xYtXXLuMPkkS0R8vf+BO1BFi1qgRUcBSfJzGTnM/73 I9PKIlUlfBYyMEK0mKQk3ItZULl54eNmM7KWh9DBsiDKDB9pEgFbh0U6g70CTLH4m1L6 92m6hqilRFoFAmrJw+REgq4FgAPwThjvLvXOHQ5s3jwj+4Ik/5sGo5d9qGeu5gp0tAZR ooP+q0Xvv5ES3QNulKkS2yW2TktaqvDojOQRvDxw6TFM1jCB+MQHEgTL6oljzb3qEyNQ ubAfVxrRrDt7GXZrP3wN5TR5PxnkQEbiMYi5KsX5YbzLOncug67rJd1ZC8g7YtyQ+DCk t35w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M0+RtruK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a170906700800b0093161749da7si9408124ejj.369.2023.03.22.13.14.37; Wed, 22 Mar 2023 13:15:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M0+RtruK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231713AbjCVUN6 (ORCPT + 99 others); Wed, 22 Mar 2023 16:13:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232181AbjCVUNj (ORCPT ); Wed, 22 Mar 2023 16:13:39 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B22E80E13; Wed, 22 Mar 2023 13:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679515500; x=1711051500; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=a8YkKlN2oKnSi1BC3A2diPgc104NuJ1ZJiB6GyG9A2k=; b=M0+RtruKBflVeTY5tcMZJRG45AoDM75Fm/M+dDOoXdFCyNrBEYMMm/Pl /JEFb29A9rKU+T6/iW7C1UCFsUK7nt3Q3rw02d0XCLtdczsDw3ki+m7JB r03PheuwZMFIHNH03jtaCfpXLMETorUnB4iU3II6eqBLb1B/8Tzfv4pcm QAgM5P3o56vhX9dB9sMwc7jkIcu7EZdtLE3vdx/qyxTkBahOxuEzvouJI 7qUwJhISLHzMeJZ7zhFXxRpgsVi/5mQUSOiYh+xs6ACXLV/unP5+GcdPY /4bprK0FGbR63Ft6RfCCjTY7SRQAp9LCH/3oqwBfp6H2BuU+RTcVLgF1i Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="339356785" X-IronPort-AV: E=Sophos;i="5.98,282,1673942400"; d="scan'208";a="339356785" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 13:04:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="682039315" X-IronPort-AV: E=Sophos;i="5.98,282,1673942400"; d="scan'208";a="682039315" Received: from srinivas-otcpl-7600.jf.intel.com (HELO jacob-builder.jf.intel.com) ([10.54.39.106]) by orsmga002.jf.intel.com with ESMTP; 22 Mar 2023 13:04:04 -0700 From: Jacob Pan To: LKML , iommu@lists.linux.dev, Jason Gunthorpe , "Lu Baolu" , Joerg Roedel , Jean-Philippe Brucker , "Robin Murphy" , 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: "Will Deacon" , David Woodhouse , Raj Ashok , "Tian, Kevin" , Yi Liu , "Yu, Fenghua" , Dave Jiang , Kirill Shutemov , Tony Luck , Jacob Pan Subject: [PATCH v8 0/7] Remove VT-d virtual command interface and IOASID Date: Wed, 22 Mar 2023 13:07:56 -0700 Message-Id: <20230322200803.869130-1-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=AC_FROM_MANY_DOTS, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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: v8: - remove #ifdef CONFIG_IOMMU_SVA since we have dummy inline functions. - fixed a compile bug that affects bisectability v7: - use CONFIG_IOMMU_SVA around PASID helpers in fork.c, Fixes a compile problem. - Fix extra space v6: - put pasid helpers under iommu.h instead of iommu-helper.h - add comments for pasid allocation function to clarify inclusive range v5: - rebased on v6.3-rc1 - 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 | 2 +- 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 | 61 ++--- drivers/iommu/iommu-sva.h | 4 - include/linux/ioasid.h | 83 ------- include/linux/iommu.h | 14 +- include/linux/sched/mm.h | 26 -- kernel/fork.c | 1 + mm/init-mm.c | 4 +- 21 files changed, 47 insertions(+), 693 deletions(-) delete mode 100644 drivers/iommu/ioasid.c delete mode 100644 include/linux/ioasid.h -- 2.25.1