Received: by 10.223.185.116 with SMTP id b49csp2177619wrg; Thu, 15 Feb 2018 07:40:56 -0800 (PST) X-Google-Smtp-Source: AH8x226pj0uJPQ5SPz5Cbf2wgmD9NokjRLJ5keUsWI2YURpY4rJPxmLI3cqUzYECRus3pDPsHuMO X-Received: by 10.99.60.8 with SMTP id j8mr2537413pga.209.1518709256073; Thu, 15 Feb 2018 07:40:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518709256; cv=none; d=google.com; s=arc-20160816; b=CRxxPaAHdgxgJ2nryxMdtOmzuvmWDQDN32tGG8mRnDwEqasISOzsJvY+42KyPReKKZ jeCU+e4OPHnZiFU1zBghpKf5sVZWP16L3XFu0SnQk+SQIRYYW1mpfWqUtS72g628ij97 MPv86CH5s5PJ67RkUvYtsGbrYUTTK4hgeabhGuLmIQ6PrRsNTBl+XR00kC9fr02ie5Cn MOnLFRoezCfN0Km59akLh/wjFUO4tvMIqnePtCAbeR4hHmWe/5ITtNw9iMUJNxao2w9t +RTRHAZ854JEud3AwXi6/VOA54XfNxealTM2/6FZ6Y7jaMYhaMHkzJ6DxTpx65mHGiI9 hd5A== 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=YQyMFrUOtlsFMwijZi9ciCFMCanxv5GNsqifGiwcRbo=; b=O7lHpZBMQc4UA5tE725JxJbN+6aV1iBpY/s450Erc/YbSzzw2wRXdyoiJOZ3+wcHwz YseLHapQT9FIFqXksEKtPjPDe3X3T4XGOFD1Jj+RmoLHQXKNxvjKJ21PNJ51koXX8vjm 9XFcjj8Z71MpXuRBwK0xTqCTKbUygD+Usd8LXeTYtxtwhdWPI+a9xx1Jb1NXxr8B5Hx0 Vs/N4deMdZbA1bTcpPQMG4Vt+zcEeoeYXCHCPAXbZcjT4wkBMh8iIEP9vNEFq1iz/1/B y9TqRd68H7Bkb8ZqOKF1t0qG1bpa7zayat/wKD33psvRrlOiqudgTbEbUug05CkSwswi nKlQ== 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 a12si2870051pgv.672.2018.02.15.07.40.41; Thu, 15 Feb 2018 07:40:56 -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 S1423539AbeBOPja (ORCPT + 99 others); Thu, 15 Feb 2018 10:39:30 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:59738 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423502AbeBOPjV (ORCPT ); Thu, 15 Feb 2018 10:39:21 -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 526B110F0; Thu, 15 Feb 2018 15:39:20 +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 Subject: [PATCH 4.15 019/202] [Variant 3/Meltdown] arm64: mm: Rename post_ttbr0_update_workaround Date: Thu, 15 Feb 2018 16:15:19 +0100 Message-Id: <20180215151713.882305520@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151712.768794354@linuxfoundation.org> References: <20180215151712.768794354@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.15-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: 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 @@ -477,10 +477,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 @@ -257,7 +257,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)