How can i get memory speed(clock) in imx8mm?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How can i get memory speed(clock) in imx8mm?

跳至解决方案
1,445 次查看
takeshi100
Contributor III

Hi.

I can't get memory speed with lshw etc...

Is there configuration for getting memory speed? 
Or, Is there any other good tools?

■log
root@XXX:~# lshw -short -C memory
H/W path Device Class Description
===================================================
/0/0/0 memory 32KiB L1 Cache
/0/1/0 memory 32KiB L1 Cache
/0/2/0 memory 32KiB L1 Cache
/0/3/0 memory 32KiB L1 Cache
/0/6 memory 1947MiB System memory
root@XXX:~# lshw -C memory
*-cache
description: L1 Cache
physical id: 0
size: 32KiB
*-cache
description: L1 Cache
physical id: 0
size: 32KiB
*-cache
description: L1 Cache
physical id: 0
size: 32KiB
*-cache
description: L1 Cache
physical id: 0
size: 32KiB
*-memory
description: System memory
physical id: 6
size: 1947MiB
root@XXX:~# dmidecode --type 17
# dmidecode 3.4
# No SMBIOS nor DMI entry point found, sorry.

Best Regards.

0 项奖励
回复
1 解答
1,387 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @takeshi100!

The memory frecuency should be dram_core_clk.

 

Best Regards!

Chavira

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,426 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @takeshi100!

Thank you for contacting NXP Support!

 

You can use the mxc_clock_test to know the DDR freqency.

That script is on the unit test folder of ourr BSP.

 

https://github.com/nxp-imx/imx-test/tree/8a1fa37664a1e470cf86f1185c08e265e4602a9b/test/mxc_clock_tes...

 

Best Regards!

Chavira

0 项奖励
回复
1,411 次查看
takeshi100
Contributor III


Hi, Chavira-san.

Thanks for reply.
Is there another way?

 

I'd like to know simpler way.

this way is only that I should refer /sys/kernel/debug/clk/clk_summary. 


■log
/sys/kernel/debug/clk/clk_summary.

root@XXX:/unit_tests/Power_Management# ./dump-clocks-dot.sh

---- Running < dump-clocks-dot.sh > test ----
deprecated!please check /sys/kernel/debug/clk/clk_summary for detailed info
root@XXX:/unit_tests/Power_Management# ./dump-clocks.sh

---- Running < dump-clocks.sh > test ----
deprecated!please check /sys/kernel/debug/clk/clk_summary for detailed info

Best Regards!

0 项奖励
回复
1,399 次查看
takeshi100
Contributor III

Which is memory speed between dram_pll_out and dram_core_clk? or else?

■log

root@XXX:~# cat /sys/kernel/debug/clk/clk_summary | grep dram
dram_apb 1 1 0 160000000 0 0 50000 Y
dram_alt 0 0 0 100000000 0 0 50000 N
dram_alt_root 0 0 0 25000000 0 0 50000 Y
dram_pll_ref_sel 1 1 0 24000000 0 0 50000 Y
dram_pll 1 1 0 600000000 0 0 50000 Y
dram_pll_bypass 1 1 0 600000000 0 0 50000 Y
dram_pll_out 1 1 0 600000000 0 0 50000 Y
dram_core_clk 1 1 0 600000000 0 0 50000 Y
 

0 项奖励
回复
1,388 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @takeshi100!

The memory frecuency should be dram_core_clk.

 

Best Regards!

Chavira

0 项奖励
回复