From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6AF49269D15; Tue, 8 Apr 2025 11:30:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744111850; cv=none; b=bvHSAi6ct3vmXG4FZ1h3U3xs1Em/6UVKrno/ptJXc3UNJ93oMXQcwJkuSJ3waFjikc5F+9agLhhlqgK9EY3LyYMv1/Rcz7Z4wgSQ21mHyrP63rTgmbSgW/96aBSyLjC/0K9MNsAwEdIDvkgB84nm1YKXAZWK9CtFNHe4z37leak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744111850; c=relaxed/simple; bh=mF2tdVmZl8PNgzhoz8TWTcTi4PKC2lykLTlScxD/eyo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SGipTes7lkQL8mO7mIW0+zP0uxxd/Xxoi2Qxbg8/XZU5n3CeCtGBC3FHfnHfy9Ab13zHoYNOH1tP2C9Lnrq/VvpQQGE5rts1hrmxdA+cNJzB4JDzGTSY8UW96s0j85FdXCEEUKaPIkGFleslU/aC48gFBbfL8j9VG1tIHzIbNTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tixh4ZAa; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tixh4ZAa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDA58C4CEE7; Tue, 8 Apr 2025 11:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744111850; bh=mF2tdVmZl8PNgzhoz8TWTcTi4PKC2lykLTlScxD/eyo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tixh4ZAamA9TFZFfLqaLkZZSJeBVAIEn43jWtJGsthvgTzS+9hzzJYW/1562qW3iG oQ6w21HXXx0qu7orajrgeuQbB1L9wKU6/g73tPM9jRUqsJclo2NyXGopdQnLXhzMPz igChFcBxEP0LqkSOj2IDVosRjLVZYTpRn/ygWbxc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alexandre Ghiti , Tingbo Liao , Sasha Levin Subject: [PATCH 6.14 582/731] riscv: Fix the __riscv_copy_vec_words_unaligned implementation Date: Tue, 8 Apr 2025 12:47:59 +0200 Message-ID: <20250408104927.810951274@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104914.247897328@linuxfoundation.org> References: <20250408104914.247897328@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tingbo Liao [ Upstream commit 475afa39b123699e910c61ad9a51cedce4a0d310 ] Correct the VEC_S macro definition to fix the implementation of vector words copy in the case of unalignment in RISC-V. Fixes: e7c9d66e313b ("RISC-V: Report vector unaligned access speed hwprobe") Reviewed-by: Alexandre Ghiti Signed-off-by: Tingbo Liao Link: https://lore.kernel.org/r/20250228090801.8334-1-tingbo.liao@starfivetech.com Signed-off-by: Alexandre Ghiti Signed-off-by: Sasha Levin --- arch/riscv/kernel/vec-copy-unaligned.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/vec-copy-unaligned.S b/arch/riscv/kernel/vec-copy-unaligned.S index d16f19f1b3b65..7ce4de6f6e694 100644 --- a/arch/riscv/kernel/vec-copy-unaligned.S +++ b/arch/riscv/kernel/vec-copy-unaligned.S @@ -11,7 +11,7 @@ #define WORD_SEW CONCATENATE(e, WORD_EEW) #define VEC_L CONCATENATE(vle, WORD_EEW).v -#define VEC_S CONCATENATE(vle, WORD_EEW).v +#define VEC_S CONCATENATE(vse, WORD_EEW).v /* void __riscv_copy_vec_words_unaligned(void *, const void *, size_t) */ /* Performs a memcpy without aligning buffers, using word loads and stores. */ -- 2.39.5