iMX6ULL, Linux 4.1.15, how to use EPIT to implement accurate periodic interrupts?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

iMX6ULL, Linux 4.1.15, how to use EPIT to implement accurate periodic interrupts?

ソリューションへジャンプ
2,681件の閲覧回数
JanieZee
Contributor I

I want to use EPIT to achieve an interrupt every 156us, but actual tests have found that the interrupt interval is not precisely 156us, with some intervals even reaching the millisecond level.

Why is this happening? What should I do to achieve an accurate 156us periodic interrupt?

Thanks

0 件の賞賛
返信
1 解決策
2,646件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信
4 返答(返信)
2,652件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

How do you call the epit function in your test? Have you write EPIT driver by yourself?

0 件の賞賛
返信
2,650件の閲覧回数
JanieZee
Contributor I

Yes, this is the EPIT driver. Additionally, I have set CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y, but the interrupt interval is still not accurate.

0 件の賞賛
返信
2,647件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信
1,156件の閲覧回数
bighero77
Contributor III
for the first method. the code is here. but would not been build
how can I make this file build?
thanks.
https://github.com/nxp-imx/linux-imx/blob/imx_4.1.15_2.0.0_ga/arch/arm/mach-imx/epit.c
0 件の賞賛
返信