Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp571308lqt; Thu, 6 Jun 2024 11:29:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU46ZOPUKDed46N+KzEKXnmtzZM+VbDfdgeDe5FXTq2/3r+xmP3Cu1OezyamWHmdz1YrmSDXAX42DDs/0RWXpJ0GZyowIJdpj6NaQrCNQ== X-Google-Smtp-Source: AGHT+IHnldFScjbu+SoBbtsTCi4R0CzyXTuUxKrtfJfbtCD6DFfnE8UrgFtdMTexx3cEeQVW32GF X-Received: by 2002:a05:6122:916:b0:4da:a531:ba26 with SMTP id 71dfb90a1353d-4eb56234de2mr552784e0c.6.1717698580948; Thu, 06 Jun 2024 11:29:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717698580; cv=pass; d=google.com; s=arc-20160816; b=hpBJGcs9oQ3D4ktErDuNyaBdq/BwdN4b2VageWSD4eEE36HRHBdfA+It8MMNOKG7Jo kNdfcgHJnCo6YBe+EAowlC6bfuyDW4XUjNHtvp5gNyrAc+yoaMcaNmhsIX1SnB4n0HXt JBO2S1ZMCLQIv9JsZKOlKWEcD3cgC7OHPEWXcnCE7y3nUmP1/oImDC2UvMzdpXGahVFc xDf/8TpepnPgIQr4vy73SRhMYCl6YvwI28j8y6ZZbOvqYCcN/hoSKZRCnvQaAIgtzq5t uvktj6KZJWPsPUX7WQ239PNr9lHJdfak5tHMfDC9hhhXFgPLbJ394Z/fDYG/QMmCRh8e gL5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ZnjrltBnoDUBuMjYPvFD9/BtWTyCCjyld10aySgsRYQ=; fh=WqIPEWtT+wIVLKksHWZeEfyMPTChXAhi/RdE9WeTIZ8=; b=uzqqkap2E55DIShOqeLkO9+BDNqczO92kVHYgA+1nRARrbH4Y3eDbMJyfotYXip8bu O0ZZL0qPIGKBrM06MSbr98cnleJKJQXj6FrGz0f8k07rU5xCyH1uOjccA8jNu8pCppS9 CU62PwEl9lUdlXzLOROGT/1wEOwwdjB87C6fu2HF4zCAUoSQoYGGohZM5m4wQ+e/iNW6 7Vb9nJ0TiqmgHg32bqf2nijdvTHTl9SEm1X2PfM2tvIKdQQ+S1pvFP2X7zgXT11cQvwA fFrl+eH7pOrq/szjTIKTVLkZN2g/yVwWGM8IdawXBr3cdsvfLFqFoe9XyE1y7IbKN2Pi uaZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=dhtQaJzU; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-204882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204882-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-795331ca5c4si198208685a.378.2024.06.06.11.29.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 11:29:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=dhtQaJzU; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-204882-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204882-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7CBEF1C2798D for ; Thu, 6 Jun 2024 18:28:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D78DD199E98; Thu, 6 Jun 2024 18:28:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="dhtQaJzU" Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC4FD1993A7 for ; Thu, 6 Jun 2024 18:28:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717698494; cv=none; b=nI3IKgQulJkcxro6aK8TDc3NrbfjJMplu3h+S0kd/uVzEiUmuwWRTTLBxcjqTZPGB1yY9TWQqLuLM13FavQ7aX2vaYEOzVNl9auCaOhsUOKgeZQUf3mIXS3gPJkvmH8i6E0fAXOsBVzwv85bElOHvc1PaltevUsv0jMOtINZ5lU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717698494; c=relaxed/simple; bh=aTSKYAeFIGVbtIPWzw+4bQaxD1QfN0rDOpLJpEnq6jU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kdmPSmxA+3RPKxbdLLpvoQpHYY4fKQ1AMYEFmULknkFgDuQr44l73Axt2Z1zS8kQFKwZG2nf1FnMkzXLhTlOma/9wHH0gaF7L8b5Ku/kakCsCipK3Hd9jszVy7bEzKu+fMcvfbo9aqgryUYN3t3Prw8o/pEMXtVKhpYijUg0MeY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=dhtQaJzU; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1f64ecb1766so11257445ad.1 for ; Thu, 06 Jun 2024 11:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1717698491; x=1718303291; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZnjrltBnoDUBuMjYPvFD9/BtWTyCCjyld10aySgsRYQ=; b=dhtQaJzUEHPnJr62kpm12UjLnKgpbrdVfi4oawnWa6lw5mv78dmwRa44UtIFvMwg44 OjkoVldMFZDxTr/IjoxiF9u9Ew8d1J656kOvJ8eyMXP/0OrkZbP1Pklg+peyLzxEg23A rDjbQEdQb1H9Hh3pCVojyj+W/rUGKa1gWyQergWWkZW8RAcDpNMioNiXCOa7BoHPllOa chdufgz7R7IEZaktwW+T3U4wnO8/l62i1ZAbTl7p9T7NPHITMsd1faglLw+uM+NxNQtZ eu5+Tgae8FO4J1rtvHLUOQWRcogPMu+h5keoHiABXBx6fM7ff24P1wvcRU2ljoOhA4w2 BQrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717698491; x=1718303291; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZnjrltBnoDUBuMjYPvFD9/BtWTyCCjyld10aySgsRYQ=; b=AUqqFni6oU9fbcaRqN7E4fw7tS6R6P103IQu71CZgia4UguoUIMhEmmK7NONdEL3yO 6IOuudwzOYKY4AdO1tIU35k+bGD83kBLpgaizTvZY6iHpBRYgJj3YCveNKS15e5H2QF/ PORFN7g/nugONL29lthqwSprvpIIV1AhUcMcrRnOB/YSIlEIFiigu5VCYoo6mcvFyVlX iPSoHnKYHp2Zc4Q/eTzRGr0kcDuclAhDV76gN2euek4uCJF5Cr76XMw31Z79RSGEAstB /CW9tr1HjbIqlhDMJq0zEx/XYtktJd+94QSMYtU7sb9MpZgf/DwTMNzID6aaG/pk4jk4 BUhw== X-Forwarded-Encrypted: i=1; AJvYcCX93Zd4zLTWZ6a8YSdBm0wrlO4TGhbDY5GK3FXDOUF3owN4y9ASrm7jrrEiMRNeK33eOz8VTiAaXee1EzShBv7hXESsJWlqWmAm+eZT X-Gm-Message-State: AOJu0YyPvwB+tjM5CDFkS9ueay5/V5F10Mgm4mv9XPbGPQuu7iWrAnGZ 8bN6yocWrnsF+8oyIvJAviiw0I/6qTHaxDFgPcLrU2CA3Quxauw4rURhTDX1+T0= X-Received: by 2002:a17:902:db0e:b0:1f6:6407:cf85 with SMTP id d9443c01a7336-1f6d0395b10mr4076855ad.53.1717698491085; Thu, 06 Jun 2024 11:28:11 -0700 (PDT) Received: from jesse-desktop.. (pool-108-26-179-17.bstnma.fios.verizon.net. [108.26.179.17]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6bd7ccfd3sm18400835ad.132.2024.06.06.11.28.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 11:28:10 -0700 (PDT) From: Jesse Taube To: linux-riscv@lists.infradead.org Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Nam Cao , Sami Tolvanen , Charlie Jenkins , Andy Chiu , Jesse Taube , linux-kernel@vger.kernel.org Subject: [PATCH] RISC-V: fix vector insn load/store width mask Date: Thu, 6 Jun 2024 14:28:00 -0400 Message-ID: <20240606182800.415831-1-jesse@rivosinc.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit RVFDQ_FL_FS_WIDTH_MASK should be 3 bits [14-12], shifted down by 12 bits. Replace GENMASK(3, 0) with GENMASK(2, 0). Fixes: cd054837243b ("riscv: Allocate user's vector context in the first-use trap") Signed-off-by: Jesse Taube --- arch/riscv/include/asm/insn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/include/asm/insn.h b/arch/riscv/include/asm/insn.h index 06e439eeef9a..09fde95a5e8f 100644 --- a/arch/riscv/include/asm/insn.h +++ b/arch/riscv/include/asm/insn.h @@ -145,7 +145,7 @@ /* parts of opcode for RVF, RVD and RVQ */ #define RVFDQ_FL_FS_WIDTH_OFF 12 -#define RVFDQ_FL_FS_WIDTH_MASK GENMASK(3, 0) +#define RVFDQ_FL_FS_WIDTH_MASK GENMASK(2, 0) #define RVFDQ_FL_FS_WIDTH_W 2 #define RVFDQ_FL_FS_WIDTH_D 3 #define RVFDQ_LS_FS_WIDTH_Q 4 -- 2.43.0