Skip to content

Bump Linux Kernel to v6.12 #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025

Conversation

Cuda-Chen
Copy link
Collaborator

@Cuda-Chen Cuda-Chen commented Jun 3, 2025

Linux Kernel v6.7 propose a solution to resolve sound stutter effect. Therefore, upgrade Linux Kernel version to v6.12 as it is an LTS version with the proposed solution included.

Also, this commit disables the following RISC-V platform specific settings in Linux Kernel compilation configuration:

  1. Zawrs extension support for more efficient busy waiting.
  2. Zba extension support for bit manipulation instructions.
  3. Zbb extension support for bit manipulation instructions.
  4. Zbc extension support for carry-less multiplication instructions.
  5. Zicbom extension support for non-coherent DMA operation.
  6. Zicboz extension support for faster zeroing of memory.
  7. Vendor extensions support (including Andes).

@Cuda-Chen Cuda-Chen requested a review from jserv June 3, 2025 10:11
Copy link
Collaborator

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refresh Linux kernel configurations accordingly.

@Cuda-Chen
Copy link
Collaborator Author

Refresh Linux kernel configurations accordingly.

While fixing, I would like to ask whether the "Linux kernel configuration" is meant buildroot, or some attributes in configs/linux.confg should be updated?

@Cuda-Chen Cuda-Chen force-pushed the bump-kernel-to-6-12-y branch from a6e22d1 to 8698633 Compare June 3, 2025 12:18
@Cuda-Chen Cuda-Chen requested a review from jserv June 3, 2025 14:13
@jserv
Copy link
Collaborator

jserv commented Jun 3, 2025

I would like to ask whether the "Linux kernel configuration" is meant buildroot, or some attributes in configs/linux.confg should be updated?

You should update configs/linux.config with the GNU toolchain built with buildroot.

@Cuda-Chen Cuda-Chen force-pushed the bump-kernel-to-6-12-y branch from 8698633 to 6db66d8 Compare June 3, 2025 22:57
@jserv
Copy link
Collaborator

jserv commented Jun 4, 2025

After running scripts/build-image.sh, change the directory to linux and run diff -u .config.old .config. Then, review the kernel configurations as well.

@jserv
Copy link
Collaborator

jserv commented Jun 4, 2025

The following can be excluded (Platform type):

  • Zawrs extension support for more efficient busy waiting
  • Zba extension support for bit manipulation instructions
  • Zbb extension support for bit manipulation instructions
  • Zbc extension support for carry-less multiplication instructions
  • Zicbom extension support for non-coherent DMA operation
  • Zicboz extension support for faster zeroing of memory
  • Vendor extensions ---> Andes ---> Andes vendor extension support

Kernel configuration changes:

@@ -293,15 +293,15 @@
 CONFIG_RISCV_ALTERNATIVE=y
 # CONFIG_RISCV_ISA_C is not set
 CONFIG_TOOLCHAIN_HAS_V=y
-CONFIG_RISCV_ISA_ZAWRS=y
+# CONFIG_RISCV_ISA_ZAWRS is not set
 CONFIG_TOOLCHAIN_HAS_ZBB=y
 CONFIG_TOOLCHAIN_HAS_VECTOR_CRYPTO=y
-CONFIG_RISCV_ISA_ZBA=y
-CONFIG_RISCV_ISA_ZBB=y
+# CONFIG_RISCV_ISA_ZBA is not set
+# CONFIG_RISCV_ISA_ZBB is not set
 CONFIG_TOOLCHAIN_HAS_ZBC=y
-CONFIG_RISCV_ISA_ZBC=y
+# CONFIG_RISCV_ISA_ZBC is not set
 # CONFIG_RISCV_ISA_ZICBOM is not set
-CONFIG_RISCV_ISA_ZICBOZ=y
+# CONFIG_RISCV_ISA_ZICBOZ is not set
 CONFIG_TOOLCHAIN_NEEDS_EXPLICIT_ZICSR_ZIFENCEI=y
 # CONFIG_FPU is not set
 CONFIG_IRQ_STACKS=y
@@ -315,12 +315,11 @@
 #
 # Vendor extensions
 #
-CONFIG_RISCV_ISA_VENDOR_EXT=y
 
 #
 # Andes
 #
-CONFIG_RISCV_ISA_VENDOR_EXT_ANDES=y
+# CONFIG_RISCV_ISA_VENDOR_EXT_ANDES is not set
 # end of Andes
 # end of Vendor extensions
 # end of Platform type

@Cuda-Chen Cuda-Chen force-pushed the bump-kernel-to-6-12-y branch from fe821b8 to bc54ed4 Compare June 4, 2025 04:31
Copy link
Collaborator

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refine git commit messages to denote the exclusion of recent RISC-V extensions.

Linux Kernel v6.7 propose a solution to resolve sound stutter effect.
Therefore, upgrade Linux Kernel version to v6.12 as it is an LTS
version with the proposed solution included.

Also, this commit disables the following
RISC-V platform specific settings in Linux Kernel compilation configuration:

1. Zawrs extension support for more efficient busy waiting.
2. Zba extension support for bit manipulation instructions.
3. Zbb extension support for bit manipulation instructions.
4. Zbc extension support for carry-less multiplication instructions.
5. Zicbom extension support for non-coherent DMA operation.
6. Zicboz extension support for faster zeroing of memory.
7. Vendor extensions support (including Andes).
@Cuda-Chen Cuda-Chen force-pushed the bump-kernel-to-6-12-y branch from bc54ed4 to f3c8a8e Compare June 4, 2025 06:39
@Cuda-Chen Cuda-Chen requested a review from jserv June 4, 2025 06:43
@jserv jserv merged commit 3aa76a9 into sysprog21:master Jun 4, 2025
3 checks passed
@jserv
Copy link
Collaborator

jserv commented Jun 4, 2025

Thank @Cuda-Chen for contributing!

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