From patchwork Tue Dec 19 03:17:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sameer Goel X-Patchwork-Id: 122332 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3622045qgn; Mon, 18 Dec 2017 19:19:49 -0800 (PST) X-Google-Smtp-Source: ACJfBosRkRNupT6mMeydj8pTvtNPUoyWlRAF/INkuoH0vEXTivo/Y9XDyF0DHwTLrxv2UMYYx17p X-Received: by 10.107.17.14 with SMTP id z14mr2177361ioi.219.1513653589093; Mon, 18 Dec 2017 19:19:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513653589; cv=none; d=google.com; s=arc-20160816; b=h0AjdF310bN+eg6bun0tRwURQNGK/RhHLmnB0vrFDJ/5SFEIT4RM2bf6TzKw+l6EU8 SGSm6zY8TZ2gYD57GIja9y7wnW1NTBNK5ngGpEIOZw3fOrmSQc6mwTHzekgGWusRFvaR QnBujLku4q3c+VWqxyQs3lOhq/CzTezd51aFG59X0nOjRcOZsepKj0c5xkV48a1cdFTw jAHbmiEaMXsP7ncmhBAgbaZVAiscJGpsy2o4S+/PHWKCmLSMh6G/ee0IbmtKj/L548un qd3J619ipoWtKKu7KOwUFhCC81ZGFlm6dTOgKipAsZBS+SFZH/nMd2iboF+ukOU9s4es tG0g== 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=IZpJM3gF8IsxzLD2DEQDoKSi1a5OR/LujgYd13kIv/M=; b=i0cQjKkkHz+Aa1FeaFD1Q0SGm+Ortiv5B0Yw5sinQ2Z27Otx5Ucf5CU1w1ZldrtlY9 NgzAs1SLinOfqysATMze57c+OHMNmTo/pzF/xJ6U+XQChhormxatpCyhed8bSwOxcaTO fFFcqcHldsVKfLjj0C8Ag+6hYA8s+lKs5lssuV1TJWwV8vvdt5eBEU7UWuASrJFNukSy mnmA1bBY/Aqt6EwolozFK/+2i/wJ+tBEU8vPCSprt4dwfJgTUcix84ewRYbLWjJjps3K +Gg+2xDGj5BfSzh9Cfns1XYY1Ht7YIOz7lgzEk8pxvN3am43E+mERDYrxf4TizA/TY1e vyRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OFPAiN/r; 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 j67si549540ith.129.2017.12.18.19.19.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Dec 2017 19:19:49 -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=OFPAiN/r; 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 1eR8PH-0006dG-Lk; Tue, 19 Dec 2017 03:17:27 +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 1eR8PF-0006cA-Su for xen-devel@lists.xenproject.org; Tue, 19 Dec 2017 03:17:25 +0000 X-Inumbo-ID: 08df111a-e46b-11e7-b4a6-bc764e045a96 Received: from mail-pl0-x244.google.com (unknown [2607:f8b0:400e:c01::244]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 08df111a-e46b-11e7-b4a6-bc764e045a96; Tue, 19 Dec 2017 04:16:42 +0100 (CET) Received: by mail-pl0-x244.google.com with SMTP id bi12so6149690plb.6 for ; Mon, 18 Dec 2017 19:17:24 -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=CLW7xv8tsBcZjVnDj6MBsZSQlW+r4K1KSLly+Fh/2go=; b=OFPAiN/reJ3rSV0mAuOp6Zm2ocWy2J21oB5Q5SwJKoxoBnGWVtx0mC3sKnDli6tZEh +NEHCuX/RqcfhbDxo0SS5LxXSlrXc2XOqm6zBgAk3N87jpD6Sgr7nEadBNmNnZ5cMAwB qZ65ukqN/P+dQpYAgZHWKA1wg138Z+Gwz44lI= 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=CLW7xv8tsBcZjVnDj6MBsZSQlW+r4K1KSLly+Fh/2go=; b=RJVWtnuYBtcXtu6XOlU+YXsJxtdzdN7E2IhR0urtFwmg8CBxyBOkl04ejMbmHvXqGM FeyAaXSZ3wO9xrpFHCSFUM9vo3EgjWdjAbYS6wDqbXequnrLGai+7gDcmFw+fEAO1Jh7 7fLD2z8j4bVo9dw7iptyLt8IvzV4+4FHAAhlNRUz7MNz2yAYAtR1cHFhxdBflRjAOH6D L1hEePj7n5YH574w7lIrmjUT00aLtimb38pV1d/0S/O9KDfdy2z7NI3XCz0qqb7KuvoP Bl43EJ0Etp9Gm+LNWWgrplFkomHnizHaUpDFdJ9gYIy0/HRau3rnHqKxMotP3FI7TbL3 dzsA== X-Gm-Message-State: AKGB3mLN5KOSuXbMEvXiMD5mKK+8sK/790RozEbbhllLalZ+nFjwGLMX JyY3+EnichGj9OkhYf66MJ2FIp7ovmw= X-Received: by 10.84.143.70 with SMTP id 64mr1787493ply.277.1513653443784; Mon, 18 Dec 2017 19:17:23 -0800 (PST) Received: from sameer-ubuntu-book.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 84sm28289917pfp.180.2017.12.18.19.17.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Dec 2017 19:17:23 -0800 (PST) From: Sameer Goel To: xen-devel@lists.xenproject.org, julien.grall@arm.com, mjaggi@caviumnetworks.com Date: Mon, 18 Dec 2017 20:17:02 -0700 Message-Id: <20171219031703.23420-8-sameer.goel@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171219031703.23420-1-sameer.goel@linaro.org> References: <20171219031703.23420-1-sameer.goel@linaro.org> MIME-Version: 1.0 Cc: sstabellini@kernel.org, shankerd@codeaurora.org, andre.przywara@linaro.org, Sameer Goel Subject: [Xen-devel] [RFC v4 7/8] 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..597f58f10b 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_64 || 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