From patchwork Fri Jan 24 09:26:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 232816 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC513C2D0DB for ; Fri, 24 Jan 2020 11:42:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 93844206F0 for ; Fri, 24 Jan 2020 11:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579866147; bh=aact3I6c+oZm65CsIWErj5LOzFRreHh98x1rQVOP7rs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=kRqd/KAcU8xxFqRrAP+yFzi/D1Vw4/bpqfJEBwGTObTLgUZlyFqO8QaqonqqEj+e2 sOJ8QRxeAMkqoZIjSe+6QH3d8YxzD/ordO0AhS5AkmrG5qavI5AzQ2KnX+ZoHHdUFd K6ALb6nUnLmlnA9N+GqRivifmd71BRXyIwDtCstQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389011AbgAXLNF (ORCPT ); Fri, 24 Jan 2020 06:13:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:49344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389425AbgAXLNA (ORCPT ); Fri, 24 Jan 2020 06:13:00 -0500 Received: from localhost (ip-213-127-102-57.ip.prioritytelecom.net [213.127.102.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B365320708; Fri, 24 Jan 2020 11:12:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579864380; bh=aact3I6c+oZm65CsIWErj5LOzFRreHh98x1rQVOP7rs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C4BnjheDEgQSmfu8fzCC2N5agLslB50tn+j5O13kQ1/rKvjUAejcIKCksBVyc8VeD FUFOEn2wBE3BHNGEfz/E3qd1S/cIMvl/FAJ8GMCECxrNF9H+Zuy98k8B0pAESdvYde 90C+ANGDyvuY32x0W/Jf8Sl0fdx9bRdVtiKEyaXY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vladimir Murzin , Marc Zyngier , Russell King , Sasha Levin Subject: [PATCH 4.19 237/639] ARM: 8848/1: virt: Align GIC version check with arm64 counterpart Date: Fri, 24 Jan 2020 10:26:47 +0100 Message-Id: <20200124093116.503286821@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124093047.008739095@linuxfoundation.org> References: <20200124093047.008739095@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Vladimir Murzin [ Upstream commit 9db043d36bd379f4cc99054c079de0dabfc38d03 ] arm64 has got relaxation on GIC version check at early boot stage due to update of the GIC architecture let's align ARM with that. To help backports (even though the code was correct at the time of writing) Fixes: e59941b9b381 ("ARM: 8527/1: virt: enable GICv3 system registers") Signed-off-by: Vladimir Murzin Reviewed-by: Marc Zyngier Signed-off-by: Russell King Signed-off-by: Sasha Levin --- arch/arm/kernel/hyp-stub.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/kernel/hyp-stub.S b/arch/arm/kernel/hyp-stub.S index 60146e32619a5..82a942894fc04 100644 --- a/arch/arm/kernel/hyp-stub.S +++ b/arch/arm/kernel/hyp-stub.S @@ -180,8 +180,8 @@ ARM_BE8(orr r7, r7, #(1 << 25)) @ HSCTLR.EE @ Check whether GICv3 system registers are available mrc p15, 0, r7, c0, c1, 1 @ ID_PFR1 ubfx r7, r7, #28, #4 - cmp r7, #1 - bne 2f + teq r7, #0 + beq 2f @ Enable system register accesses mrc p15, 4, r7, c12, c9, 5 @ ICC_HSRE