Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2764774imj; Mon, 11 Feb 2019 08:08:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IYDknhQMUeJC1QgcPv+QuZFXl7mTs7yM9gt68/ZAunOh63jPakrvHwdoOdCTJRx7HglRTkq X-Received: by 2002:a17:902:e087:: with SMTP id cb7mr33218884plb.313.1549901298435; Mon, 11 Feb 2019 08:08:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549901298; cv=none; d=google.com; s=arc-20160816; b=1LU4LQUHPIXDXfmWslws3NEP19ugfLUBByqGx1CExwAwujeArg9+PeMcDP5er9F8QY NSgR1OFNNMWtgC7qpIEW+t1B7c2heBoAKCQgl70S0LXzWPMX4EnTuRmDLUQ+Z2szdH0N nWSx4QSnn0FAaSP3DiFJubMAZVKVyU71oriW9Oknm7gG1jEircM+qpq4P/u+QJq7hlUs NR02o78LMFhFcj7w+Z5EUbkHQXWbeskzsGsd+boJmmiITf9j46SVVH+dlJgvW7Adci0W JrCj5FDO9IB7zUluiJizX3Ze1MLK9XC9cZKEV823M7M25skNlkFY7KZATCURTi3VMTTI O9Nw== 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=FD3le08b/zBw5Zjmwlswkwfr8GnFMqm/pXo2PrKOu64=; b=IuPNyv8yzhb11iAvWt4bo5to8dI+5QkP6oYxuR7w6OTpUbUtwIEE7lXKOTcnrM35Yf WdTVk1pPiTex9Lp25JuoNDd6cv80Nm7gJyR+AvaIcE6iwVrI96ACszaic5dBuHobrIBp u6gVQ1zhhwAS1MR6kWMDunyI7+QC+1qNoxWPHox7hzmV8Fs/++uIsHLLH61/WCW1iS+h Ztq6farhZIXQCcByCASQwdoTPu+b3ig9XulBT+4lL7d+meYUIaML6ci6DThzzrunjNjG CRRa1p/xULsOseR632vhu7JzkJCHlnqIXZ0nHwJuCS5EvmXtPsBRjJYmej2otA2bxwSI jorA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=REh55kOR; 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 u20si3112006pgh.147.2019.02.11.08.07.57; Mon, 11 Feb 2019 08:08:18 -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=REh55kOR; 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 S1729658AbfBKO1G (ORCPT + 99 others); Mon, 11 Feb 2019 09:27:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:32796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727247AbfBKO1E (ORCPT ); Mon, 11 Feb 2019 09:27:04 -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 2E6F12075C; Mon, 11 Feb 2019 14:27:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895223; bh=9ga+wZBy1nI4TG11o+8Ss4nCRPFNFJfsene3WkwfKg4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=REh55kORG62mNFmdALVuv4BDoD9Hjv/EanoUefuqlKzTkJbQavD7S59dgbsw844eF p3nlTAc+23O6By1whuXi7ROCFyDmbPsn0jWHrIPVCUJjeZB8XVRv8f0KbiFgyLEiJA Vd+0m7BQTuP3ZulryDCfsGBM+86triKgR0+/cie8= 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.20 134/352] mips: bpf: fix encoding bug for mm_srlv32_op Date: Mon, 11 Feb 2019 15:16:01 +0100 Message-Id: <20190211141855.041560399@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@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.20-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