imx8mp gpu Shader frequency drop

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

imx8mp gpu Shader frequency drop

606 Views
jerryc
Contributor I

 

Hello,

When performing extensive burn-in testing on our IMX8MP-based IP cameras, we noticed that some cameras start showing abnormal video output after running for a period of time. Using gputop, we observed that the 3D: GC8000, Rev: 8002 Shader frequency throttles down to 15 MHz (as shown in the image).
We checked the temperature using the command:cat /sys/class/thermal/thermal*/temp

and the temperature never exceeded 75°C.

Could you please help explain what might cause the 3D: GC8000, Rev:8002 Shader to throttle down?What can we do to prevent this issue?

P.S. The IP camera software performs H.264 encoding and fire/smoke video analytics.

 

4D2.png

0 Kudos
Reply
4 Replies

560 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @jerryc 

Can you share the BSP verison and reproducible materials?

The possible reasons:

1. PMIC powerrail instability (voltage supplying the GPU) or undervoltage causes automatic throttling.

2. When shared memory bandwidth are exhausted (when the ISP/H.264 encoder and NPU simultaneously compete for bandwidth/power), the system reduces the GPU to its minimum frequency to ensure overall stability.

You can try using a simpler H.264 stream to reduce the load and see if the issue persists.


Best Regards,
Zhiming

0 Kudos
Reply

476 Views
jerryc
Contributor I

Hi Zhiming_Liu:

BSP verison:6.6-nanbield

Sensor:os05a10(2592x1944) or os08a20(3840x2160)

Brief description of the software functionality:
There are three H.264 encoded streams (1920×1080 @ 30 fps, 320×240 @ 30 fps, and 1920×1080 @ 5 fps).
The system uses V4L2 functions to obtain VI YUV data and perform H.264 encoding.
The G2D API is used for resizing and RGB conversion.
For the AI module, image analysis is performed using the original-resolution VI RGB data.

0 Kudos
Reply

425 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @jerryc 

Will there still be problems after reducing the load?

Best Regards,
Zhiming

0 Kudos
Reply

381 Views
jerryc
Contributor I

Hi Zhiming_Liu:

As described previously, when performing a burn-in test with the software functionalities, excluding AI image analysis but retaining the camera's original features, we did not observe any GPU downclocking.

However, adding AI image analysis to the camera's original features is the purpose for which we developed this product using the i.MX 8M Plus. Therefore, the architecture of the camera's original features cannot be modified.

