Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3528535pxf; Mon, 15 Mar 2021 11:34:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz53eMjl+PaCccF863aj4Eh8hPdDF0XKzCQDjDNbduSVBKDxBeyhD4+wEiHvlG9MDqwk6Of X-Received: by 2002:aa7:d1d0:: with SMTP id g16mr15027277edp.358.1615833248692; Mon, 15 Mar 2021 11:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833248; cv=none; d=google.com; s=arc-20160816; b=n3YTuryLdQwfJucxr4Bu2Oxf2PeRCJnEupiJwlmKMHLpue4Bd3sPrSPtAb1z/XznQN /0DaPbMpwqC+66lExUcDCvXSOJc3ihv36iux9p2ZNQuizFcL5zQ5SyaLm5zd68T6lDy/ agnXuYR0s4DedDBqicq5ykg4xfEONsa5xtfx84+HHCwYtVjVzDqlCiy6NfakCFuq9fh+ NKb8h/p19vx3JztTT70CVCX8DiiY9mmtfOSscE29t4r6PTdM59qjVNm230ht2lU8IyHa A3OBc0o2ICXwhZPnVo3rwM7Hme0m+prb1xzyjnPZiNk1hGZtRD6s+q+7LriK//bIN+ej 0dQA== 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=yvFMD5ti8nvSoAgkZSLSYy2kIJPUa5pgp2TtTMaN1fA=; b=uSzqstEYf2c16QvV6I+y5Wx7o4OttTlIglJI6C0mT6yonZ325lCgniO2tkM2UU9qC2 JX1EnWEt5fxLbDYRUZcm8jASIxEJ8TZwjohaO461uQdRSnnkzcE3ZTRdGLPDnsTCkoEw LsUSx1Z+GwWxqAHd4SWfAQHtqZvC3flwGODZUtOkmT/3JLusXqUSr1Zf1tZvEt7BaIFb O+c7OOXq7XUR08mdOF3+SPvJNGN7mNTZUTOxgE+fzT0Rn6rVQ/un/cClisYyH7tFDRA+ DW21vK6/PH8EttRoga+SfNig/SxCrJ1nx1wy7QHH18bhjef3+NWfvW3pbcKXacZbEFxs 5K4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IQLq+ZV4; 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 bn9si11439406ejb.23.2021.03.15.11.33.46; Mon, 15 Mar 2021 11:34:08 -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=IQLq+ZV4; 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 S238997AbhCOOpl (ORCPT + 99 others); Mon, 15 Mar 2021 10:45:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:52254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231921AbhCOOEX (ORCPT ); Mon, 15 Mar 2021 10:04:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E1E0564EEB; Mon, 15 Mar 2021 14:04:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615817059; bh=zg/ODY4xgrUUljpz1wfqqqExAwX4/xT6tnck+U0eMes=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IQLq+ZV4ACQjwY3fUoP9/I6rAFt9mxpNGJcN0FNeS/sx197qRlYIPZuqoAN5YfsOv IzrSWArYTamRFHjfqQgUjWZQMSjgJVAejVGRLx/UjdRKWIIhth/y2ctImsaTp0ac5s f5JktvRgUwuhVaP7f8ukEscvWXvp0eWyRJyYPuOQ= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiri Olsa , "Naveen N. Rao" , Segher Boessenkool , Michael Ellerman Subject: [PATCH 5.11 280/306] powerpc/64s: Fix instruction encoding for lis in ppc_function_entry() Date: Mon, 15 Mar 2021 14:55:43 +0100 Message-Id: <20210315135517.139145957@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135507.611436477@linuxfoundation.org> References: <20210315135507.611436477@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: Greg Kroah-Hartman From: Naveen N. Rao commit cea15316ceee2d4a51dfdecd79e08a438135416c upstream. 'lis r2,N' is 'addis r2,0,N' and the instruction encoding in the macro LIS_R2 is incorrect (it currently maps to 'addis r0,r2,N'). Fix the same. Fixes: c71b7eff426f ("powerpc: Add ABIv2 support to ppc_function_entry") Cc: stable@vger.kernel.org # v3.16+ Reported-by: Jiri Olsa Signed-off-by: Naveen N. Rao Acked-by: Segher Boessenkool Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210304020411.16796-1-naveen.n.rao@linux.vnet.ibm.com Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/include/asm/code-patching.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/include/asm/code-patching.h +++ b/arch/powerpc/include/asm/code-patching.h @@ -73,7 +73,7 @@ void __patch_exception(int exc, unsigned #endif #define OP_RT_RA_MASK 0xffff0000UL -#define LIS_R2 0x3c020000UL +#define LIS_R2 0x3c400000UL #define ADDIS_R2_R12 0x3c4c0000UL #define ADDI_R2_R2 0x38420000UL