[openwrt/openwrt] kernel: support RISC-V PMU
LEDE Commits
lede-commits at lists.infradead.org
Sat Mar 23 10:35:18 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/686cc58c10a48b58a9eef601f3697c9ec4019da6
commit 686cc58c10a48b58a9eef601f3697c9ec4019da6
Author: Qingfang Deng <dqfext at gmail.com>
AuthorDate: Tue Mar 12 10:08:30 2024 +0800
kernel: support RISC-V PMU
Add RISC-V PMU config symbols and enable them for riscv64.
Signed-off-by: Qingfang Deng <dqfext at gmail.com>
---
config/Config-kernel.in | 10 ++++++++++
target/linux/generic/config-6.1 | 3 +++
target/linux/generic/config-6.6 | 3 +++
3 files changed, 16 insertions(+)
diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index 2e59bc9551..f4ea6ccbe8 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -50,6 +50,15 @@ config KERNEL_ARM_PMU
default y if TARGET_armsr_armv8
depends on (arm || aarch64)
+config KERNEL_RISCV_PMU
+ bool
+ select KERNEL_RISCV_PMU_SBI
+ depends on riscv64
+
+config KERNEL_RISCV_PMU_SBI
+ bool
+ depends on riscv64
+
config KERNEL_X86_VSYSCALL_EMULATION
bool "Enable vsyscall emulation"
depends on x86_64
@@ -70,6 +79,7 @@ config KERNEL_X86_VSYSCALL_EMULATION
config KERNEL_PERF_EVENTS
bool "Compile the kernel with performance events and counters"
select KERNEL_ARM_PMU if (arm || aarch64)
+ select KERNEL_RISCV_PMU if riscv64
config KERNEL_PROFILING
bool "Compile the kernel with profiling enabled"
diff --git a/target/linux/generic/config-6.1 b/target/linux/generic/config-6.1
index fa82f9cb9a..5bac0ee57a 100644
--- a/target/linux/generic/config-6.1
+++ b/target/linux/generic/config-6.1
@@ -5304,6 +5304,9 @@ CONFIG_RFKILL=y
# CONFIG_RING_BUFFER_BENCHMARK is not set
# CONFIG_RING_BUFFER_STARTUP_TEST is not set
# CONFIG_RING_BUFFER_VALIDATE_TIME_DELTAS is not set
+# CONFIG_RISCV_PMU is not set
+# CONFIG_RISCV_PMU_LEGACY is not set
+# CONFIG_RISCV_PMU_SBI is not set
# CONFIG_RMI4_CORE is not set
# CONFIG_RMNET is not set
# CONFIG_ROCKCHIP_PHY is not set
diff --git a/target/linux/generic/config-6.6 b/target/linux/generic/config-6.6
index d012750ba1..4e26f2af9b 100644
--- a/target/linux/generic/config-6.6
+++ b/target/linux/generic/config-6.6
@@ -5426,6 +5426,9 @@ CONFIG_RFKILL=y
# CONFIG_RING_BUFFER_BENCHMARK is not set
# CONFIG_RING_BUFFER_STARTUP_TEST is not set
# CONFIG_RING_BUFFER_VALIDATE_TIME_DELTAS is not set
+# CONFIG_RISCV_PMU is not set
+# CONFIG_RISCV_PMU_LEGACY is not set
+# CONFIG_RISCV_PMU_SBI is not set
# CONFIG_RMI4_CORE is not set
# CONFIG_RMNET is not set
# CONFIG_ROCKCHIP_ERRATUM_3588001 is not set
More information about the lede-commits
mailing list