Skip to content

[PW_SID:1129586] riscv: cmpxchg: Use .option arch for Zacas and Zabha#2306

Open
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1129586
Open

[PW_SID:1129586] riscv: cmpxchg: Use .option arch for Zacas and Zabha#2306
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1129586

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1129586 applied to workflow__riscv__fixes

Name: riscv: cmpxchg: Use .option arch for Zacas and Zabha
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1129586
Version: 1

Linux RISC-V bot and others added 2 commits July 15, 2026 17:25
Instead of adding these to -march globally, use .option arch to use
instructions from these extensions only in code paths where we know they
are available, like how it is done for most other extensions.
TOOLCHAIN_HAS_{ZACAS,ZABHA} already depend on AS_HAS_OPTION_ARCH, so
this is not a functionality regression even on older assemblers.

Although the compiler is unlikely to generate atomics on its own accord,
this aligns handling of Zacas and Zabha with most other extensions and
improves consistency on how assembly code requiring extra extensions is
written in kernel code.

This is analogous to the use of __LSE_PREAMBLE or .arch_extension lse in
arm64 code.

Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 121.43 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 2459.71 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 3085.53 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 20.21 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.98 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.84 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 83.65 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha"
kdoc
Desc: Detects for kdoc errors
Duration: 0.71 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha"
module-param
Desc: Detect module_param changes
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "riscv: cmpxchg: Use .option arch for Zacas and Zabha"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow__riscv__fixes branch from 8ca72ef to 60e0882 Compare July 19, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants