[PW_SID:1163154] riscv: runtime enablement for native misaligned ucopy - #2646
Open
linux-riscv-bot wants to merge 2 commits into
Open
[PW_SID:1163154] riscv: runtime enablement for native misaligned ucopy#2646linux-riscv-bot wants to merge 2 commits into
linux-riscv-bot wants to merge 2 commits into
Conversation
This is the introductary patch for us to call the user copy that supports fast unaligned access after the runtime detection. Signed-off-by: Andy Chiu <tchiu@tenstorrent.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Skipping the software aligning code increases the ucopy bandwidth by up to 11.4%. Commit b94cec5 ("riscv: skip software algning code for HAVE_EFFICIENT_UNALIGNED_ACCESS") provides this optimization at compile time, which depends on NONPORTABLE. This patch extends it such that the optimization can be enabled at runtime, after the unaligned access speed is resolved. To do so, we utilize the assembly version of static key and connect it to fast_unaligned_access_speed_key. The kernel jumps to the software aligning code as the default behavior, then the jump is optimized to an nop if the platform supports native misaligned access. Signed-off-by: Andy Chiu <tchiu@tenstorrent.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR for series 1163154 applied to workflow__riscv__fixes
Name: riscv: runtime enablement for native misaligned ucopy
URL: https://patchwork.kernel.org/series/1163154/
Version: 1