Hello,
I am currently using the S32G2 A53 core.
I attempted to obtain the core clock by enabling CPU_FREQ in the Kernel config and using cpufrequtils, but it appears to be unsupported.
Can I verify if the core clock is currently set to 1GHz through the CPU registers?
As shown in the figure below, I tried to check by reading the MC_CGM_1 registers, but I am uncertain if these registers provide that information.
```
# lscpu
Architecture: aarch64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 2
Vendor ID: ARM
Model: 4
Model name: Cortex-A53
Stepping: r0p4
BogoMIPS: 10.00
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Spec store bypass: Not affected
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
```
```
# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
no or unknown cpufreq driver is active on this CPU
analyzing CPU 1:
no or unknown cpufreq driver is active on this CPU
analyzing CPU 2:
no or unknown cpufreq driver is active on this CPU
analyzing CPU 3:
no or unknown cpufreq driver is active on this CPU
```
已解决! 转到解答。
Hi,
Which BSP version are you using? Under BSP38.0 we see the following information on regards of core clock frequency [Page 123, BSP38.0 User Manual for S32G2 Platforms]:
Please, let us know.
Hello,
Thank you for your message.
I am using BSP34.0.1. I have checked the values through the manual page you provided.
```
cat /sys/kernel/debug/clk/a53/clk_rate
1000000000
```
Thank you for your assistance.
Hi,
Which BSP version are you using? Under BSP38.0 we see the following information on regards of core clock frequency [Page 123, BSP38.0 User Manual for S32G2 Platforms]:
Please, let us know.