[PATCH 0/5] cpufreq: loongson3: Fix wrong behaviors on multi-node servers

From: Huacai Chen

Date: Tue Aug 18 2026 - 08:40:56 EST


Our server productions (e.g. Loongson-3D6000/3E6000) can have multiple
nodes in one package and SMC mailboxes are also per-node. However, the
current driver has wrong behaviors on multi-node servers, including: id
field in smc_message is too narrow, mutex is not per-node, IOCSR read/
write can only perform on the current node, etc. This series fix all the
above problems.

Hongliang Wang & Huacai Chen (5):
cpufreq: loongson3: Make this drvier depend on MACH_LOONGSON64
cpufreq: loongson3: Adjust the width of id and val in smc_message
cpufreq: loongson3: Replace per-package mutex with per-node
cpufreq: loongson3: Use global physical CPU ID in get/target callbacks
cpufreq: loongson3: Replace IOCSR read/write with MMIO ones

Signed-off-by: Hongliang Wang <wanghongliang@xxxxxxxxxxx>
Signed-off-by: Huacai Chen <chenhuacai@xxxxxxxxxxx>
---
drivers/cpufreq/Kconfig | 1 +
drivers/cpufreq/loongson3_cpufreq.c | 67 ++++++++++++++++++++++++-------------
2 files changed, 44 insertions(+), 24 deletions(-)
---
2.27.0