Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3529577pxf; Mon, 15 Mar 2021 11:35:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqkMIxUe9OVLlNPLjBaLQkQUUjoiOH7510/yQJVfHyr15SoDgLHd2pPFRRx1U4IqzkE0TJ X-Received: by 2002:a17:907:20c7:: with SMTP id qq7mr24511344ejb.528.1615833337100; Mon, 15 Mar 2021 11:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833337; cv=none; d=google.com; s=arc-20160816; b=XTHNONS4LiE8P/BwN+OhgZDgI9l2HujTWRMGTd9SHpJlgcUwIyZzs5vy8aVBp0fDDS t8bDnGCcsS/JXk/h7K1JtkhQXK6KsuP8FMpl508iDRpHaxgBEqTLQlLsZCZxbr3k6zyA rZnpkmORfO0H5UUq5u18CfLvkB1TMG8DH+Rvnxiud9zHHqXyVxX+ipk+KEf9VNizezTu DH+rSzRLbCHMO0tGYKiMMTcKgmZbANwa41HUnm1KwTO7VyEr52slHdNFD+c72OfUENlP +ujylPsPzNQT6OyvhLGqldrCKN6SynlxrEn3vRcwV0FLgo+nNWVwPUTMrEYtlIFUBhB3 rDQg== 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=ffbcaQin7RgkLtuoTxeHMNIystOjZnPXzzeJlYHViVxJjAGP4ChyJqau4zMtVwvA2m 3NAzh9tWOiN3lNp05VFyIK27pTDcJaGvotiIW+u8lt+Ov7sSIG68rQtcXEV+SFOVN8in BFHbRdTI8333q6ZnarVbZUpEP5CCTd3oYc+yBF+mAPy1i5fevo40kfWAv5FbZl7EkCg0 3oEOml99vfVfR+2wrVg1tFm6rK8dyzJat+i5E1WfLb3oCrQONWkfqghi2x+rVknPceiR ZzfmCDWzdbHeyYBzlXAlFuX1rYbwyEvDxQEPOo06mj28P2T+Az9g52i3H/3BmuM0gFAs 372w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=q+3lO2f6; 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 z17si11109428ejc.207.2021.03.15.11.35.14; Mon, 15 Mar 2021 11:35:37 -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=q+3lO2f6; 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 S238940AbhCOOpZ (ORCPT + 99 others); Mon, 15 Mar 2021 10:45:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:51884 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234544AbhCOOEP (ORCPT ); Mon, 15 Mar 2021 10:04:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AF70564EF1; Mon, 15 Mar 2021 14:04:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615817055; bh=zg/ODY4xgrUUljpz1wfqqqExAwX4/xT6tnck+U0eMes=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q+3lO2f61ep3rqdUF0qg1h1hDkuseDTlALzEPJy9a7e4l/EyfJVXH33P2eeqTEzLd 7QHShTk3gZcLtUqnRf/YZv/1iBO2fBnEGCgTNAaCwJa9Qe/DFLB3ws62+V49S6TXI/ 30jYnD2GZWrT7W4Tg88imoRtHnXkv/pYEwsnu7Wg= 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.10 265/290] powerpc/64s: Fix instruction encoding for lis in ppc_function_entry() Date: Mon, 15 Mar 2021 14:55:58 +0100 Message-Id: <20210315135550.972155787@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@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