mbox series

[0/2] LoongArch: Add Loongson-3 CPUFreq driver support

Message ID 20240612064205.2041548-1-chenhuacai@loongson.cn (mailing list archive)
Headers show
Series LoongArch: Add Loongson-3 CPUFreq driver support | expand

Message

Huacai Chen June 12, 2024, 6:42 a.m. UTC
This series add architectural preparation and CPUFreq driver for
Loongson-3 (based on LoongArch).

Some of LoongArch processors support DVFS, their IOCSR.FEATURES has
IOCSRF_FREQSCALE set. And they has a micro-core in the package called
SMC (System Management Controller) to scale frequency, voltage, etc.

Huacai Chen(2):
 LoongArch: Add architectural preparation for CPUFreq.
 cpufreq: Add Loongson-3 CPUFreq driver support.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
---
2.27.0

Comments

Xi Ruoyao June 24, 2024, 1:30 p.m. UTC | #1
On Wed, 2024-06-12 at 14:42 +0800, Huacai Chen wrote:
> This series add architectural preparation and CPUFreq driver for
> Loongson-3 (based on LoongArch).
> 
> Some of LoongArch processors support DVFS, their IOCSR.FEATURES has
> IOCSRF_FREQSCALE set. And they has a micro-core in the package called
> SMC (System Management Controller) to scale frequency, voltage, etc.
> 
> Huacai Chen(2):
>  LoongArch: Add architectural preparation for CPUFreq.
>  cpufreq: Add Loongson-3 CPUFreq driver support.
> 
> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>

A question: is it OK to enable cpufreq when overclocking is set via the
firmware?
Huacai Chen June 24, 2024, 1:59 p.m. UTC | #2
On Mon, Jun 24, 2024 at 9:30 PM Xi Ruoyao <xry111@xry111.site> wrote:
>
> On Wed, 2024-06-12 at 14:42 +0800, Huacai Chen wrote:
> > This series add architectural preparation and CPUFreq driver for
> > Loongson-3 (based on LoongArch).
> >
> > Some of LoongArch processors support DVFS, their IOCSR.FEATURES has
> > IOCSRF_FREQSCALE set. And they has a micro-core in the package called
> > SMC (System Management Controller) to scale frequency, voltage, etc.
> >
> > Huacai Chen(2):
> >  LoongArch: Add architectural preparation for CPUFreq.
> >  cpufreq: Add Loongson-3 CPUFreq driver support.
> >
> > Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
>
> A question: is it OK to enable cpufreq when overclocking is set via the
> firmware?
Yes, it's OK.

>
> --
> Xi Ruoyao <xry111@xry111.site>
> School of Aerospace Science and Technology, Xidian University
>