From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0F6F1CD4F54 for ; Thu, 28 May 2026 21:13:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LsNaS61a9LnVFpdLjb/JXVjfdS0W4zOUZdPE2+A659Y=; b=fqPtCLWNEwIAsi VKOoClhH4Bjp3jC3pNJQN9lpBhIcnsFC0YxiXIC+l3LnURcRu7mkiMezEUk8rZ0m7AmZuYxaHZ+rN CYcV7fATbNYMgpAQHoCrmMzYnnaIF5P0/SWP+THujMemHXbr0OZ+wm7jMWYyrcOZ4g8JKDvB9sBY0 076LdQhaERXUohYzskgk1piDQfb79WU7/bsjXsgLpCvIkzesveoK3c5feYYIGOYccpwDDFpEqUYtV vhmnns1k5E3h2fwTGVTYxpj18kfLHP5iwLWNYR61kseA4CrcnrvA2uJ3RtHKIs4a/dBImAnrx4cU4 +IIuxToKqotCA+6bBWiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wSi22-00000006OAd-0Hrz; Thu, 28 May 2026 21:12:46 +0000 Received: from galois.linutronix.de ([2a0a:51c0:0:12e:550::1]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wSi1z-00000006O9M-1wqu for linux-riscv@lists.infradead.org; Thu, 28 May 2026 21:12:44 +0000 From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780002758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Vbn1ysewc4dPhC75UO+Yew2aAizs4+TdppDNkIGId4Y=; b=1krzi4LVD+omrvBDVNDsoOaSJks7HlS8grhV6eYUaGF3nsEZofvN8YU5XMhbkmiYHPRg3T vGA2uJ1JbhySJpDe5Gio75XLqwqqn69kFIuag34m9Czz4scmAIhwGdxo1z5XfWZZT3Ujp1 WFnJp8BYhfjGb9z1HQPYSQfemNUtBCjZYNOYwRCEH7lx7lox7R8I3hhTlv4hDZIXogDSOB LyV4IXHbPpIpSsZM3MDPe9JtXcLzN1EoR1rFNdCdrUu2i9NvBLFYuEaBeZEPa9mztiXugk jF7T2tbQfdfhfifBTKGSy+QevrfmxhHx1L37464mM/sBGEkng5hNWJiqCbUR+Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780002758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Vbn1ysewc4dPhC75UO+Yew2aAizs4+TdppDNkIGId4Y=; b=zDr1SP9RK3PPGR/NPqlZRnja++Hb21WSh47Y1ZuTYkjq1+l7yOTevq33ZrSQZ5/bSUt9Jj p5PxeYaMlsYEpMDQ== To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Andrew Jones , Charlie Jenkins , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Nam Cao Subject: [PATCH 0/2] riscv: Some misaligned cleanups Date: Thu, 28 May 2026 23:12:29 +0200 Message-ID: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260528_141243_645633_5D13C92B X-CRM114-Status: UNSURE ( 3.39 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Two minor cleanup which affects performance. The first patch addresses a bug causing improper initialization of fast_unaligned_access_speed_key, affecting performance of do_csum(). The second patch remove a redundant access speed probe in CPU hotplug. Nam Cao (2): riscv: misaligned: Fix fast_unaligned_access_speed_key init riscv: traps_misaligned: Avoid redundant unaligned access speed probe arch/riscv/kernel/traps_misaligned.c | 4 +- arch/riscv/kernel/unaligned_access_speed.c | 69 +++++++--------------- 2 files changed, 24 insertions(+), 49 deletions(-) -- 2.47.3 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 ABE53352014 for ; Thu, 28 May 2026 21:12:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780002762; cv=none; b=EYJAySsXqCYflbyMBxKu8bAHnfDUyfZr9hJElBPA852LIB3Wpm1lt+NirwcJZPCl3FkApHZk5cyj1LIadRgt5HWWcrv8Wka+dCSLD0f+DUs2hTP3lhZAgaoy5bCpzoc1aIRFsPtRxsNHs95NoFNCK5tkqyqGY6JEoIA29GV123M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780002762; c=relaxed/simple; bh=ecIniojf0Bv1RZ1pVOxDDAS6Iecex6IQWmeJF+N+4O8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vqzve9m2S0339SiBM/6PYXCOjFwfArWtdVgmTQmvrUwtZYY1Zg/7wMqHrZW83Dd8XBKEAoI2itHycrO5QlbRTDuLkvTbwKa/KeixBXvtDFerNz7cLbKQU5BQDkU8J18H4EzeEZb5/7ove3eQP4owSwcCSVkp7zyB8DFPG7sKeTg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=1krzi4LV; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=zDr1SP9R; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1krzi4LV"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zDr1SP9R" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780002758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Vbn1ysewc4dPhC75UO+Yew2aAizs4+TdppDNkIGId4Y=; b=1krzi4LVD+omrvBDVNDsoOaSJks7HlS8grhV6eYUaGF3nsEZofvN8YU5XMhbkmiYHPRg3T vGA2uJ1JbhySJpDe5Gio75XLqwqqn69kFIuag34m9Czz4scmAIhwGdxo1z5XfWZZT3Ujp1 WFnJp8BYhfjGb9z1HQPYSQfemNUtBCjZYNOYwRCEH7lx7lox7R8I3hhTlv4hDZIXogDSOB LyV4IXHbPpIpSsZM3MDPe9JtXcLzN1EoR1rFNdCdrUu2i9NvBLFYuEaBeZEPa9mztiXugk jF7T2tbQfdfhfifBTKGSy+QevrfmxhHx1L37464mM/sBGEkng5hNWJiqCbUR+Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780002758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Vbn1ysewc4dPhC75UO+Yew2aAizs4+TdppDNkIGId4Y=; b=zDr1SP9RK3PPGR/NPqlZRnja++Hb21WSh47Y1ZuTYkjq1+l7yOTevq33ZrSQZ5/bSUt9Jj p5PxeYaMlsYEpMDQ== To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Andrew Jones , Charlie Jenkins , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Nam Cao Subject: [PATCH 0/2] riscv: Some misaligned cleanups Date: Thu, 28 May 2026 23:12:29 +0200 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Two minor cleanup which affects performance. The first patch addresses a bug causing improper initialization of fast_unaligned_access_speed_key, affecti= ng performance of do_csum(). The second patch remove a redundant access speed probe in CPU hotplug. Nam Cao (2): riscv: misaligned: Fix fast_unaligned_access_speed_key init riscv: traps_misaligned: Avoid redundant unaligned access speed probe arch/riscv/kernel/traps_misaligned.c | 4 +- arch/riscv/kernel/unaligned_access_speed.c | 69 +++++++--------------- 2 files changed, 24 insertions(+), 49 deletions(-) --=20 2.47.3