How to properly reset the dpu core after its running?

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

How to properly reset the dpu core after its running?

1,356 Views
tommalnar
Contributor III

We write our own OS-agnostic drivers for the display path in the i.MX8QM.  

They cover the dpu, hdp and LVDS blocks.  We are currently encountering an issue with the dpu and were wondering if you could provide any information regarding the sequence to correct the issue. 

The issue occurs when we try to reinitialize the dpu core a second time.  Basically killing/restarting our driver after video is currently being shown by the dpu.  On the second initialization the dpu core will not fetch frame buffer buffer data and display it, but all other aspects of the dpu appear to be working.  The timing is correctly shown on the monitor, just black screen.  

We have confirmed when this issue occurs the built in frame generator test pattern in framegen0_FgInCtrl still works. 

The built in framegen constant color via framegen0_FgCCR also works.  

Only the mechanism to fetch real frame buffer data appears to be locked up.

We have tried issuing clock/power disables for the dpu core using scu commands but nothing seems to truly reset the dpu core. 

Can you please provide the sequence required to reset the dpu properly.  

Our drivers support both the first gen and second gen i.MX8QM silicon revisions.

Tom

0 Kudos
Reply
2 Replies

1,243 Views
igorpadykov
NXP Employee
NXP Employee

Hi Tom

one can look at some reset functions in dpu driver, like dpu-crtc.c, dpu-plane.c

dpu\imx\drm\gpu\drivers - linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,243 Views
tommalnar
Contributor III

Igor, with your advice we were able to solve the issue.   The piece our driver was missing was the logic in framegen_wait_done().  We were not waiting to clear the 2 pending frames in the framegen before trying to reinitialize.  This causes framegen lockup.  

Thank you so much for the advice!

Tom

0 Kudos
Reply