Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1320256yba; Tue, 2 Apr 2019 06:49:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsB561mGoi+rHKFY88sFW4NQ5gEu2TiZGeYX0oMgy+p/KVEPXx7wr239WBCFHyMwEEp6Bt X-Received: by 2002:a65:4108:: with SMTP id w8mr66727610pgp.236.1554212966422; Tue, 02 Apr 2019 06:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554212966; cv=none; d=google.com; s=arc-20160816; b=TA4jSwmw6wWWOeIbzRU0F0LsZj2ZvAJFCHkmiNg3AQGr+NSU3haGniS1uwVCmASW4Z PzGDwgoZTW7FGlRbsKFDJGV1dcNDpjrwCulj8BV1lma/2ddYqPv54ntnvyYm7sIK5QsJ FZCJKbr1mXxSMkCC9C7mWOVw9CbRfnmKs/2qY2tVfYsm/d4CYRQaLSARFsk+TZ2+WnRz iofAziEiwxdVwMVOyffCP9dcbTssymqGzsVCZDFRsyf0lcs+AnmuOxvY+HbmPxDu2Myy 8qhMEztoTjqGNYkCf2F6hDFXBrC+DzN6DYA7FvLpvldp5TgLygZGdwuHUd/lUslcr4X6 cmcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=kF/qN+pEVlIAPx4LydXwkO3ewJmCcNCfdWCet31qmPg=; b=jre0zVAFQectDSROk0gRBpHa6RL/Xv50AEuhGBskd9H4oDMOqme23JCPZvKSsGapf3 20lslBZi/CAxS5LQVzpXJs77LQmOzvaLaWa0/HHgEAcPWpSyiKOsrvzoE276P5HTyhhk uAaSqSo6VB4vg70EZ9Xo1ZYQmIcZ12F3WgvOruCvPc//JAbLDJ19NAfFYuf/oKy6EXNq TgkZCu737EKuQxlXJfHQ8vo4OU1rlkP/8E6iPxozrQGx8b0R0WudemvU6s6Y8gZUdGsO aQ4/Ns7dvQBRPYKASdnL9N7nWjmtxjc+ISTepzv8/vFxXpkGzGBrWWBT1SZys2hp9ukD D2TQ== ARC-Authentication-Results: i=1; mx.google.com; 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 71si5781565plc.97.2019.04.02.06.49.10; Tue, 02 Apr 2019 06:49:26 -0700 (PDT) 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; 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 S1732034AbfDBNqc (ORCPT + 99 others); Tue, 2 Apr 2019 09:46:32 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:43124 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731419AbfDBNkF (ORCPT ); Tue, 2 Apr 2019 09:40:05 -0400 Received: from [167.98.27.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hBJdv-0002nO-Na; Tue, 02 Apr 2019 14:39:59 +0100 Received: from ben by deadeye with local (Exim 4.92) (envelope-from ) id 1hBJdu-0004sW-NN; Tue, 02 Apr 2019 14:39:58 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, Denis Kirjanov , "Alexei Starovoitov" , "Jiong Wang" , linux-mips@vger.kernel.org, "Markos Chandras" , "Song Liu" , "Paul Burton" , "Jakub Kicinski" Date: Tue, 02 Apr 2019 14:38:27 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 26/99] mips: bpf: fix encoding bug for mm_srlv32_op In-Reply-To: X-SA-Exim-Connect-IP: 167.98.27.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.65-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Jiong Wang commit 17f6c83fb5ebf7db4fcc94a5be4c22d5a7bfe428 upstream. 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: Ben Hutchings --- arch/mips/include/uapi/asm/inst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/mips/include/uapi/asm/inst.h +++ b/arch/mips/include/uapi/asm/inst.h @@ -262,8 +262,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,