Received: by 10.223.185.116 with SMTP id b49csp2325128wrg; Thu, 15 Feb 2018 09:52:20 -0800 (PST) X-Google-Smtp-Source: AH8x2245k0+0v8lIx+2Rp3UN4qdabHfB1Treh38wz+62K1fnkp8FRDx2fNxplBYuS3AeovQ6VPjh X-Received: by 10.98.37.198 with SMTP id l189mr3417450pfl.103.1518717140372; Thu, 15 Feb 2018 09:52:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518717140; cv=none; d=google.com; s=arc-20160816; b=D3eXk5+7Kadd7zGU6wWB6y7VzQXX3aMbKm2Mr8SuWmHC45y2OS3cuoPoTPhK9hr2jA DxeS55ekYpE4glBAWyVss15ZhR+y9MH2ujt1MECu1THl8ypKkCsn2yljjIQEjoQxAebN w/nN8v+K2SfxpT5bWkvGA3WfjM2f9ZYWjvOOwz6g7l14bdKxZbJ/g3WA/sPj0YewiLrZ iC92PgJbHqblnmsTsADWuKJTr/DYHV/8ThrZpWAhTGp7KSqbtHV/WVlxTE+ecoBYFB6w l6G8zXkGk2BrTz3ZNHjpS8wXUCRvO5pzHJxro9irkpHc7NhpVy4hrkJIxSvILWFpp+Te EYPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=YF9/rmOsdMn9gqivdLIMl2ScPRUjD2OIu4OtpuC5JQk=; b=iy66aEPmnwzrqLLCGj9GB/htRz7XptNLimjM0VbV8JAZSSpnO9Pq2b+jWWxSQXJvnE GdLMnQgT2z+o/MkauTMw7BHqLfdPcBfhyiWarLNrMxgaV9j+Ae/1lCPP6MYPS98JUC88 6x+dV0SLvx+HUu9Vsrr0NJWpCBj8sHJYdm8XqiNEzW2UPdvtCnWoLPTHrfnsTRy8ieFP gJMaJHoxXxhAw52/eSI1mz6DoiJj6U5qsCYA+W8gpfSRlj29RygUctsS05bNBT0N3w3a 1mLUWyIvlvhyAPeZpDqfY4ReEcbA1GtI75/SK+WVpl7mj6d/Yfc2VB3QapFZznLQT/85 xVhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si1316725pgp.421.2018.02.15.09.52.04; Thu, 15 Feb 2018 09:52:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1165737AbeBORvE (ORCPT + 99 others); Thu, 15 Feb 2018 12:51:04 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:55196 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164258AbeBOPan (ORCPT ); Thu, 15 Feb 2018 10:30:43 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8EEC11149; Thu, 15 Feb 2018 15:30:42 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Rutland , Laura Abbott , Shanker Donthineni , Will Deacon , Ard Biesheuvel Subject: [PATCH 4.14 027/195] [Variant 3/Meltdown] arm64: mm: Rename post_ttbr0_update_workaround Date: Thu, 15 Feb 2018 16:15:18 +0100 Message-Id: <20180215151707.113537608@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151705.738773577@linuxfoundation.org> References: <20180215151705.738773577@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Will Deacon Commit 158d495899ce upstream. The post_ttbr0_update_workaround hook applies to any change to TTBRx_EL1. Since we're using TTBR1 for the ASID, rename the hook to make it clearer as to what it's doing. Reviewed-by: Mark Rutland Tested-by: Laura Abbott Tested-by: Shanker Donthineni Signed-off-by: Will Deacon Signed-off-by: Ard Biesheuvel Signed-off-by: Greg Kroah-Hartman --- arch/arm64/include/asm/assembler.h | 5 ++--- arch/arm64/kernel/entry.S | 2 +- arch/arm64/mm/proc.S | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) --- a/arch/arm64/include/asm/assembler.h +++ b/arch/arm64/include/asm/assembler.h @@ -464,10 +464,9 @@ alternative_endif .endm /* -/* - * Errata workaround post TTBR0_EL1 update. + * Errata workaround post TTBRx_EL1 update. */ - .macro post_ttbr0_update_workaround + .macro post_ttbr_update_workaround #ifdef CONFIG_CAVIUM_ERRATUM_27456 alternative_if ARM64_WORKAROUND_CAVIUM_27456 ic iallu --- a/arch/arm64/kernel/entry.S +++ b/arch/arm64/kernel/entry.S @@ -255,7 +255,7 @@ alternative_else_nop_endif * Cavium erratum 27456 (broadcast TLBI instructions may cause I-cache * corruption). */ - post_ttbr0_update_workaround + post_ttbr_update_workaround .endif 1: .if \el != 0 --- a/arch/arm64/mm/proc.S +++ b/arch/arm64/mm/proc.S @@ -145,7 +145,7 @@ ENTRY(cpu_do_switch_mm) isb msr ttbr0_el1, x0 // now update TTBR0 isb - post_ttbr0_update_workaround + post_ttbr_update_workaround ret ENDPROC(cpu_do_switch_mm)