Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2190960rwr; Sat, 6 May 2023 06:29:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6KaU2c0FHH9sussDH2FPWziOuquS4xJ2kM0IrEzcqprSm+DTpXGlPSR/PaAP05ZtUA+ol+ X-Received: by 2002:a05:6a00:24ce:b0:643:9943:4f8c with SMTP id d14-20020a056a0024ce00b0064399434f8cmr6533575pfv.24.1683379761275; Sat, 06 May 2023 06:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683379761; cv=none; d=google.com; s=arc-20160816; b=GQuglGz2omTgRyuxQc6o7kNvrxs//CymPOgob9jWQbKIhIzcM3M4SW4s3ryBaSop4c 2E5Y3kZhDUxkL2DHNrTH46wnQob7LLBSQRhgMHNa7iD8dyxAXA4WS62Nk2TssAXMfSyw QbGADNMAx/dnAPxObUTGq0XUFbWN+/9z9qh2mvQNJQse7khUAC4RWf60yBlAQnSm6Hk9 AzhD0DPeX5WAy7V6/z90qDL5ew1VvG83rH1an95AUvaZLYqlVPLMCsQ0sg4TmjHOfPT5 xL5fukrbiBWyY8dezOqpOZwsxj1ec1Bq7W52sN+H0VArCgqeuOxr1R+zF/GDhT92OZ2U qxyQ== 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=lfIitca5dB7aNzcJRhmj+WxWIGtZbq50n7IyU9wbklg=; b=PB/kpN244BKbfYWNghf33sQ0f4q1maVyCDHDerFHxgyj6NMwgETWreUf5eDU0wD1Cb TT1czgVlH4i3p7HtqkwaI6ebSr0MAMOhG3+7a/iY2x5IcwaNJN7Uzmvyh4delwTQEXGu v2VYgWz+aH8o3QHXNmX7jyjUeZOTMW2z+LsxZ/RGkihSunNK7st/zcoDTyVg6462xMpT Lq2IvBmF+D8wJqujERTS2jmAIYk0Fm5quakeAPgcMKjqZOKY7fX6jGvRs5bp0jvw/0fN PsE1MndsL3x8ZKXMFt6kXDhLEyGZkOv7vO4kfYhZhqa4MlAHoq9PuJvI5q4r/MsBdMx9 0hCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QSwG1OR7; 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 x28-20020aa78f1c000000b0063d4595dee9si4200703pfr.46.2023.05.06.06.29.08; Sat, 06 May 2023 06:29:21 -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=QSwG1OR7; 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 S232273AbjEFN1e (ORCPT + 99 others); Sat, 6 May 2023 09:27:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232401AbjEFN1O (ORCPT ); Sat, 6 May 2023 09:27:14 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6818A1C0F2 for ; Sat, 6 May 2023 06:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683379633; x=1714915633; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6kF0WZAR4rQ0vQdOZz3ojMQj9WSdjbV+mkgN/IGSPOs=; b=QSwG1OR7tnBsDAcJo1g9A1qy+RNcyfrNpzdIpIC1+ZhXF/bwnGH251Zw gWq5CA3uCjgNyfPPkTaxqXkS8+svfevcgZ7C84LsBSox1rBkS1+vU4ztm ENQj3VqzFGedrOPeh2mQAD055nD6hXHDeWGcy70shluyTemRpcjS2hDCI ztuOe/UvbRe8VVKp/zD1gRHR/P3KIUNmcxjwV9BCUfZ6vOv0OjVmOjF4X UWgBdOND9vPmqHiysWwPxvD+gkJaKVnpkH+boc/HAuY7nkjzEim5F6zsi E2aDuwfYm5L+PeejO1znL4Rqrz/1QyPJTagKaQ920uiUfI3lP0+hymFwi Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10702"; a="412631141" X-IronPort-AV: E=Sophos;i="5.99,255,1677571200"; d="scan'208";a="412631141" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2023 06:27:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10702"; a="944265958" X-IronPort-AV: E=Sophos;i="5.99,255,1677571200"; d="scan'208";a="944265958" Received: from srinivas-otcpl-7600.jf.intel.com (HELO jacob-builder.jf.intel.com) ([10.54.97.184]) by fmsmga006.fm.intel.com with ESMTP; 06 May 2023 06:27:12 -0700 From: Jacob Pan To: LKML , iommu@lists.linux.dev, Jason Gunthorpe , "Lu Baolu" , Joerg Roedel , Jean-Philippe Brucker , "Robin Murphy" Cc: "Will Deacon" , Raj Ashok , "Tian, Kevin" , Yi Liu , "Yu, Fenghua" , torvalds@linux-foundation.org, Jacob Pan Subject: [PATCH] iommu: Add Kconfig help text for IOMMU_SVA Date: Sat, 6 May 2023 06:31:34 -0700 Message-Id: <20230506133134.1492395-1-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.5 required=5.0 tests=AC_FROM_MANY_DOTS,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=no 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 Shared Virtual Addressing (SVA) is not immediately intuitive to people who work outside IOMMU subsystem, add some explanation to make it less opaque. Link: https://lore.kernel.org/lkml/ZE70doFi8X3KgfrV@ziepe.ca/t/#meaa938c91857665b376db59e16b532ba9d4ea013 Signed-off-by: Jacob Pan --- drivers/iommu/Kconfig | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index db98c3f86e8c..0f7181007dc1 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0-only +# PDX-License-Identifier: GPL-2.0-only # The IOVA library may also be used by non-IOMMU_API users config IOMMU_IOVA tristate @@ -155,7 +155,14 @@ config IOMMU_DMA # Shared Virtual Addressing config IOMMU_SVA - bool + bool "Shared Virtual Addressing" + help + IOMMU and CPU share page tables for user processes thus DMA can use + CPU virtual address. Under intel architecture, it is also called + Shared Virtual Memory (SVM). + With SVA, DMA requests are tagged with PCIe Process Address Space ID + (PASID) or Substream ID (ARM SMMU term) with which page tables are + associated. config FSL_PAMU bool "Freescale IOMMU support" -- 2.25.1