From patchwork Thu Oct 15 15:04:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 55036 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lf0-f71.google.com (mail-lf0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id 768C32301F for ; Thu, 15 Oct 2015 15:06:21 +0000 (UTC) Received: by lfbe131 with SMTP id e131sf3807396lfb.3 for ; Thu, 15 Oct 2015 08:06:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:cc:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=4EZve9s3W8Tazd1GpumrBM11ogAcL1O2BcL3RUM8Y70=; b=iWcB2FdC44vRdu2tlxseBaUtHQCLoYfVLlGF50IhAWnGLkc16vjstU9UIWWG+wk27r M5njVhx4n/o2dyj2XRIAutpPhlDFpJn16buzj19AeiPcdx/sov2yJhEOn7+2sjRkCVVm 9awTBtmT3V0rl5jMCnjde8kcJYCdpNv5gPtLXY7b08NEDoWMaT9zkqYX3SkSgjxnyDPK hgMob/T5kBlGr6KUHNAUsJcf7yx+iVc0lXkOz+FHc8RSPghEHjXtmtOKDPXViSPLtNQR lS2G/OePcuZF1bGsDV+YBhGtGSCsCfiuuJ9Fu6oqwGCQt2a0h5I4kfbuQUXVJCsxLFQp rGmw== X-Gm-Message-State: ALoCoQm9M9o3iXNET/DTzu8WHxhBK/ct3QdpuIhmgWUQ5W5IFg72DwTwdgn8ArINFX8tuaO5Rso5 X-Received: by 10.180.106.197 with SMTP id gw5mr2399244wib.7.1444921580085; Thu, 15 Oct 2015 08:06:20 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.147.66 with SMTP id v63ls178675lfd.22.gmail; Thu, 15 Oct 2015 08:06:19 -0700 (PDT) X-Received: by 10.112.146.231 with SMTP id tf7mr4890079lbb.103.1444921579889; Thu, 15 Oct 2015 08:06:19 -0700 (PDT) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id ja1si9427942lbc.40.2015.10.15.08.06.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2015 08:06:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lffy185 with SMTP id y185so31345368lff.2 for ; Thu, 15 Oct 2015 08:06:19 -0700 (PDT) X-Received: by 10.25.77.133 with SMTP id a127mr3221245lfb.19.1444921578435; Thu, 15 Oct 2015 08:06:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp689233lbq; Thu, 15 Oct 2015 08:06:17 -0700 (PDT) X-Received: by 10.60.40.66 with SMTP id v2mr6166038oek.12.1444921577548; Thu, 15 Oct 2015 08:06:17 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id i9si7719880obe.79.2015.10.15.08.06.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2015 08:06:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zmk5g-0008P5-8d; Thu, 15 Oct 2015 15:05:12 +0000 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zmk5J-0006xW-In for linux-arm-kernel@lists.infradead.org; Thu, 15 Oct 2015 15:04:50 +0000 Received: from edgewater-inn.cambridge.arm.com (edgewater-inn.cambridge.arm.com [10.1.203.122]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id t9FF4MWr012668; Thu, 15 Oct 2015 16:04:22 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id CD0B71AE3449; Thu, 15 Oct 2015 16:04:25 +0100 (BST) From: Will Deacon To: iommu@lists.linux-foundation.org Subject: [PATCH 5/6] iommu/arm-smmu: remove redundant calculation of gr0 base address Date: Thu, 15 Oct 2015 16:04:23 +0100 Message-Id: <1444921464-14895-6-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444921464-14895-1-git-send-email-will.deacon@arm.com> References: <1444921464-14895-1-git-send-email-will.deacon@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151015_080449_983262_BED0AD94 X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-6.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [217.140.96.50 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Cc: fabio.estevam@freescale.com, jroedel@suse.de, marc.zyngier@arm.com, Will Deacon , tchalamarla@caviumnetworks.com, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.deacon@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Since commit 1463fe44fd0f ("iommu/arm-smmu: Don't use VMIDs for stage-1 translations"), we don't need the GR0 base address when initialising a context bank, so remove the useless local variable and its init code. Signed-off-by: Will Deacon --- drivers/iommu/arm-smmu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 9aadf36a0747..7c20a68b5a95 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -709,9 +709,8 @@ static void arm_smmu_init_context_bank(struct arm_smmu_domain *smmu_domain, bool stage1; struct arm_smmu_cfg *cfg = &smmu_domain->cfg; struct arm_smmu_device *smmu = smmu_domain->smmu; - void __iomem *cb_base, *gr0_base, *gr1_base; + void __iomem *cb_base, *gr1_base; - gr0_base = ARM_SMMU_GR0(smmu); gr1_base = ARM_SMMU_GR1(smmu); stage1 = cfg->cbar != CBAR_TYPE_S2_TRANS; cb_base = ARM_SMMU_CB_BASE(smmu) + ARM_SMMU_CB(smmu, cfg->cbndx);