We can only attempt to mitigate the abnormal GPU downclocking phenomenon by reducing the load of the AI image analysis or by lowering the GPU frequency. Currently, our burn-in test is being performed with the GPU frequency adjusted from 1000 MHz down to 900 MHz.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2248990%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eimx8mp%20gpu%20Shader%20frequency%20drop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248990%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBR%20%2F%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EWhen%20performing%20extensive%20burn-in%20testing%20on%20our%20IMX8MP-based%20IP%20cameras%2C%20we%20noticed%20that%20some%20cameras%20start%20showing%20abnormal%20video%20output%20after%20running%20for%20a%20period%20of%20time.%20Using%20%3CSTRONG%3Egputop%3C%2FSTRONG%3E%2C%20we%20observed%20that%20the%20%3CSTRONG%3E3D%3A%20GC8000%2C%20Rev%3A%208002%20Shader%20frequency%3C%2FSTRONG%3E%20throttles%20down%20to%20%3CSTRONG%3E15%20MHz%3C%2FSTRONG%3E%20(as%20shown%20in%20the%20image).%3CBR%20%2F%3EWe%20checked%20the%20temperature%20using%20the%20command%3A%3CSPAN%20class%3D%22%22%3Ecat%3C%2FSPAN%3E%3CSPAN%3E%20%2Fsys%2Fclass%2Fthermal%2Fthermal*%2Ftemp%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Eand%20the%20temperature%20never%20exceeded%20%3CSTRONG%3E75%C2%B0C%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3ECould%20you%20please%20help%20explain%20what%20might%20cause%20the%20%3CSTRONG%3E3D%3A%20GC8000%2C%20Rev%3A8002%20Shader%3C%2FSTRONG%3E%20to%20throttle%20down%3FWhat%20can%20we%20do%20to%20prevent%20this%20issue%3F%3C%2FP%3E%3CP%3EP.S.%20The%20IP%20camera%20software%20performs%20H.264%20encoding%20and%20fire%2Fsmoke%20video%20analytics.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%224D2.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%224D2.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%224D2.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%224D2.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%224D2.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%224D2.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367272i87C396250B86D5F9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%224D2.png%22%20alt%3D%224D2.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2250646%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx8mp%20gpu%20Shader%20frequency%20drop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250646%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F217802%22%20target%3D%22_blank%22%3E%40jerryc%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20share%20the%20BSP%20verison%20and%20reproducible%20materials%3F%3C%2FP%3E%0A%3CP%3EThe%20possible%20reasons%3A%3C%2FP%3E%0A%3CP%3E1.%20PMIC%20powerrail%20instability%20(voltage%20supplying%20the%20GPU)%20or%20undervoltage%20causes%20automatic%20throttling.%3C%2FP%3E%0A%3CP%3E2.%26nbsp%3BWhen%20shared%20memory%20bandwidth%20are%20exhausted%20(when%20the%20ISP%2FH.264%20encoder%20and%20NPU%20simultaneously%20compete%20for%20bandwidth%2Fpower)%2C%20the%20system%20reduces%20the%20GPU%20to%20its%20minimum%20frequency%20to%20ensure%20overall%20stability.%3C%2FP%3E%0A%3CP%3EYou%20can%20try%20using%20a%20simpler%20H.264%20stream%20to%20reduce%20the%20load%20and%20see%20if%20the%20issue%20persists.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2253063%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx8mp%20gpu%20Shader%20frequency%20drop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2253063%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3BZhiming_Liu%3A%3C%2FP%3E%3CP%3E%3CSPAN%3EBSP%20verison%3A6.6-nanbield%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ESensor%3Aos05a10(2592x1944)%20or%20os08a20(3840x2160)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EBrief%20description%20of%20the%20software%20functionality%3A%3C%2FSTRONG%3E%3CBR%20%2F%3EThere%20are%20three%20H.264%20encoded%20streams%20(1920%C3%971080%20%40%2030%20fps%2C%20320%C3%97240%20%40%2030%20fps%2C%20and%201920%C3%971080%20%40%205%20fps).%3CBR%20%2F%3EThe%20system%20uses%20V4L2%20functions%20to%20obtain%20VI%20YUV%20data%20and%20perform%20H.264%20encoding.%3CBR%20%2F%3EThe%20G2D%20API%20is%20used%20for%20resizing%20and%20RGB%20conversion.%3CBR%20%2F%3EFor%20the%20AI%20module%2C%20image%20analysis%20is%20performed%20using%20the%20original-resolution%20VI%20RGB%20data.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2254862%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx8mp%20gpu%20Shader%20frequency%20drop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2254862%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F217802%22%20target%3D%22_blank%22%3E%40jerryc%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EWill%20there%20still%20be%20problems%20after%20reducing%20the%20load%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2256015%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx8mp%20gpu%20Shader%20frequency%20drop%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2256015%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHi%26nbsp%3BZhiming_Liu%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAs%20described%20previously%2C%20when%20performing%20a%20burn-in%20test%20with%20the%20software%20functionalities%2C%20excluding%20AI%20image%20analysis%20but%20retaining%20the%20camera's%20original%20features%2C%20we%20did%20not%20observe%20any%20GPU%20downclocking.%3C%2FP%3E%3CP%3EHowever%2C%20adding%20AI%20image%20analysis%20to%20the%20camera's%20original%20features%20is%20the%20purpose%20for%20which%20we%20developed%20this%20product%20using%20the%20i.MX%208M%20Plus.%20Therefore%2C%20the%20architecture%20of%20the%20camera's%20original%20features%20cannot%20be%20modified.%3C%2FP%3E%3CP%3EWe%20can%20only%20attempt%20to%20mitigate%20the%20abnormal%20GPU%20downclocking%20phenomenon%20by%20reducing%20the%20load%20of%20the%20AI%20image%20analysis%20or%20by%20lowering%20the%20GPU%20frequency.%20Currently%2C%20our%20burn-in%20test%20is%20being%20performed%20with%20the%20GPU%20frequency%20adjusted%20from%201000%20MHz%20down%20to%20900%20MHz.%3C%2FP%3E%3C%2FLINGO-BODY%3E