iMX8QM - Pixel data loss from camera capture

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

iMX8QM - Pixel data loss from camera capture

Jump to solution
3,048 Views
sig0912
Contributor III

Hello community,

I am working with cameras on iMX8QM with Android 12.

When I enable up to 3 cameras at once everything works fine and I am able to preview the camera image.

But when 4 cameras are enable I get the following error message from ISI
mxc-isi 58100000.isi: mxc_isi_irq_handler, IRQ Panic OFLW Error stat=0x40040200 from CHNL_STS register

It suggests to increase the AXI bus priority for the Y/RGB channel.
Can you please guide me to where I can change the AXI bus priority?

It also refers to "The threshold for this panic interrupt can be set in the CTRL2 register"
Where can I find the CTRL2 register? I could not identify it in the source code

sig0912_0-1723033984530.pngsig0912_0-1723033984530.png

This issue cause some pixel data to be lost as can be seen on the picture below

sig0912_1-1723034437825.jpegsig0912_1-1723034437825.jpeg

Thank You

Best Regards

 

0 Kudos
Reply
1 Solution
2,849 Views
sig0912
Contributor III

Update: Using 2 data lanes instead of 4 solved the issue

View solution in original post

0 Kudos
Reply
3 Replies
3,031 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Which exactly error are you seeing? if the pixel loss check your dtb.

regards

0 Kudos
Reply
3,010 Views
sig0912
Contributor III

Hello,

Thanks for your answer.

This is the error that I am seeing all the time as the camera preview is enabled. Looking at the datasheet it suggests that I increase the AXI bus priority for the Y/RGB channel.

But I don't know how to change that parameter.

sig0912_0-1723107946947.pngsig0912_0-1723107946947.png

Thanks

Best Regards

0 Kudos
Reply
2,850 Views
sig0912
Contributor III

Update: Using 2 data lanes instead of 4 solved the issue

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1927430%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EiMX8QM%20-%20Pixel%20data%20loss%20from%20camera%20capture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1927430%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20community%2C%3C%2FP%3E%3CP%3EI%20am%20working%20with%20cameras%20on%20iMX8QM%20with%20Android%2012.%3C%2FP%3E%3CP%3EWhen%20I%20enable%20up%20to%203%20cameras%20at%20once%20everything%20works%20fine%20and%20I%20am%20able%20to%20preview%20the%20camera%20image.%3C%2FP%3E%3CP%3EBut%20when%204%20cameras%20are%20enable%20I%20get%20the%20following%20error%20message%20from%20ISI%3CBR%20%2F%3E%3CSTRONG%3Emxc-isi%2058100000.isi%3A%20mxc_isi_irq_handler%2C%20IRQ%20Panic%20OFLW%20Error%20stat%3D0x40040200%20from%20CHNL_STS%20register%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIt%20suggests%20to%26nbsp%3Bincrease%20the%20AXI%20bus%20priority%20for%20the%20Y%2FRGB%20channel.%3CSTRONG%3E%3CBR%20%2F%3ECan%20you%20please%20guide%20me%20to%20where%20I%20can%20change%20the%20AXI%20bus%20priority%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIt%20also%20refers%20to%20%22The%20threshold%20for%20this%20panic%20interrupt%20can%20be%20set%20in%20the%20CTRL2%20register%22%3CSTRONG%3E%3CBR%20%2F%3EWhere%20can%20I%20find%20the%20CTRL2%20register%3F%20I%20could%20not%20identify%20it%20in%20the%20source%20code%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sig0912_0-1723033984530.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sig0912_0-1723033984530.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292412i5E384DF0CC338370%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sig0912_0-1723033984530.png%22%20alt%3D%22sig0912_0-1723033984530.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Esig0912_0-1723033984530.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThis%20issue%20cause%20some%20pixel%20data%20to%20be%20lost%20as%20can%20be%20seen%20on%20the%20picture%20below%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sig0912_1-1723034437825.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sig0912_1-1723034437825.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292413i6F70B70930AF0D64%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sig0912_1-1723034437825.jpeg%22%20alt%3D%22sig0912_1-1723034437825.jpeg%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Esig0912_1-1723034437825.jpeg%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThank%20You%3C%2FP%3E%3CP%3EBest%20Regards%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1927430%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAndroid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGraphics%20%26amp%3B%20Display%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMultimedia%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1946247%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20iMX8QM%20-%20Pixel%20data%20loss%20from%20camera%20capture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1946247%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EUpdate%3A%20Using%202%20data%20lanes%20instead%20of%204%20solved%20the%20issue%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1928114%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20iMX8QM%20-%20Pixel%20data%20loss%20from%20camera%20capture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1928114%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EThanks%20for%20your%20answer.%3C%2FP%3E%3CP%3EThis%20is%20the%20error%20that%20I%20am%20seeing%20all%20the%20time%20as%20the%20camera%20preview%20is%20enabled.%20Looking%20at%20the%20datasheet%20it%20suggests%20that%20I%26nbsp%3B%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3Eincrease%20the%20AXI%20bus%20priority%20for%20the%20Y%2FRGB%20channel.%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%3EBut%20I%20don't%20know%20how%20to%20change%20that%20parameter.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sig0912_0-1723107946947.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sig0912_0-1723107946947.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F292569iEE44977EB5246FC8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sig0912_0-1723107946947.png%22%20alt%3D%22sig0912_0-1723107946947.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Esig0912_0-1723107946947.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EBest%20Regards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1927494%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20iMX8QM%20-%20Pixel%20data%20loss%20from%20camera%20capture%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1927494%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EWhich%20exactly%20error%20are%20you%20seeing%3F%20if%20the%20pixel%20loss%20check%20your%20dtb.%3C%2FP%3E%0A%3CP%3Eregards%3C%2FP%3E%3C%2FLINGO-BODY%3E