GPT4 Peripheral clock stops at m4 when Linux starts

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

GPT4 Peripheral clock stops at m4 when Linux starts

1,397 次查看
mehmetrizaoz
Contributor I

Hi,

I use imx7 dual host. I use gpt4 with 24mhz clock with m4 core. Gpt4 interrupt works correctly until starting Linux. As soon as login prompt entrance gpt clock corrupts, timer can not generate timer interrupt but m4 is still working.

I don't use gpt4 at a7 core size. I also checked corresponding  pda register. I used hw semaphore 1 and locked gpt4 from m4 side.

What could be the reason for gpt4 clock corruption at linux side? 

Thanks in advance...

0 项奖励
回复
4 回复数

1,350 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

This may be caused because Linux gates the Clock when it is not used, please try by using the following command at uboot.
=> setenv mmcargs "${mmcargs} clk_ignore_unused"

Best regards/Saludos,
Aldo.

0 项奖励
回复

1,336 次查看
mehmetrizaoz
Contributor I

Hi Algo,

Thank you for your reply. I tried it and unfortunately the problem still exists.

 

0 项奖励
回复

1,326 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you share both the kernel and the uboot version that you are using?
Also, when you see the erratic behaviour does it stop completely (stop counting)?

Best regards/Saludos,
Aldo.

0 项奖励
回复

1,282 次查看
mehmetrizaoz
Contributor I
Hello,
Kernel version: 5.4.129-5.4.0
u-boot version: 2020.07-5.4.0
timer clock disables just before login, around 8.sec after booting

Thanks
0 项奖励
回复