imx8qm linux5.4 GlTexDirectVIVMap cause gpu hangs

cancel
Showing results for 
Search instead for 
Did you mean: 

imx8qm linux5.4 GlTexDirectVIVMap cause gpu hangs

28 Views
Contributor III

Hi:

I use the opengl + GlTexDirectVIVMap as demoApp to display the camera data which is come from max9286.

My demoApp works in imx8qm + linux4.14,  however, when I porting My demoApp to linux5.4. I got the error print as below :

root@imx8qmmek:~/camera# ./vivmap
cur index 0 devname /dev/video0
Width = 1280 Height = 792
Image size = 2027520
Pixelformat YUYV
VIDIOC_G_PARM failed
WxH@fps = 1280x792@30 Image size = 2027520
buffer[0] startAddr=0x93cf2000, offset=0x0, buf_si[ 50.506085] bypass csc
ze=2027520
buffer[1] startAddr=0x93b03000, offset=0x1ef000, buf_[ 50.510213] input fmt YUV4
size=2027520
buffer[2] startAddr=0x93914000, offset=0x3de000, bu[ 50.518565] output fmt YUYV
f_size=2027520
buffer[3] startAddr=0x93725000, offset=0x5cd000, buf_size=2027520
[ 50.846968] max9286_s_stream
[ 50.851787] AXI BUS ERROR
[ 50.854457] AXI BUS ERROR
[ 50.857103] GPU[0](ChipModel=0x7000 ChipRevision=0x6009):
[ 50.862882] GPU[1](ChipModel=0x7000 ChipRevision=0x6009):
[ 50.868299] **************************
[ 50.872074] **************************
[ 50.875830] *** GPU STATE DUMP ***
[ 50.879592] *** GPU STATE DUMP ***
[ 50.883351] **************************
[ 50.887106] **************************
[ 50.890868] axi = 0x000000AF
[ 50.894360] axi = 0x000000AF
[ 50.897868] idle = 0x7FFFBFFE
[ 50.901616] idle = 0x7FFFFFFE
[ 50.905121] FE not idle
[ 50.907927] FE not idle
[ 50.910733] DMA address is constant, but state is changing:
[ 50.916486] MC not idle
[ 50.919284] 0x00000800
[ 50.921984] 0x00000000
[ 50.924704] DMA address is constant, but state is changing:
[ 50.930475] dmaLow = 0x40000002
[ 50.933972] 0x00000800
[ 50.936693] dmaHigh = 0x96103798
[ 50.940209] dmaState = 0x00000000
[ 50.943734] 0x00000000
[ 50.946443] command state = 0 (PAR_IDLE_ST)
[ 50.951517] dmaLow = 0x40000002
[ 50.955016] command DMA state = 0 (CMD_IDLE_ST)
[ 50.960084] dmaHigh = 0x96101E38
[ 50.963603] dmaState = 0x00000000
[ 50.967123] command fetch state = 0 (FET_IDLE_ST)
[ 50.972182] command state = 0 (PAR_IDLE_ST)
[ 50.977273] command DMA state = 0 (CMD_IDLE_ST)
[ 50.982361] DMA request state = 0 (REQ_IDLE_ST)
[ 50.987420] command fetch state = 0 (FET_IDLE_ST)
[ 50.992494] cal state = 0 (CAL_IDLE_ST)
[ 50.997557] DMA request state = 0 (REQ_IDLE_ST)
[ 51.002616] VE request state = 0 (VER_IDLE_ST)
[ 51.007681] Debug registers:
[ 51.010753] cal state = 0 (CAL_IDLE_ST)
[ 51.015824] RA[0] debug registers:
[ 51.019580] VE request state = 0 (VER_IDLE_ST)
[ 51.024654] [00] 216FD500 08621EE7 08621EE7 00000918 031F0008 00000100 04844F23 6810805F
[ 51.033096] Debug registers:
[ 51.036161] [08] 911D7E00 00000000 00000000 00000000 00000030 1E12B2F1 29D71B5A 00000000
[ 51.044637] [10] 1E17B597 D13203E0 3A000000 12344321 12344321 12344321 12344321 12344321
[ 51.053110] RA[0] debug registers:
[ 51.056874] [18] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321
[ 51.065323] [00] 21AED800 0871A3E6 0871A3E6 00000B0E 031F0008 00000422 04844F23 6810805F
[ 51.073795] [20] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321
[ 51.082253] [28] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321
[ 51.090722] [08] 911D7E00 00000000 00000000 00000000 00000030 1E370012 2EAD21DB 00000000
[ 51.099179] [30] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321
[ 51.107639] [10] 1E3C10C2 D13203FB 3A000000 12344321 12344321 12344321 12344321 12344321
[ 51.116103] [38] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321
[ 51.124556] [18] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321
[ 51.133011] [40] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321
[ 51.141460] [20] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321
[ 51.149931] [48] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321
[ 51.158395] [28] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321
[ 51.166855] [50] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321
[ 51.175310] [30] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321
[ 51.183784] [58] 12344321 12344321 12344321 12344321 12344321 12344321 12344321 12344321

 

Best regards,

Jacky

0 Kudos
1 Reply

11 Views
NXP TechSupport
NXP TechSupport

Hello huangjacky,

 

Apparently is not the gpu instead you are playing with non supported resolution camara however further investigation revealed that mxc-isi driver is making cameras not plug and play.

That means, you remove one camera, you wont be able to use the other four until rebooting.

At least this is what happens in my experience. You are not even able to stream with gstreamer if the camera connection is lost once, or unplugged.

Freeze issue still remains a mystery.

Regards

 

 

0 Kudos