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

Huacai Chen posted 5 patches 1 month, 1 week ago
There is a newer version of this series
drivers/cpufreq/Kconfig             |  1 +
drivers/cpufreq/loongson3_cpufreq.c | 67 ++++++++++++++++++++++++-------------
2 files changed, 44 insertions(+), 24 deletions(-)
[PATCH 0/5] cpufreq: loongson3: Fix wrong behaviors on multi-node servers
Posted by Huacai Chen 1 month, 1 week ago
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@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
---
 drivers/cpufreq/Kconfig             |  1 +
 drivers/cpufreq/loongson3_cpufreq.c | 67 ++++++++++++++++++++++++-------------
 2 files changed, 44 insertions(+), 24 deletions(-)
---
2.27.0