From patchwork Thu Sep 17 12:50:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 53791 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id 0771222E57 for ; Thu, 17 Sep 2015 12:52:51 +0000 (UTC) Received: by lagj9 with SMTP id j9sf6801085lag.0 for ; Thu, 17 Sep 2015 05:52:49 -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=n4tF4H5H+zvknUsNl8EFvxC0S3JGfR7cZ6988f19fAQ=; b=HbvRtJ8/4XDak3WGr+Re8BhS9bnxVaqLu1yF9xOXJiZnVBynnsNfM6v+d22x+hAhUS B6VKRkXGYOltkL419gClZBTtR2PSvdzLVL68tUJJeh3CHHvlZj8IO1PMQPBYUDKfpPth Tg1cjZ5UflAqGFhxI/WuSutwH6TWf6zXWh3d3k5LELftOzI6OuOKyZ638aJ1arZcx48c Is/JUuZtDVRJ7n3dmbIRjeohox8mnPmv59lZMX6XoqzHEsW3h9c5Ui3x5YbLzqsTDu3y 1dBQumk2YHNwFaOZrW7MxDcipaUCuDNhEmhyp9ANoajxOs4hzFhv3+RAHywmIE4RFNMA VJwQ== X-Gm-Message-State: ALoCoQkDkwxZ+PWCNQI9CEBQhE85SF1tVECa5KwBiOwFceVrrol9CXFFpCwbdhmcuefQxgLbQ0F+ X-Received: by 10.180.107.167 with SMTP id hd7mr741779wib.6.1442494369945; Thu, 17 Sep 2015 05:52:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.181.101 with SMTP id dv5ls63222lac.94.gmail; Thu, 17 Sep 2015 05:52:49 -0700 (PDT) X-Received: by 10.112.136.201 with SMTP id qc9mr36154951lbb.94.1442494369737; Thu, 17 Sep 2015 05:52:49 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id xh2si2037095lbb.130.2015.09.17.05.52.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 05:52:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbbvu2 with SMTP id vu2so8682080lbb.0 for ; Thu, 17 Sep 2015 05:52:49 -0700 (PDT) X-Received: by 10.152.170.225 with SMTP id ap1mr26890166lac.72.1442494369633; Thu, 17 Sep 2015 05:52:49 -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 w3csp3052018lbq; Thu, 17 Sep 2015 05:52:48 -0700 (PDT) X-Received: by 10.68.219.194 with SMTP id pq2mr70852976pbc.20.1442494368696; Thu, 17 Sep 2015 05:52:48 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id i16si5203176pbq.81.2015.09.17.05.52.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 05:52:48 -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 1ZcYey-0007Ph-Iu; Thu, 17 Sep 2015 12:51:32 +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 1ZcYeu-0007Dq-Jm for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2015 12:51:29 +0000 Received: from edgewater-inn.cambridge.arm.com (edgewater-inn.cambridge.arm.com [10.1.203.139]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id t8HCp5wo025737; Thu, 17 Sep 2015 13:51:05 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id C1E061AE3248; Thu, 17 Sep 2015 13:51:11 +0100 (BST) From: Will Deacon To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 02/10] arm64: proc: de-scope TLBI operation during cold boot Date: Thu, 17 Sep 2015 13:50:11 +0100 Message-Id: <1442494219-6133-3-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1442494219-6133-1-git-send-email-will.deacon@arm.com> References: <1442494219-6133-1-git-send-email-will.deacon@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150917_055129_008846_12C3DB18 X-CRM114-Status: UNSURE ( 8.39 ) 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 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record -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: catalin.marinas@arm.com, Will Deacon 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.217.177 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 When cold-booting a CPU, we must invalidate any junk entries from the local TLB prior to enabling the MMU. This doesn't require broadcasting within the inner-shareable domain, so de-scope the operation to apply only to the local CPU. Acked-by: Catalin Marinas Tested-by: Mark Rutland Signed-off-by: Will Deacon --- arch/arm64/mm/proc.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/mm/proc.S b/arch/arm64/mm/proc.S index e4ee7bd8830a..bbde13d77da5 100644 --- a/arch/arm64/mm/proc.S +++ b/arch/arm64/mm/proc.S @@ -146,8 +146,8 @@ ENDPROC(cpu_do_switch_mm) * value of the SCTLR_EL1 register. */ ENTRY(__cpu_setup) - tlbi vmalle1is // invalidate I + D TLBs - dsb ish + tlbi vmalle1 // Invalidate local TLB + dsb nsh mov x0, #3 << 20 msr cpacr_el1, x0 // Enable FP/ASIMD