Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2681859imj; Mon, 11 Feb 2019 06:58:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IZLaNpAFXg9DtWrs2Nx5mzs4w2CiOH/FB6OsDJr0r3U++A7oqNISpwJX72Bc14ZMRKAYONk X-Received: by 2002:a65:4781:: with SMTP id e1mr33650037pgs.346.1549897129205; Mon, 11 Feb 2019 06:58:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549897129; cv=none; d=google.com; s=arc-20160816; b=0qpRw92rjq7rfgRCxDSU451PVgNM8GgPy+c5KgLIZFPM4eemF4bkyWQnpnyFZWEpRE ZScEA++vKXSIF2cOUDsM+Q3BKp3pxR/lwUQBpAf6uQPyJ4Pb+MoEE3dOXjPvbGzgFqrz 3G4IBgONqmyKf3QqiHp+97aWDwNyB8WLfd4Mtn99UByqm/qTk4cggvP5TzBUHD0C4X07 pm/jr6seUvdSiRzshp7IzjzHQPWO7voAAJYyhsF3/6kRzSzFkdWee2VrHdW6FdzXYvpJ GvKmM2guNm6rAUw/I+XglXZfxHU0SgqIZSDYJlzXsYkbaTC+G+6hvA2xj2I8RcLQ4yz+ jg3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RwMuge81vC0DuolsL8fb3mql1K3BXLM8EEvb8lZhKKo=; b=kF7/lOEhTjCU/CQ9oCFCdaADyDIxYCSk95PPOUJskA02CBfbgjp3ZMarYo0TO1AY/D BwJQ63/3e0o2r8mJBqp7/ZZSbQ09UTPoe7xNznLHZg1EbXfnaAYHpiJntXtpXB4ZdQRu psEBNzXR+Y0mbaAG39iWS/Y8Ml4ipDMLPUiqKIfyHin1Uoa8hwq2w1cTQNq44tGsxmPr Y9eaWbdRpsygeFA6FIrBv9Xwz3hK63a471uldxvhqAQXpOS8Q+xBvv1qPJMrLTTRh9T/ 2ogwR2TkuayW2xaYWxD8NNIEeC0Co9LTlg8bICZs6eSmPwNaeB5dVteTbmzr3H1C7IWP z9mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jKCjcb9w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si10271822plo.286.2019.02.11.06.58.32; Mon, 11 Feb 2019 06:58:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jKCjcb9w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389377AbfBKO5e (ORCPT + 99 others); Mon, 11 Feb 2019 09:57:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:44942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389365AbfBKO5b (ORCPT ); Mon, 11 Feb 2019 09:57:31 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 310B92229E; Mon, 11 Feb 2019 14:57:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897050; bh=jG2CxJDQgrw3pDzq+PiqJq4pFDtneuyjLkztUQv2Tjs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jKCjcb9wXWhogdjiO6e8N5l8Ne+ECH78Aivvet9Eh9rVxikffpW1igT3PBcovVx0c 5smuhHajaKD9Utc7H2aC9sSdu5sT7/wQUHyI8QE44hBS/arSs+ELnxE6ISUC5+9G1P fsxHte8azrU/l31lSgreUW5NesyxbDuZXrrAAr20= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Markos Chandras , Paul Burton , linux-mips@vger.kernel.org, Jakub Kicinski , Song Liu , Jiong Wang , Alexei Starovoitov , Sasha Levin Subject: [PATCH 4.14 074/205] mips: bpf: fix encoding bug for mm_srlv32_op Date: Mon, 11 Feb 2019 15:17:52 +0100 Message-Id: <20190211141833.560166932@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 17f6c83fb5ebf7db4fcc94a5be4c22d5a7bfe428 ] For micro-mips, srlv inside POOL32A encoding space should use 0x50 sub-opcode, NOT 0x90. Some early version ISA doc describes the encoding as 0x90 for both srlv and srav, this looks to me was a typo. I checked Binutils libopcode implementation which is using 0x50 for srlv and 0x90 for srav. v1->v2: - Keep mm_srlv32_op sorted by value. Fixes: f31318fdf324 ("MIPS: uasm: Add srlv uasm instruction") Cc: Markos Chandras Cc: Paul Burton Cc: linux-mips@vger.kernel.org Acked-by: Jakub Kicinski Acked-by: Song Liu Signed-off-by: Jiong Wang Signed-off-by: Alexei Starovoitov Signed-off-by: Sasha Levin --- arch/mips/include/uapi/asm/inst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/uapi/asm/inst.h b/arch/mips/include/uapi/asm/inst.h index c05dcf5ab414..273ef58f4d43 100644 --- a/arch/mips/include/uapi/asm/inst.h +++ b/arch/mips/include/uapi/asm/inst.h @@ -369,8 +369,8 @@ enum mm_32a_minor_op { mm_ext_op = 0x02c, mm_pool32axf_op = 0x03c, mm_srl32_op = 0x040, + mm_srlv32_op = 0x050, mm_sra_op = 0x080, - mm_srlv32_op = 0x090, mm_rotr_op = 0x0c0, mm_lwxs_op = 0x118, mm_addu32_op = 0x150, -- 2.19.1