From patchwork Fri Feb 9 03:10:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sameer Goel X-Patchwork-Id: 127752 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp209341ljc; Thu, 8 Feb 2018 19:13:36 -0800 (PST) X-Google-Smtp-Source: AH8x224gN4y9poTprp5U8rUB5xgYjWz40Ma3xB9dFWbyIvIbParfpNXHlfJQsqTxOFZhxrUgsxFD X-Received: by 10.107.182.67 with SMTP id g64mr1519865iof.150.1518146016157; Thu, 08 Feb 2018 19:13:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518146016; cv=none; d=google.com; s=arc-20160816; b=ZrN30FyruQQ6Co5wmitloYDMZStcLvwHO+UDbVksFfen3vM0+QQvlU75Vi6L7aNIBA LH5SbZKBkTHGQQudlWuA4o5BLaxfMRSikSf4NJuV0vdu4R53s1NtviTlmwdGpIG2odZM zRy8pCzS042hJB+s9GzQY9AdguVPelQ55T3Dbz7CdO1Gb2JoOy4r5xgk60Un2qxeZbjt cYa1S57pocFR91E8sP1gDb150lfG89nkbzTm3r+4GzVWMbga6iFVSQxvtA1zyp/T17f3 8+6H9jaFBOLVohjW/2b6vOGHqqmsnQlb19o05gSh4YaGkk1AEc4hhK0ruY8dyoghTjJ9 9JxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-unsubscribe:list-id:precedence:subject:cc :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=86pnvlHt39jOYB8Yprs8LcUGqJjcSTZf827tO8SqaeE=; b=VoVzU+7C7ZlEoXf1LDtjPfovmOOB0aS5XX8TThnz7zsI+zgBGAmzAAVBg9YWULrJuU zzi9JE0W+o3tCwfZejprd4wkEtYOP8O7FfZy305HFsjg8Lx0QCWi4btN4hB1zZ/8pd+A 8v4wxKCpnpX/sMMAOv6W2C1ucOr8So/YoHajyhap2hO37nbOlfc1IJ8ZT0ywAthCiklg gFSncD3rfvRuFMMG3LzmLq0JiwO47k2RszBD54vkkr1Bs8FvIZjUykz/YJUGo2nKTCDc tuMx/PMRpmj8vWPZ89ttlGhWz0bxknsYbQiYHZP+HoCbXow5gmjCPya/iTKUd8i5xHzJ TfiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IFBp9mna; 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 r29si990130iob.261.2018.02.08.19.13.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 19:13:36 -0800 (PST) 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=IFBp9mna; 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.84_2) (envelope-from ) id 1ejz67-00059M-EI; Fri, 09 Feb 2018 03:11:35 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejz67-00058x-4n for xen-devel@lists.xenproject.org; Fri, 09 Feb 2018 03:11:35 +0000 X-Inumbo-ID: ddee4ee2-0d46-11e8-ba59-bc764e045a96 Received: from mail-pl0-x242.google.com (unknown [2607:f8b0:400e:c01::242]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id ddee4ee2-0d46-11e8-ba59-bc764e045a96; Fri, 09 Feb 2018 04:11:06 +0100 (CET) Received: by mail-pl0-x242.google.com with SMTP id p5so857139plo.12 for ; Thu, 08 Feb 2018 19:11:33 -0800 (PST) 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=EZLHeKa9nt1wWB176alxiy9FabaYTjSIgvaRAtYUXDc=; b=IFBp9mnaaya6/lHMpl6Z9ldAwMwMLulfrQovaCtvDlFYfxBp/LBhgs7BLrQVal+ee+ Zuhs+Wp8jwqQDpJS5fBQqmkH1IVEzHMD0zg9Odj1O4MoFJeWDsRiRz28Bh40F9YUmMxt +8eNm1/fexDK6YF10uIRlhPKr643tgNd36k4k= 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=EZLHeKa9nt1wWB176alxiy9FabaYTjSIgvaRAtYUXDc=; b=hvN9DccFs6V+A153KLUrNapNtIrunRfwQizfUj9i+Ea1DUnavqz8Ftksi4EDTzXSAq yzC0BEUf1w7MGmzYkjd99XBTc2Tv48pmLXHgV69VXNfhPCMhL3hvlhIT3s19AQxJNZ1z T/UGGNVAHPBjRW88a+pE/o3POuvvdx3mHXZjjKEzlq/6cGVGausukJdpMmjn05mjYWDj HOhVfAxIRffR56ppkDLILeJG8cq3mKhdRnKloYrWiOLYFXa1ZBXu0qrt4+8Tp/KyEH1/ oNm0fde1RroaOWcsPrd38um43bCiwfM9UpYPPDc8BgxI63QTGggDZB/gbnLQtz+YLJWG uvdw== X-Gm-Message-State: APf1xPAfriDh64DtQPovrh68aEMUPE6UtWB3vG7x/tMN3w/M6qarD3zh dBOQRdM10Anf/VBvEJN9HdcYkHwLIdM= X-Received: by 2002:a17:902:4101:: with SMTP id e1-v6mr1151597pld.332.1518145892758; Thu, 08 Feb 2018 19:11:32 -0800 (PST) Received: from localhost.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id z15sm2663487pgr.62.2018.02.08.19.11.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 19:11:32 -0800 (PST) From: Sameer Goel To: xen-devel@lists.xenproject.org, julien.grall@arm.com, mjaggi@caviumnetworks.com Date: Thu, 8 Feb 2018 20:10:55 -0700 Message-Id: <20180209031055.21926-8-sameer.goel@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180209031055.21926-1-sameer.goel@linaro.org> References: <20180209031055.21926-1-sameer.goel@linaro.org> MIME-Version: 1.0 Cc: sstabellini@kernel.org, shankerd@codeaurora.org, Sameer Goel Subject: [Xen-devel] [PATCH 7/7] xen/smmu: Add a new config define for legacy SMMU X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , 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