Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1347659pxf; Fri, 19 Mar 2021 05:23:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6bg6ix/Gcdjog/kL6EYE03bN/VjBXHao1n3IRIb7YurpNPa77u4TLJYT83onWIhw0aXPz X-Received: by 2002:a17:906:b752:: with SMTP id fx18mr4205160ejb.128.1616156608443; Fri, 19 Mar 2021 05:23:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616156608; cv=none; d=google.com; s=arc-20160816; b=IrRP4qhRrZYoWcfn/2uCUQBXnLJpEHKJ4W+k71BR9Xzt+2yG0a+K68fqdc+PfFhV6x 8Fcrn09JO1i2vV424z3KIm/pMRdtwFYQEdHR3rlwb8v+1PrLD2ZkJ33p6sSiiNBVPUVZ aWy86qFNLg2h5Ei9iT5Snr/9ZK6lpwFOtO4qzvk5Yhs/dLxNUrxPkC5F03b7y+AhWG9a Z9uf1uQFNbTuhMQcp63xf6AisJN3D4JpfJlx4VojFlN9TyKbQMSs1dbqJhduZYTNbTau WqT+M/HP2yxXe3iUPK/PesVQi5I71WG7o0ZyK+4hMWR9paTckZ67/q7AJbpyENNa137D +HCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aqe24kO95jD1QH5RnSWoA/DgQH0WkMT2cPhNMjVjwpg=; b=0Jui1OqhkJL+iAxGFhoFnu7H6dWd2OjZmF4cKugzAufcmRBsC2U++/wS1xFhIEr5q5 RDG01zIWIsV6KEb7U6GUEXr8GHTZLquuaObq74NC4opfBzsIy0uyQ/PLwHNq5WQZna3o sMfZ9dz+d+Z1e+V+1Lm7y8ShOqNBE2/B0LEP/rhflAICFobZg5yEVvVaERaVWA8ui9s1 W7JqvEXDvtejZ3YFmlTa2WX0JUWr/9xDU6edRzchO/kC6lAdrMXG0OpIz1GDYVKp0UA7 gpNiU4y5OoLGW1XWaB57fGUHLau/LYE3fQn1mWVBJW1SckNJapvzdxxUpvtnNad3JZbq G7og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tqM3K4M+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si3969949edr.46.2021.03.19.05.23.04; Fri, 19 Mar 2021 05:23:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tqM3K4M+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231601AbhCSMVl (ORCPT + 99 others); Fri, 19 Mar 2021 08:21:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:59570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbhCSMVG (ORCPT ); Fri, 19 Mar 2021 08:21:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C8FB064F70; Fri, 19 Mar 2021 12:21:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616156466; bh=Xcc8nWtyMx5sPP+4P1k1eqlJ2Cjeaazg4/FReZxbHAA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tqM3K4M+hTmjUA2ELWSEyFexKQhjxF9kp2CTGkXLaO1XuVbzwsy1wcssAK2+2pSNp HA8e/dc5j0Ltdhn/WSgyvtmId2ROL3NJ+oXd33zoDzRD3Pbmu8xlIb0VZDl4MrZvP5 jle52on9M6c0UGAJ8EBMi5fducJAJnQ3Hnif0TZY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vladimir Murzin , Will Deacon , Marc Zyngier Subject: [PATCH 5.11 25/31] arm64: Unconditionally set virtual cpu id registers Date: Fri, 19 Mar 2021 13:19:19 +0100 Message-Id: <20210319121748.016916968@linuxfoundation.org> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210319121747.203523570@linuxfoundation.org> References: <20210319121747.203523570@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vladimir Murzin Commit 78869f0f0552 ("arm64: Extract parts of el2_setup into a macro") reorganized el2 setup in such way that virtual cpu id registers set only in nVHE, yet they used (and need) to be set irrespective VHE support. Fixes: 78869f0f0552 ("arm64: Extract parts of el2_setup into a macro") Signed-off-by: Vladimir Murzin Acked-by: Will Deacon Reviewed-by: Marc Zyngier Signed-off-by: Greg Kroah-Hartman --- arch/arm64/include/asm/el2_setup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/arm64/include/asm/el2_setup.h +++ b/arch/arm64/include/asm/el2_setup.h @@ -111,7 +111,7 @@ .endm /* Virtual CPU ID registers */ -.macro __init_el2_nvhe_idregs +.macro __init_el2_idregs mrs x0, midr_el1 mrs x1, mpidr_el1 msr vpidr_el2, x0 @@ -163,6 +163,7 @@ __init_el2_stage2 __init_el2_gicv3 __init_el2_hstr + __init_el2_idregs /* * When VHE is not in use, early init of EL2 needs to be done here. @@ -171,7 +172,6 @@ * will be done via the _EL1 system register aliases in __cpu_setup. */ .ifeqs "\mode", "nvhe" - __init_el2_nvhe_idregs __init_el2_nvhe_cptr __init_el2_nvhe_sve __init_el2_nvhe_prepare_eret