Bug in busfreq driver

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

Bug in busfreq driver

跳至解决方案
1,928 次查看
maximkuk
Contributor III

Hello!

On our custom board (imx6d + lpddr2, pop-package) we faced with kernel panic after some tome of work. After some reserces I detected that busfreq causes this.

The thing is that before change ddr frequancy, driver (in function "update_lpddr2_freq_smp") compares new freq value with current and if they equals it returns 0. After that driver configures clock parents and if frequancies not configured before it (because update_lpddr2_freq_smp doesn't actually work) system crashes.

Some times in "update_lpddr2_freq_smp" curr_ddr_rate doesn't changes after previous call. Make it volatile not help. If not check curr_ddr_rate - all works perfect.

Why curr_ddr_rate doesn't change sometimes? And do we need curr_ddr_rate if all other work doings unconditionally?

标签 (3)
0 项奖励
回复
1 解答
1,604 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Maxim

please try ddr test and use nxp bsps described on below link

i.MX6/7 DDR Stress Test Tool V2.80 

i.MX Software|NXP 

https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.1.15_2.0.0_galinux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,605 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Maxim

please try ddr test and use nxp bsps described on below link

i.MX6/7 DDR Stress Test Tool V2.80 

i.MX Software|NXP 

https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.1.15_2.0.0_galinux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,604 次查看
maximkuk
Contributor III

Thank you for answer and useful links!

It looks like I found the same solution - update curr_ddr_rate before changing ddr frequency.

0 项奖励
回复