Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9112725pxu; Mon, 28 Dec 2020 06:59:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNpabN39i4KF6rl2bEP/dRVn4Lhao6kK6pmX7baHXdrqjQp6hzVYmNAikedjDxi47cEmQk X-Received: by 2002:a50:fc9a:: with SMTP id f26mr41704745edq.255.1609167573585; Mon, 28 Dec 2020 06:59:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167573; cv=none; d=google.com; s=arc-20160816; b=lQieOVOUx2uImu2CN333pyGwtaa1G9JA23Xfvs45UnhrqifFofsaBl7vwV22WE229k xCquYoVTjS8orBsB+pXOHntSt10E916y/iQ6NFMIrJ2siUXlW1T/aZYq1xpLDL2fbFrd 6ir8R/Ny1kfFdMp4d8tdubywbbmhfM+PBVcVVFLCOxpZDRLtuJ3+1Bv5pP9lVVfJc6TW iRyNa95iUgElD3dnWruwd4rEth+ODjWwb1JRc8pigOVnR24dFiF8Xcshr6F+k4GXDtSb 0nX6t8r0hvNYTrDAJZ+DN8MzYx7XRmgZK/EagVY9UIQZ81h8cLcKOHhkexceKjoOtKcu YJgg== 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=H+KCDZjSNXs+X/1FDnsArfBJ4ZAjn6VluFiyEYLImXE=; b=1EBfw/9MpNlSaGKMagK4HCtVLpfkzP41VLyT5XEt2kty6M+p6e/vMKMmMzNciLg/kd A1rxBZk22Zo5yMLHTm3V6n6VPgyMGFGd7+vjL9VI58UCosOpYFUmv0UqOye9pYGy2NKU VslJGstqQWaL6p9hG3F8zVeHOcDH8cLgzN+/whydfL9kaIiKwPob16lK1cfJVZ2luBRY DUhk57V32vyzWkdYttEa6wRTMON27U+AvWsbJQQ9Xs0mdTEp76BoXLaCw+JWcICAIX+9 z0erywNopL0RLLDRd5ztio+yUaSzDoAFZtCPXcYGmblr6bhE6A67VZUYMtMGyjN9Qh8O g3hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EHFr7Mlb; 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 o23si19305166edt.543.2020.12.28.06.59.07; Mon, 28 Dec 2020 06:59:33 -0800 (PST) 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=EHFr7Mlb; 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 S2408037AbgL1Ox5 (ORCPT + 99 others); Mon, 28 Dec 2020 09:53:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:52078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441495AbgL1ORp (ORCPT ); Mon, 28 Dec 2020 09:17:45 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A81F6224D2; Mon, 28 Dec 2020 14:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165050; bh=G6il93/NNmksArCwy6xVAv30XGUnSnOY25/djLLRToA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EHFr7MlbvGE9PJSNhbZv90OfAsYQ3vFgS8T3EmH0yAwJjW1TNH94IUmzJAFuRwCR/ XW8SP2BJJlQ6rjGUgV1UhbT+wJmlP0RBD7ANXK8vgF4nhXtGIyBvtPXEBf+2/muVFn Jwa5nmh/1axpUactsuJ+IJKUBaXnRfztrMGYtVao= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ravi Bangoria , Michael Ellerman , Sasha Levin Subject: [PATCH 5.10 393/717] powerpc/sstep: Cover new VSX instructions under CONFIG_VSX Date: Mon, 28 Dec 2020 13:46:31 +0100 Message-Id: <20201228125039.834665423@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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: Ravi Bangoria [ Upstream commit 1817de2f141c718f1a0ae59927ec003e9b144349 ] Recently added Power10 prefixed VSX instruction are included unconditionally in the kernel. If they are executed on a machine without VSX support, it might create issues. Fix that. Also fix one mnemonics spelling mistake in comment. Fixes: 50b80a12e4cc ("powerpc sstep: Add support for prefixed load/stores") Signed-off-by: Ravi Bangoria Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20201011050908.72173-3-ravi.bangoria@linux.ibm.com Signed-off-by: Sasha Levin --- arch/powerpc/lib/sstep.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c index bf2cd3d42125d..b18bce1a209fa 100644 --- a/arch/powerpc/lib/sstep.c +++ b/arch/powerpc/lib/sstep.c @@ -2757,6 +2757,7 @@ int analyse_instr(struct instruction_op *op, const struct pt_regs *regs, case 41: /* plwa */ op->type = MKOP(LOAD, PREFIXED | SIGNEXT, 4); break; +#ifdef CONFIG_VSX case 42: /* plxsd */ op->reg = rd + 32; op->type = MKOP(LOAD_VSX, PREFIXED, 8); @@ -2797,13 +2798,14 @@ int analyse_instr(struct instruction_op *op, const struct pt_regs *regs, op->element_size = 16; op->vsx_flags = VSX_CHECK_VEC; break; +#endif /* CONFIG_VSX */ case 56: /* plq */ op->type = MKOP(LOAD, PREFIXED, 16); break; case 57: /* pld */ op->type = MKOP(LOAD, PREFIXED, 8); break; - case 60: /* stq */ + case 60: /* pstq */ op->type = MKOP(STORE, PREFIXED, 16); break; case 61: /* pstd */ -- 2.27.0