Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5867430iob; Tue, 10 May 2022 05:41:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuTGq1/ISOdjob3ItRFjMSIu1so1fi5+f4wSJoHG7N8blEISrilfqs0El67xWwruOiOf/Q X-Received: by 2002:a17:902:e38c:b0:15b:40ca:37c8 with SMTP id g12-20020a170902e38c00b0015b40ca37c8mr20769820ple.23.1652186489784; Tue, 10 May 2022 05:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652186489; cv=none; d=google.com; s=arc-20160816; b=Ju98qK+ED3gT1Bmd7seXugFSnCWllMz8KpKbI3uwGbNslcsfup9TrfWOFnpU37DT2U M111A2coYkbnI6hBcFnRoWO2AL9Z0S5JayfiY17i46jitF+Oaa/RSoOtQsPcqPfgXcCu vh7vgssyilQASc282tchbAtpBkwJb1CIIouJQ3P29OhnNZU7AsJ9gY4wBVgFUM+JEm79 5Xyo3TQFQSJ1FIKRyQI6xZ9gCUNG6cCMmz1ZkSG+q8HJKRRnYAXeIFmHqAC4M4bdYGg7 IPI5qcKlNR9EGwEk2YGC0KMfYqn84rVIUTpObjjtgE0UhzRd4Tq0M+I6eFPW5qP3wuhG TZcQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HSFNtO8nF54rsxd75X2a22QaaCkoe0zRXq5Sc6P6NT8=; b=Y37ICoicx2J6y2BGyGYtjECj+r6mVR9Dtk6EiKCrI1/lf/szMIxCOORe8oRLQ6q0Mb RO4dmrfddk3YlQPbq6gekNFA3nWx4CcetzmyI/FML69vZW2IcsWpk7g50/vkAKLjt6ox iOuQZpAWbiug12USmkCJEz0OWFumJe6oNxwOdwbhl7Hv7hx0D2Dpogm2/MmD+VKHrcoX zAKQcNLX/kXIHrCdBwSbi9KVvHAjMcXvCgAn934uN4Tfc9nkiuXeXHFKInBOLwPNngIi SNqvOaVye2znqNZEqluzCnIMt0F7ayQvfBlWaOY3sR4AQV3OsNsPtOVFtlOd0ClMWLUo IxuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QAoo2dB9; 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 h8-20020a056a00218800b005061f41c548si19776180pfi.352.2022.05.10.05.41.14; Tue, 10 May 2022 05:41:29 -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=QAoo2dB9; 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 S235451AbiEJG0v (ORCPT + 99 others); Tue, 10 May 2022 02:26:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237123AbiEJGZz (ORCPT ); Tue, 10 May 2022 02:25:55 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F4E32A76AB for ; Mon, 9 May 2022 23:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652163697; x=1683699697; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VHde7Ed3dTEnDTSMg2+VjB6VeqUvISFvmHCLE7rzT4A=; b=QAoo2dB9BOdhgHZqzdsLrPLGxUqntigxfIxc985xtyVkoQ8NuEZND/TF TJQdcVhCUtwsVicTRxnOZ1nRUC9dIqubxnXv8afOlvVULhnlXjvwAH1zL tH3/bx1rCZGnYgJ1Ak7yXI0g/joubI0jd7lNYoI0pss93nTExKuVKw03P /vHaCkCHXSXODCwk4pTFIHIDKcp+LpP1bCWlzIoKrv+yED7RTO1Ahxy6n TuExtfpLD86FrLN6Fa9IxquV91rSLCr9PA3v2B+Cb5pG8eiphNYtf+DC2 1DMrKT6SjzGXZkdiNpIOqzvxfZmveifJCE9pFv+R8pChwxIx4zAoS5CZ8 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10342"; a="332313129" X-IronPort-AV: E=Sophos;i="5.91,213,1647327600"; d="scan'208";a="332313129" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2022 23:21:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,213,1647327600"; d="scan'208";a="552636731" Received: from allen-box.sh.intel.com ([10.239.159.48]) by orsmga002.jf.intel.com with ESMTP; 09 May 2022 23:21:33 -0700 From: Lu Baolu To: Joerg Roedel , Jason Gunthorpe , Christoph Hellwig , Kevin Tian , Ashok Raj , Will Deacon , Robin Murphy , Jean-Philippe Brucker , Dave Jiang , Vinod Koul Cc: Eric Auger , Liu Yi L , Jacob jun Pan , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Lu Baolu , Jean-Philippe Brucker Subject: [PATCH v6 12/12] iommu: Rename iommu-sva-lib.{c,h} Date: Tue, 10 May 2022 14:17:38 +0800 Message-Id: <20220510061738.2761430-13-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220510061738.2761430-1-baolu.lu@linux.intel.com> References: <20220510061738.2761430-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Rename iommu-sva-lib.c[h] to iommu-sva.c[h] as it contains all code for SVA implementation in iommu core. Signed-off-by: Lu Baolu Reviewed-by: Jean-Philippe Brucker --- drivers/iommu/{iommu-sva-lib.h => iommu-sva.h} | 0 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 2 +- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 2 +- drivers/iommu/intel/iommu.c | 2 +- drivers/iommu/intel/svm.c | 2 +- drivers/iommu/io-pgfault.c | 2 +- drivers/iommu/{iommu-sva-lib.c => iommu-sva.c} | 2 +- drivers/iommu/Makefile | 2 +- 8 files changed, 7 insertions(+), 7 deletions(-) rename drivers/iommu/{iommu-sva-lib.h => iommu-sva.h} (100%) rename drivers/iommu/{iommu-sva-lib.c => iommu-sva.c} (99%) diff --git a/drivers/iommu/iommu-sva-lib.h b/drivers/iommu/iommu-sva.h similarity index 100% rename from drivers/iommu/iommu-sva-lib.h rename to drivers/iommu/iommu-sva.h diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c index 56644e553c42..265b125d7dc4 100644 --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c @@ -9,7 +9,7 @@ #include #include "arm-smmu-v3.h" -#include "../../iommu-sva-lib.h" +#include "../../iommu-sva.h" #include "../../io-pgtable-arm.h" struct arm_smmu_mmu_notifier { diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c index 6a10fa181827..de3b6fbf8766 100644 --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c @@ -31,7 +31,7 @@ #include #include "arm-smmu-v3.h" -#include "../../iommu-sva-lib.h" +#include "../../iommu-sva.h" static bool disable_bypass = true; module_param(disable_bypass, bool, 0444); diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index a5728f743c6d..1c2c92b657c7 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -27,7 +27,7 @@ #include #include "../irq_remapping.h" -#include "../iommu-sva-lib.h" +#include "../iommu-sva.h" #include "pasid.h" #include "cap_audit.h" diff --git a/drivers/iommu/intel/svm.c b/drivers/iommu/intel/svm.c index ca83ebc708a8..44331db060e4 100644 --- a/drivers/iommu/intel/svm.c +++ b/drivers/iommu/intel/svm.c @@ -25,7 +25,7 @@ #include "pasid.h" #include "perf.h" -#include "../iommu-sva-lib.h" +#include "../iommu-sva.h" static irqreturn_t prq_event_thread(int irq, void *d); static void intel_svm_drain_prq(struct device *dev, u32 pasid); diff --git a/drivers/iommu/io-pgfault.c b/drivers/iommu/io-pgfault.c index 9efe5259402b..2a8604013b7e 100644 --- a/drivers/iommu/io-pgfault.c +++ b/drivers/iommu/io-pgfault.c @@ -11,7 +11,7 @@ #include #include -#include "iommu-sva-lib.h" +#include "iommu-sva.h" /** * struct iopf_queue - IO Page Fault queue diff --git a/drivers/iommu/iommu-sva-lib.c b/drivers/iommu/iommu-sva.c similarity index 99% rename from drivers/iommu/iommu-sva-lib.c rename to drivers/iommu/iommu-sva.c index ea12504a9e12..1791ac1e3d34 100644 --- a/drivers/iommu/iommu-sva-lib.c +++ b/drivers/iommu/iommu-sva.c @@ -7,7 +7,7 @@ #include #include -#include "iommu-sva-lib.h" +#include "iommu-sva.h" static DEFINE_MUTEX(iommu_sva_lock); static DECLARE_IOASID_SET(iommu_sva_pasid); diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile index 44475a9b3eea..c1763476162b 100644 --- a/drivers/iommu/Makefile +++ b/drivers/iommu/Makefile @@ -27,6 +27,6 @@ obj-$(CONFIG_FSL_PAMU) += fsl_pamu.o fsl_pamu_domain.o obj-$(CONFIG_S390_IOMMU) += s390-iommu.o obj-$(CONFIG_HYPERV_IOMMU) += hyperv-iommu.o obj-$(CONFIG_VIRTIO_IOMMU) += virtio-iommu.o -obj-$(CONFIG_IOMMU_SVA) += iommu-sva-lib.o io-pgfault.o +obj-$(CONFIG_IOMMU_SVA) += iommu-sva.o io-pgfault.o obj-$(CONFIG_SPRD_IOMMU) += sprd-iommu.o obj-$(CONFIG_APPLE_DART) += apple-dart.o -- 2.25.1