IMX8MQ MIPI CSI2 setting the CSI CORE clk to 266MHZ causes the CPU hang

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8MQ MIPI CSI2 setting the CSI CORE clk to 266MHZ causes the CPU hang

420 Views
agnel_terry
Contributor III

HI ,

I am doing a V4l2src capture on mipi CSI in IMX8MQ the sensor connected to the IMX8Mq is Toshiba TC358840 , I am able to capture the video for 720P and 1080P30 , When Trying 1080P60 ,I don't see the frame , I Chnaged my Sensor's HSCK to 600Mhz and tried the MIPI CSI of IMX8 with the following assigned-clock-rates = <133000000>, <100000000>, <66000000>;  I dont see a proper Image in the display, Assuming the Core clock and PLL need to be increased for 1080P60, I changed to the following speed assigned-clock-rates = <266000000>, <200000000>, <66000000>; 
if I change the core clock to 266Mhz and after bootup if I start the g-streamer  with v4l2src
gst-launch-1.0 v4l2src device=/dev/video0 ! glimagesink render-rectangle='<0,0
,1920,1080>'
the CPU hangs.

NOTE: I am having the workaround for RX fifo overflow issue , M4 monitor the FIFO level register 0x4c, Even with the workaround the CPu hangs.

 

This issue happens only when I change the CORE clock .

 

Can someone help what I am doing wrong here.

 

Thanks

 

 

0 Kudos
Reply
4 Replies

395 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @agnel_terry!
Thank you for contacting NXP Support!

 

Are you monitoring the CSI register with the M core?

The system can hang if both cores are accessing to the same peripheral.

 

Please check your driver.

 

Best Regards!

Chavira

0 Kudos
Reply

365 Views
agnel_terry
Contributor III

Hi Chavira ,

Thank you for the response, Yes I am monitoring the registers in M4 core, but the same driver and same setup works fine when I set the MIPI CORE clock to 133MHZ , this issue happens only when I increase the MIPI core clock speed, 

Any idea why it happens only when I change the clock speed?

Thanks and Regards

Terry

0 Kudos
Reply

357 Views
Chavira
NXP TechSupport
NXP TechSupport

HI @agnel_terry!

 

The system can hang if both cores are accessing to the same peripheral.

Please check your driver.

 

Best Regards!

Chavira

0 Kudos
Reply

395 Views
agnel_terry
Contributor III

Hi ,

Is there any info for the above  question,

HSCKPRDFRSFBDvideo resolutionsIMX8 MIPI COREIMX8 MIPI PLL
2749090681011251080P24 , 720P60133Mhz100Mhz
5498181361001251080P60266Mhz333Mhz 

 

When setting the Core to 266 and pLL to 333 , CPU hangs.

 

Thanks

Terry

 

0 Kudos
Reply