From patchwork Thu May 24 00:46:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sameer Goel X-Patchwork-Id: 136692 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1557378lji; Wed, 23 May 2018 17:49:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLZBpT1eNtq8icNqY+/km1dEKhuSEq9W5pvz9/Tg8rbuIQ5LKVBmtNQtITxjEqdzbNNY6ZN X-Received: by 2002:a6b:2047:: with SMTP id g68-v6mr4641690iog.172.1527122941909; Wed, 23 May 2018 17:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527122941; cv=none; d=google.com; s=arc-20160816; b=oPm1GSR08p02/G2fNuEUovPMaRk9fBsuRzAIQHqr8zo6kSDNZDCKnRhWEaB/Q2xrq9 wYA42go9I4MispvONQoWZkyhXafmXbIG6o/y8xdMJmMepjn1akur5K9CHppmaeUDLnuz obM0zAcOADVsMXm4fR5/6BK30iVN6+EsKU6tV5Ly2I01wce9+jMS/ICp0gljlsW/1WVH xPK/tyarW7g6Yqvup69NH8iKqCk1ZTQFXLOc5CwRcvVb8fCnuscI9tqMKKFSpZxZkt1d gQ5CHVpEsHIbRKhrS37KjDRzMB7e7GjFkB21m0Yt5SEZvPGA+8pA0VO0S3j+BterXmhP t5hg== 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=f4gRM8+cE3IdR2gG5QCPadfdQwh16F838UbbU2mebxE=; b=ozm+Hr/3dZcA/vyIoIvpG3KI0X6BZna7vEowyymoMzcP+tFblVJ2dXiGyO0LhMfQ2I aytrLNN/duWpYyWa+MfQapbDJ5Wib5eQNkLAdAQj+U/6JpAXPZnjKflB3RcwOGmI0gnT Wn6QcfehhvsKTtcsghrYv8LgS8W74GSkTwWvzJy8fsIgn4ozkFDQh9xFRXIv63xtdRf0 qtSZlpSXC0cPEuECg7DpBIhrzOQWL2J09/AlmQagsTC42cXHTipFD/tpcF0AArHN7A1t Fuc+A7Em/2bdCDnYozkE7jw1dJMcWHLd3IxGQRkQ5AbCN8VV/0sHIvXWP5bc8crCag6V Hgvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XHo/L3o0; 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 l14-v6si2086327iob.59.2018.05.23.17.49.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 17:49:01 -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=XHo/L3o0; 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 1fLeP6-0001I3-3J; Thu, 24 May 2018 00:46:52 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fLeP5-0001GO-0O for xen-devel@lists.xenproject.org; Thu, 24 May 2018 00:46:51 +0000 X-Inumbo-ID: acf0984e-5eeb-11e8-9728-bc764e045a96 Received: from mail-pg0-x244.google.com (unknown [2607:f8b0:400e:c05::244]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id acf0984e-5eeb-11e8-9728-bc764e045a96; Thu, 24 May 2018 02:44:55 +0200 (CEST) Received: by mail-pg0-x244.google.com with SMTP id 11-v6so8518487pge.2 for ; Wed, 23 May 2018 17:46:49 -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=jJPuFFpZ95vlsDORAtj4A2UMb8Vh1SFbejnBdq/GknQ=; b=XHo/L3o0vN9rnaYdUrZ8AMb1gzAeaFo5Mq4dHgu2TujopGN+/TYxiCTWteB1g2rI3J TyJioY5JKC1hJ/xmz7H3L9fCbcmhd7PKaGmp5cU8UeEvojwFyz98DFplQGy4eFNxzJ/u JZx6GTKSdUH75H17DXnoNwtm4fldpuE7fTM6M= 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=jJPuFFpZ95vlsDORAtj4A2UMb8Vh1SFbejnBdq/GknQ=; b=m3wkUEQsS35LlBosLQqOohc8ezeuUSZljzwkSJF0hJAFckejazdO3LOV1dg2Bc4ZPh +nuX5pNuPlSePo1IVf4Pn0NWKlSw5jo93qJ4/5i486RzgR+cdj+vBLnpgQJoCqAWOSv9 f0I2YDIsxeK3MkDukZPvbeDSGg0vwVvQ8Zd/4J+tlCYzVj/++d70M76qUi0XW6BxhnG9 6Wf8K2elrtEaNiNIYAFT2gjOIrmOH3L1RxD+ey7hKyeN20PIuh5LE2uWkIHvhfh4nYpz P1FcqEJOUB+ZA2K7ZihJrljbHhRxqLcld7TVofUKOvdnCB+eBrjDrd+Z9mjU/U6e7Lfe duGg== X-Gm-Message-State: ALKqPwcJ7DZP56dEWqyAQuBs+KkyjoR3eg35TUdri06TYqnWF4iPpFZJ OmjdG3Fz8OFaGpkqTSTjabbwmvhLOUM= X-Received: by 2002:a63:6742:: with SMTP id b63-v6mr4028101pgc.54.1527122808849; Wed, 23 May 2018 17:46:48 -0700 (PDT) Received: from sameer-ubuntu-book.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id q15-v6sm18428438pgc.33.2018.05.23.17.46.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 17:46:48 -0700 (PDT) From: Sameer Goel To: xen-devel@lists.xenproject.org, julien.grall@arm.com, mjaggi@caviumnetworks.com Date: Wed, 23 May 2018 18:46:20 -0600 Message-Id: <20180524004620.23828-7-sameer.goel@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524004620.23828-1-sameer.goel@linaro.org> References: <20180524004620.23828-1-sameer.goel@linaro.org> MIME-Version: 1.0 Subject: [Xen-devel] [v2 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