This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Linux
Hi Team,
My customer reported on 3D graphic issue. They're using AM3354 with Linux SDK 5.6, PSP 04.06.00.10. The 3d Graphic SDK is 04.09.00.01.
When they ran some example application on their own board, they come across a display issue.
When the issue happened, the display would stop refreshing, but the system was not hang. If we kill the display thread, then restart, this 3D display could worked well.This issue happened sporadically. The issue log is as below:
[ 399.470366] PVR_K:(Error): SGXOSTimer() detected SGX lockup (0x16fde tasks) [1775, home/blt/Graphics_SDK_4_09_00_01/GFX_Linux_KM/services]
[ 399.486176] PVR_K: HWRecoveryResetSGX: SGX Hardware Recovery triggered
[ 399.493067] PVR_K: SGX debug (SGX_DDK_Linux_CustomerTI sgxddk 19 1.9@2188537)
[ 399.500613] PVR_K:(Error): SGX Register Base Address (Linear): 0xC9000000 [1290, home/blt/Graphics_SDK_4_09_00_01/GFX_Linux_KM/services]
[ 399.516431] PVR_K:(Error): SGX Register Base Address (Physical): 0x56000000 [1291, home/blt/Graphics_SDK_4_09_00_01/GFX_Linux_KM/services]
[ 399.532207] PVR_K: (P0) EUR_CR_CORE_ID: 01120000
[ 399.537898] PVR_K: (P0) EUR_CR_CORE_REVISION: 00010205
[ 399.543597] PVR_K: (P0) EUR_CR_EVENT_STATUS: 20000001
[ 399.549288] PVR_K: (P0) EUR_CR_EVENT_STATUS2: 00000008
[ 399.554985] PVR_K: (P0) EUR_CR_BIF_CTRL: 00000000
[ 399.560687] PVR_K: (P0) EUR_CR_BIF_INT_STAT: 00000000
[ 399.566377] PVR_K: (P0) EUR_CR_BIF_FAULT: 00000000
[ 399.572075] PVR_K: (P0) EUR_CR_BIF_MEM_REQ_STAT: 00000002
[ 399.577763] PVR_K: (P0) EUR_CR_CLKGATECTL: 00222220
[ 399.583463] PVR_K: (P0) EUR_CR_PDS_PC_BASE: 00000000
[ 399.589182] PVR_K: Flip Command Complete Data 0 for display device 1:
[ 399.595981] PVR_K: SGX Host control:
[ 399.599755] PVR_K: (HC-0) 0x00000001 0x00000000 0x00000000 0x00000001
[ 399.606691] PVR_K: (HC-10) 0x00000000 0x00000003 0x0000000A 0x00030D40
[ 399.613675] PVR_K: (HC-20) 0x00000000 0x00000000 0x00000003 0x00000000
[ 399.620662] PVR_K: (HC-30) 0x00000000 0x00052502 0xFECF6F40 0x00000000
[ 399.627633] PVR_K: (HC-40) 0x00000000 0x00000000 0x00000000 0x00000000
[ 399.634611] PVR_K: SGX TA/3D control:
[ 399.638472] PVR_K: (T3C-0) 0x0F003000 0x0F003140 0x0F002000 0x00000000
[ 399.645453] PVR_K: (T3C-10) 0x00000000 0x00000000 0x00000002 0x00000000
[ 399.652526] PVR_K: (T3C-20) 0x00000000 0x00000000 0x00000000 0x00000000
[ 399.659586] PVR_K: (T3C-30) 0x00000000 0x00000000 0x00000000 0x00000000
[ 399.666660] PVR_K: (T3C-40) 0x00000000 0x00000000 0x00000000 0x00000000
[ 399.673732] PVR_K: (T3C-50) 0x00000000 0x00000000 0x00000000 0x00000000
[ 399.680803] PVR_K: (T3C-60) 0x00000000 0x00000000 0x00000000 0x00000000
[ 399.687867] PVR_K: (T3C-70) 0x00000000 0x00000000 0x00000000 0x00000000
[ 399.694938] PVR_K: (T3C-80) 0x00000000 0x0F0AD718 0x0F0AD55C 0x0F000000
[ 399.702010] PVR_K: (T3C-90) 0x864D6000 0x0F09AB40 0x0F0AD55C 0x0F08B920
[ 399.709072] PVR_K: (T3C-A0) 0x0F00AEA0 0x0F0AD718 0x0F0AF840 0x00060000
[ 399.716174] PVR_K: (T3C-B0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 399.723248] PVR_K: (T3C-C0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 399.730319] PVR_K: (T3C-D0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 399.737386] PVR_K: (T3C-E0) 0x0000BC97 0x0000019A 0x00000199 0x0F000000
[ 399.744461] PVR_K: (T3C-F0) 0x8000B000 0x8004B000 0x0F004000 0x0F00A420
[ 399.751537] PVR_K: (T3C-100) 0x0F00A740 0x0F08B000 0x0F08B000 0x00000000
[ 399.758692] PVR_K: (T3C-110) 0x00000441 0x00000441 0x00000000 0x00000003
[ 399.765861] PVR_K: (T3C-120) 0x00000002 0x00000000 0x00000001 0x42A15A6E
[ 399.773024] PVR_K: SGX Kernel CCB WO:0x42 RO:0x3E
As I have very little experience in the 3D graphic SDK debugging, could anyone give some some clues on how to debug this issue?
Many thanks!
More info could be found as attached files, such as dmesg, booting logs when issues happened.
You are using very old SDK and corresponding driver. AM335x LCDC has vulnerability to race condition under certain circumstances. Older LCDC driver was more prone to such race condition. Newer kernel driver was architect again to reduce race condition issue. I wonder if you are facing that problem in the system, having it's impact on SGX, thereby misleading it as SGX issue. Check these e2e post and wiki post -
https://e2e.ti.com/support/arm/sitara_arm/f/791/t/198769
http://e2e.ti.com/support/arm/sitara_arm/f/791/p/446385/1848230#pi316653=6
http://processors.wiki.ti.com/index.php/DA8xx_LCDC_Linux_FB_FAQs#Flicker_due_to_underflow_error
Hi Steven,
We tried to run this demo on our EVM board using latest Processor Linux SDK (3.3) but couldn't see the issue you reported. Could you provide input to below questions?
Regards,
Manisha
Hi Steven,
Is this issue resolved?? Shall we close the ticket?
Regards,
Manisha