From patchwork Thu Jun 7 23:47:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sameer Goel X-Patchwork-Id: 137904 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp207232lji; Thu, 7 Jun 2018 16:50:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJHjUnObFR0rSW8+0FNCIe2Nx4xTvQe90FAC2kAcuEJijD1bAx1wpFwdWwHFiarXb3SU+P0 X-Received: by 2002:a6b:1884:: with SMTP id 126-v6mr3271783ioy.183.1528415426069; Thu, 07 Jun 2018 16:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528415426; cv=none; d=google.com; s=arc-20160816; b=WGynu+S8E8pUEQZfhvBHYUnbxYKADbFqQ2j6w0uDvfHfQjDM2Bqte7s95EFpr4FkJI n7jyWs+uMGE9qZtVmsMy13UKM7m/Dh+PT53yz2Nu16q0n5DgA2qEWaVQwaVigyfbb5f8 Ys4VNpnDKuE7k3R8Rcq4UikdQSM0mt6gSURnKwAcsD5WpjGrAZ+CtlQeo658+vjh018x 788IWIj/0rFZopVaTiL48iNVXsn6dy0AgpCDqs6WmPGy2JpY1n2KTU6BB2mTP/zAOCg3 ExKTHc59PvrT5/KWZgBgm9FZwmxd493FpEiMLFBMq1DsWHCC5Qc8GogDxIKiTNAi1fm+ +8Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=GGOn9ov5ONvAXkt5BH+24KRxlbY38HR64rigbEPfnVM=; b=tG26Djz02QEbYlHKSLc3EiiPgnsStLxYRVNvcoAWInxJ8TYa0wd5iZtwiNzjydVv2w 6Dck4E8aA5mvVBXe29ZhfOWIElvQcPQaJKS0Wd7h02B+PoDBLimE7aW1SvGMNI+PBbQe 93U5NECP9LpGZquwbnYSXvnzSTf9E35KKBBu9biXCw8ds6mgWNJZUS0Fq8qDQKLWSf0n DODIvJ9ny0uN1ZRsZ03Qb814SGdTgrYc3tT4zuHoqb9F+GiHFibzaST58cFOIaKRaSDE TdYYmOl/33zGLafOdqgzzjtMdAyoIqiumLF8crxgvJQlFDjQwHRnhviKdUMSBzSu6IsL llNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Co+lBSkV; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id s193-v6si120813itc.19.2018.06.07.16.50.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Jun 2018 16:50:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Co+lBSkV; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fR4dS-0007kh-T4; Thu, 07 Jun 2018 23:48:06 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fR4dR-0007kC-V0 for xen-devel@lists.xenproject.org; Thu, 07 Jun 2018 23:48:05 +0000 X-Inumbo-ID: e604b831-6aac-11e8-9728-bc764e045a96 Received: from mail-pg0-x243.google.com (unknown [2607:f8b0:400e:c05::243]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e604b831-6aac-11e8-9728-bc764e045a96; Fri, 08 Jun 2018 01:45:46 +0200 (CEST) Received: by mail-pg0-x243.google.com with SMTP id l2-v6so5490556pgc.7 for ; Thu, 07 Jun 2018 16:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JRUr5YUlz920vj7kWreWp4EVkObY8RYzcrb5m+yZv7I=; b=Co+lBSkVI98bon82AZVPmvg5hO8guVvvC2nHtdmtq4kOBc0BWJwGFkMR2T8vs0f2bL 1kVMlr8iZ4foEp0KyrWHQcRupfm9HNWwxmaZI8Q/gEJ+zGxk72nbg1FvqGde1MsUzY/a kOsocfSIYx8aC2YDxe1NeKQW6BY8aJiJ2FjDU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JRUr5YUlz920vj7kWreWp4EVkObY8RYzcrb5m+yZv7I=; b=qPIZuW1zGY7UPgQlcWHW3HkPSZk4bO6nwSusvEzjAslrOFv5IXmEvp8j0eMF2//lIs Rdj4EDiVkvE+EJ6HwfF30CiC2wt4IvFffGQc570x0FUsd5F/Hj74VnzEjaNRKjXDEhBy X0bYVXdDcsMid5CVyDX68/KpM4dAZWmRcHlpP1TSxXkbDABy+nJ8HRZxzg3xCPKtXCLo 2fw8JqLaS4rPkWss5FR1tcvg5tyv8VM2AcbrV+ijMXQ8g6AzglmnbGq3+cJ3A5bBnl0f gFXYZ1j4o0bbNFD4nep/ez2fm1sf9MfwqYj/RWRQ3wt7iblpNFFlS6D9VoQyjmcv0DFL GuSA== X-Gm-Message-State: APt69E0AYzkPQQ+h5/beJQSRe6tvrnf9YEbSn+tfoXr8Zb1OOOk5kJXS 4J22fnM46j2R+YDgm8IrAsKiSAvJocI= X-Received: by 2002:a63:3201:: with SMTP id y1-v6mr3270589pgy.419.1528415283846; Thu, 07 Jun 2018 16:48:03 -0700 (PDT) Received: from sameer-ubuntu-book.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id y20-v6sm46183321pge.46.2018.06.07.16.48.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Jun 2018 16:48:03 -0700 (PDT) From: Sameer Goel To: xen-devel@lists.xenproject.org, julien.grall@arm.com, mjaggi@caviumnetworks.com Date: Thu, 7 Jun 2018 17:47:32 -0600 Message-Id: <20180607234732.20124-7-sameer.goel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180607234732.20124-1-sameer.goel@linaro.org> References: <20180607234732.20124-1-sameer.goel@linaro.org> MIME-Version: 1.0 Subject: [Xen-devel] [v3 6/6] xen/smmu: Add a new config define for legacy SMMU X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: sstabellini@kernel.org, roger.pau@citrix.com, shankerd@codeaurora.org, Sameer Goel Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Add a new config item to control compilation for legacy arm SMMU. Signed-off-by: Sameer Goel --- xen/drivers/passthrough/arm/Kconfig | 6 ++++++ xen/drivers/passthrough/arm/Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/arm/Kconfig b/xen/drivers/passthrough/arm/Kconfig index cda899f608..e888a78312 100644 --- a/xen/drivers/passthrough/arm/Kconfig +++ b/xen/drivers/passthrough/arm/Kconfig @@ -6,3 +6,9 @@ config ARM_SMMU_v3 Support for implementations of the ARM System MMU architecture version 3. +config ARM_SMMU + bool "ARM Legacy SMMU Support" + depends on ARM + help + Support for implementations of the ARM System MMU architecture + version 1 and 2. diff --git a/xen/drivers/passthrough/arm/Makefile b/xen/drivers/passthrough/arm/Makefile index e14732b55c..5b3eb1545e 100644 --- a/xen/drivers/passthrough/arm/Makefile +++ b/xen/drivers/passthrough/arm/Makefile @@ -1,3 +1,3 @@ obj-y += iommu.o -obj-y += smmu.o +obj-$(CONFIG_ARM_SMMU) += smmu.o obj-$(CONFIG_ARM_SMMU_v3) += smmu-v3.o