Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3628815imu; Mon, 28 Jan 2019 08:06:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN523HV+mCVZPKNAoFWnreYyIxN+HD9nQSsYz14ca5UjQuTWkEFBzQ87d9jRZeSfpnwKI30t X-Received: by 2002:a62:36c1:: with SMTP id d184mr22576548pfa.242.1548691576145; Mon, 28 Jan 2019 08:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548691576; cv=none; d=google.com; s=arc-20160816; b=EOymIwVKrFNyaLAXEf4ZZw9xhHEQZ0jrmAubbl+ayMrASSAB1+3RI45aNk5XkJsJ4v BtkRfN7mCbktWBDMs+rnRT9RoRWUCS0j0l23YJ/UVLNtmxLhi1WtgNTfO9NuY8fPpj3T oa0ZY6Ype3VaVWBZykbK9EVxc354BwgrN09AC9FbtIfcu4E0SWOC3vPgJQ6rKn2vK9eX GDcfzNfXNL5eGBzXWtFyO9KBonxEOQvP6vZT1nsebAsq8zR5alc68V5C21cfjNSViTbd WboBjs/krLNgsetOn2TBD1uaTiPG7zC8YPBJKjlyssjirax5/TSlBQwfw1+72uqsaHa/ zyMg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YE75ME4G98IAEu+CVL2FWnqrkBPnwcjtln6OsdGGq5c=; b=rOE89Uht10EIlR3Q40xg9o04gE6f71GevmXOSBug9VOQxS3P7SSFx8wi+IPxpOQXg5 oSfrjrUFQB3GXyjDhXFT1oyM6c7hptXrcvBoElood3/rT0WxUwIbEmDZ98LpZ2D7H5GT ntC2p15PzCPhj/KE4JckLbF3HMMVn8A4X0T461gOtdXQfsgT4Xur4O2egFX/II8J+YvY Id168rjb8rmzm/ERFztChbaq5+6W4Nib1wgFx8AWHM5qYgIrwyrrpNptYycoiu+Ckhir gqwb3ig1minpqGOxleOilBiR30CZry5o8FYbI9rt4LhD+DAu0vvhYsQBKKDWfux0kTem UyVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JpLzImGX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si32751616pfe.159.2019.01.28.08.06.00; Mon, 28 Jan 2019 08:06:16 -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=JpLzImGX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731101AbfA1QFI (ORCPT + 99 others); Mon, 28 Jan 2019 11:05:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:51344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731750AbfA1QFG (ORCPT ); Mon, 28 Jan 2019 11:05:06 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B561C2147A; Mon, 28 Jan 2019 16:05:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691506; bh=4SRlss6fatly5HveyLqaOiGw2u5XwYKvpK67wEHOumc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JpLzImGXjbck90jmIkxMoQF/6yOnnqfrqS4gfJ9Ah9aJZfxtlQZBEavLLLhcBV0zP wW40E9lyTT5mWFHjO+yr77gDAGU5BfDVHrf8EGp6B5f6BkG5KjjSSVRuaONaOBcbTb kns4yObCt7DKBuJSYkYL9mW1X/J0kV58dYg1ui/0= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jiong Wang , Markos Chandras , Paul Burton , linux-mips@vger.kernel.org, Alexei Starovoitov , Sasha Levin Subject: [PATCH AUTOSEL 4.19 120/258] mips: bpf: fix encoding bug for mm_srlv32_op Date: Mon, 28 Jan 2019 10:57:06 -0500 Message-Id: <20190128155924.51521-120-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiong Wang [ 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