Skip to content

Conversation

@uestc-gr
Copy link
Contributor

issue: #191

字节转换性能优化

测试方法:打开/关闭ZBB特性,大小端字节序符合预期

mainline inclusion
from mainline-6.17-rc7
commit cc2294d
category: feature
bugzilla: RVCK-Project#191

--------------------------------

Implement endianness swap macros for RISC-V.

Use the rev8 instruction when Zbb is available. Otherwise, rely on the
default mask-and-shift implementation.

Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Ignacio Encinas <ignacio@iencinas.com>
Link: https://lore.kernel.org/r/20250723-riscv-swab-v6-1-fc11e9a2efc9@iencinas.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Signed-off-by: Rui Gao <gao.rui@zte.com.cn>
@github-actions
Copy link

github-actions bot commented Jan 15, 2026


开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21017677184

参数解析结果
args value
repository RVCK-Project/rvck
head ref pull/192/head
base ref rvck-6.6
LAVA repo RVCK-Project/lavaci
LAVA Template lava-job-template/qemu/qemu-ltp.yaml
Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:

RVCK result

check result
kunit-test success
kernel-build success
lava-trigger success
check-patch success

Kunit Test Result

[02:42:01] Testing complete. Ran 455 tests: passed: 443, skipped: 12

Kernel Build Result

Kernel build succeeded: RVCK-Project/rvck/192/

2997f4195629d95644cb1c52b1800559 /srv/guix_result/3297519f56afe1c4df224f47ea68f8690b1c45c4/Image
8aaaf0f80f6f010b78874a73682527b8 /root/initramfs.img

LAVA Check

args:

result:

Lava check done! lava log: https://lava.oerv.ac.cn/scheduler/job/1079

lava result count: [fail]: 174, [pass]: 1434, [skip]: 291

Check Patch Result

Total Errors 0
Total Warnings 2

@uestc-gr
Copy link
Contributor Author

PR已完成,请老师评审

@sterling-teng
Copy link
Contributor

backport自上游。

@sterling-teng sterling-teng merged commit 14c4595 into RVCK-Project:rvck-6.6 Feb 1, 2026
50 checks passed
@uestc-gr uestc-gr deleted the swab branch February 2, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants