From patchwork Tue Oct 6 17:46:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 54553 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 488B722F05 for ; Tue, 6 Oct 2015 17:48:44 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf44521587wic.1 for ; Tue, 06 Oct 2015 10:48:43 -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=riyKgQ39Gu+AtMPQhwfH3Fk6CK/aP8kbP3uFJCBrVpU=; b=GM6KbGX+u1gxz6KoCru0uoKc1jhHZr1HDy44Swv6UcFBrUVkaZdAUMIWN7GirufwLl fBzad9HkcAeWSBphenIzdSQZcPYz8yI2fhqAZVJ9pufTYodrKOwF0XUArxpxJvdzzWeJ qxH8qtdeqKNoJ47X0vPBC6pkzCwpLD5qpByc9dUDsoa7J+5qnnWAfbm5w0B8F3/73cJI PkdJiC7k2L43Bg4+Ap19ciRMMGI+qLdfGSanpppWJalEpI/Erajn4U8JVnnEJ2RWTmC/ eOenamGLoOb25vI9tPYlYJznKrvelRgBZGh0G0s3ar/QXk8rNHaOfd17gS/rgfO7ORCI su3g== X-Gm-Message-State: ALoCoQluuuCLTok14pPMULNOXnGrGoBXskZ+TrJx8HGuKSJvm8rabjMM7Ad9tsb/EpBD3NPBgOsb X-Received: by 10.112.145.3 with SMTP id sq3mr6083907lbb.7.1444153723580; Tue, 06 Oct 2015 10:48:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.211.205 with SMTP id k196ls630581lfg.53.gmail; Tue, 06 Oct 2015 10:48:43 -0700 (PDT) X-Received: by 10.112.16.67 with SMTP id e3mr15048004lbd.5.1444153723394; Tue, 06 Oct 2015 10:48:43 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id k186si21797328lfb.81.2015.10.06.10.48.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Oct 2015 10:48:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbcao8 with SMTP id ao8so80962835lbc.3 for ; Tue, 06 Oct 2015 10:48:43 -0700 (PDT) X-Received: by 10.112.199.137 with SMTP id jk9mr15530233lbc.86.1444153723282; Tue, 06 Oct 2015 10:48:43 -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 w3csp1985409lbq; Tue, 6 Oct 2015 10:48:42 -0700 (PDT) X-Received: by 10.194.92.166 with SMTP id cn6mr38028479wjb.6.1444153722676; Tue, 06 Oct 2015 10:48:42 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id v20si39648454wjq.123.2015.10.06.10.48.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Oct 2015 10:48:42 -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 1ZjWKU-0008AI-JW; Tue, 06 Oct 2015 17:47:10 +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 1ZjWKF-0007on-AM for linux-arm-kernel@lists.infradead.org; Tue, 06 Oct 2015 17:46:56 +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 t96HkVWr001365; Tue, 6 Oct 2015 18:46:31 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 2D5C31AE0FD7; Tue, 6 Oct 2015 18:46:32 +0100 (BST) From: Will Deacon To: catalin.marinas@arm.com Subject: [PATCH v2 02/10] arm64: proc: de-scope TLBI operation during cold boot Date: Tue, 6 Oct 2015 18:46:22 +0100 Message-Id: <1444153590-24173-3-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444153590-24173-1-git-send-email-will.deacon@arm.com> References: <1444153590-24173-1-git-send-email-will.deacon@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151006_104655_859641_0C5917AE X-CRM114-Status: UNSURE ( 9.47 ) 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: Will Deacon , 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.217.180 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 Reviewed-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