Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3526088pxf; Mon, 15 Mar 2021 11:30:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6xkAyOWDOy9PV6Fw3OZj6klTdFewqYV67igf4ooUAICsbg8uU+SbsEjl1pUfOxd09tzLK X-Received: by 2002:a17:906:30da:: with SMTP id b26mr25136724ejb.376.1615833052676; Mon, 15 Mar 2021 11:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833052; cv=none; d=google.com; s=arc-20160816; b=efU6A9RwPYNrX3//aHXb2+Dr/9aEUw3HHe+YlHawAVYkSXRYDFEZruQD7bM5ePtJNP CaEtjhwEOPmK5pm+UTzvGJ31Q9bXIbgmrchiR9TTWLiuC0Ng3Vl/idHSSErFuYTo0MF0 EbN9WcspNEFvp6VowHLtzkhB+N2rzSzuW+3nlXBqqG5bjomDxHor2I3AjXGrvKEDAaxX pNCiODRW+3cA3ZlYmfYTWrrNAQ+hrQT6rEIoJQE1SMTpK7eRcbLg9fyA0CT/K0ZjVImH aUlQ6Xr22WQsSrJ1DU7p2Gk3aGEUDvBclVuYbA9EqUSCD8O6BVOY+v2WEjuhX6z3+NhU kMxg== 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=eIaVse02FdoJRpptgf7Hfywp9V0uEkWq8vEJb9fhGsw=; b=MvRYuv41s4JCxEb9IVBpJB/pWVOKVNHX6PBsgOUJsa+ZjTpoBw49gjGpHXzpK7QFKD K3i1ZCm1dubpurOND0KNq+AIBKUQY/atHGIJ24GyxwBG1cf0v1uStxKs7AXcQm3Eal4U dMeH6cL0aTksa9rKUNuM3KBsDOzrIHXpgl4Nvn7/tJjVKYBXos/uKH5BXyP5UKpNBh0V 27nO3QBZnrjgxVNYw9sDfR3h3nIMdRJ0ggIPiQ69Lr9HsKoo3xnjFnkynoKRLjCc7KD7 Odal446w8+Le23UBVoWJ/Y+VBjFLj7aqrZ1ZTOt3FfrXB6sqJek3UtaMSYS1Hw7bsM0f cAhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2Pp9UI0v; 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 i13si11007635ejy.93.2021.03.15.11.30.30; Mon, 15 Mar 2021 11:30:52 -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=2Pp9UI0v; 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 S240339AbhCOOhj (ORCPT + 99 others); Mon, 15 Mar 2021 10:37:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:36788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233348AbhCOOBc (ORCPT ); Mon, 15 Mar 2021 10:01:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E3E0A64F9E; Mon, 15 Mar 2021 14:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816863; bh=w19iNusPoitUn5fbWB0PJnSx4kR1jCWytmvjp6w8ZTM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2Pp9UI0v6QV14QnkD0DpR4HaIix/SahGTLPE4HemiaNQeMYMIfvFyWn60aAQ4LQ0Y 5o8IAQEQnJjndWAKUM8RmiEQCssNOtAkRuRHyhwYGdVAkf+S+pfmRfv38keJZyIjMf VWg+aemoE3DESDtRLX11fmCORwHseOH5Cr54hE4w= 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.4 158/168] powerpc/64s: Fix instruction encoding for lis in ppc_function_entry() Date: Mon, 15 Mar 2021 14:56:30 +0100 Message-Id: <20210315135555.544604424@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135550.333963635@linuxfoundation.org> References: <20210315135550.333963635@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 @@ -72,7 +72,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