Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH V2 0/5] cpufreq: loongson3: Fix wrong behaviors on multi-node servers
@ 2026-08-28  3:11 Huacai Chen
  2026-08-28  3:11 ` [PATCH V2 1/5] cpufreq: loongson3: Make this driver depend on MACH_LOONGSON64 Huacai Chen
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Huacai Chen @ 2026-08-28  3:11 UTC (permalink / raw)
  To: Rafael J . Wysocki, Viresh Kumar, Huacai Chen
  Cc: loongarch, linux-pm, linux-kernel, Xuerui Wang, Jiaxun Yang,
	Huacai Chen, Hongliang Wang

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.

V1 -> V2:
1. Fix typos and add Fixes tags.
2. Fix loongson3_cpufreq_get() return values.
3. Use nid_to_addrbase() rather than hard code.
4. Guard some code with CONFIG_SMP to avoid build errors.

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@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
---
 drivers/cpufreq/Kconfig             |  1 +
 drivers/cpufreq/loongson3_cpufreq.c | 72 ++++++++++++++++++++++++-------------
 2 files changed, 48 insertions(+), 25 deletions(-)
---
2.27.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-09-01  8:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-28  3:11 [PATCH V2 0/5] cpufreq: loongson3: Fix wrong behaviors on multi-node servers Huacai Chen
2026-08-28  3:11 ` [PATCH V2 1/5] cpufreq: loongson3: Make this driver depend on MACH_LOONGSON64 Huacai Chen
2026-08-28  3:11 ` [PATCH V2 2/5] cpufreq: loongson3: Adjust the width of id and val in smc_message Huacai Chen
2026-08-28  3:11 ` [PATCH V2 3/5] cpufreq: loongson3: Replace per-package mutex with per-node Huacai Chen
2026-08-28  3:12 ` [PATCH V2 4/5] cpufreq: loongson3: Use global physical CPU ID in get/target callbacks Huacai Chen
2026-08-28  3:12 ` [PATCH V2 5/5] cpufreq: loongson3: Replace IOCSR read/write with MMIO ones Huacai Chen
2026-09-01  8:01 ` [PATCH V2 0/5] cpufreq: loongson3: Fix wrong behaviors on multi-node servers Zhongqiu Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox