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.

[参考译文] 编译器/DRA725:加载纹理时 OpenGL 崩溃

Guru**** 674950 points
Other Parts Discussed in Thread: DRA725
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/886924/compiler-dra725-opengl-crash-while-load-texture

器件型号:DRA725

工具/软件:TI C/C++编译器

硬件:dra725定制板

软件: TI-processor-sdk-linux-Automotive ra7xx-evm-03_04_00_03

使用 double VOUT 创建双 OpenGL 实例。  

OpenGL 有时会在 加载 glBufferData API 的纹理时崩溃。

1.关闭其中一个 OpenGL 实例时问题消失。

2.调整纹理大小时问题消失。

错误日志如下所示:

[114.928898] PVR_K:HWRecoveryResetSGX:触发 SGX 硬件恢复
[114.942915] PVR_K:SGX 调试(SGX_DDK sgxddk main@3699939)
[114.958214] PVR_K:(错误):SGX 寄存器基址(线性):0xe18c0000
[114.976547] PVR_K:(错误):SGX 寄存器基址(物理):0x56000000
[114.995635] PVR_K:运行 SGXREG 调试脚本:
[115.005362] PVR_K:(液压)
[115.008451] PVR_K:(SGXREG) 0x00004000:0x00000000
[115.014343] PVR_K:(SGXREG) 0x00004004:0x0000000A
[115.021081] PVR_K:(SGXREG) 0x00004008:0x0000000F
[115.026638] PVR_K:(SGXREG) 0x00004024:0x00000009
[115.032360] PVR_K:(SGXREG) 0x00004118:0x00000010
[115.038363] PVR_K:(SGXREG) 0x0000412C:0x20000000
[115.044047] PVR_K:(SGXREG) 0x00004404:0x00000003.
[115.049778] PVR_K:(SGXREG) 0x00004C04:0x00090008.
[115.055619] PVR_K:(SGXREG) 0x00004C08:0x1139C000
[115.061124] PVR_K:(SGXREG) 0x00004C74:0x00000000
[115.066797] PVR_K:(SGXREG) 0x00004C78:0x00000000
[115.072316] PVR_K:(SGXREG) 0x00004CA8:0x00000000
[115.077928] PVR_K:(P0)
[115.080855] PVR_K:(SGXREG) 0x00008000:0x002AAAAA
[115.086555] PVR_K:(SGXREG) 0x00008004:0x0A8A8AAA
[115.092008] PVR_K:(SGXREG) 0x00008008:0x011808F8
[115.097668] PVR_K:(SGXREG) 0x00008118:0x000000B0
[115.103113] PVR_K:(SGXREG) 0x0000812C:0x243C2F80
[115.108814] PVR_K:(SGXREG) 0x000084E4:0x001F0408
[115.114305] PVR_K:(SGXREG) 0x00008658:0x00000000
[115.120007] PVR_K:(SGXREG) 0x00008A74:0x0E208200
[115.125474] PVR_K:(SGXREG) 0x00008BA4:0x00000014
[115.131022] PVR_K:(SGXREG) 0x00008C04:0x00080000
[115.136630] PVR_K:(SGXREG) 0x00008C08:0x00000000
[115.142178] PVR_K:(SGXREG) 0x00008C74:0x00000000
[115.147759] PVR_K:(SGXREG) 0x00008C78:0x00000007
[115.153252] PVR_K:(SGXREG) 0x00008CB4:0x00000000
[115.158844] PVR_K:(SGXREG) 0x00008E04:0x00000000
[115.164381] PVR_K:(SGXREG) 0x00008624:0x00000000
[115.170016] PVR_K:(SGXREG) 0x00008628:0x00000000
[115.175609] PVR_K:(SGXREG) 0x00008630:0x00000000
[115.181056] PVR_K:(SGXREG) 0x00008664:0x00000000
[115.186837] PVR_K:(SGXREG) 0x00008734:0x00000000
[115.192339] PVR_K:(SGXREG) 0x00008AA4:0xAAAAAAAAAB
[115.198029] PVR_K:(SGXREG) 0x00008AA8:0xAAAAAAAAAAAAAA
[115.203497] PVR_K:(SGXREG) 0x00008B08:0x0001BAD8.
[115.209200] PVR_K:(SGXREG) 0x00008B14:0x0001C44F
[115.214761] PVR_K:(SGXREG) 0x00008B0C:0x00017A86
[115.220322] PVR_K:(SGXREG) 0x00008B18:0x0001263E
[115.225897] PVR_K:(SGXREG) 0x00008B10:0x00000F42
[115.23375] PVR_K:(SGXREG) 0x00008B1C:0x00010000
[115.236945] PVR_K:(SGXREG) 0x00008B80:0xAAAAAAAAAAAA
[115.242507] PVR_K:(SGXREG) 0x00008B84:0xAAAAAAAAAA
[115.248147] PVR_K:(SGXREG) 0x00008B88:0x00010C65
[115.253707] PVR_K:(SGXREG) 0x00008B94:0x0001DA90
[115.259522] PVR_K:(SGXREG) 0x00008B8C:0x00012280
[115.265764] PVR_K:(SGXREG) 0x00008B98:0x00012903
[115.271325(2000) PVR_K:(SGXREG) 0x00008B90:0x00010000
[115.277007] PVR_K:(SGXREG) 0x00008B9C:0x00010000
[115.282448] PVR_K:(P1)
[115.285577] PVR_K:(SGXREG) 0x0000C000:0x00000000
[115.291060] PVR_K:(SGXREG) 0x0000C004:0x00000000
[115.296687] PVR_K:(SGXREG) 0x0000C008:0x00000000
[115.302183] PVR_K:(SGXREG) 0x0000C118:0x00000000
[115.307845] PVR_K:(SGXREG) 0x0000C12C:0x00000000
[115.313333] PVR_K:(SGXREG) 0x0000C4E4:0x00000000
[115.319001] PVR_K:(SGXREG) 0x0000C658:0x00000000
[115.324484] PVR_K:(SGXREG) 0x0000CA74:0x00000000
[115.330103] PVR_K:(SGXREG) 0x0000CBA4:0x00000000
[115.335656] PVR_K:(SGXREG) 0x0000CC04:0x00000000
[115.341140] PVR_K:(SGXREG) 0x0000CC08:0x00000000
[115.346839] PVR_K:(SGXREG) 0x0000CC74:0x00000000
[115.352344] PVR_K:(SGXREG) 0x0000CC78:0x00000000
[115.35795] PVR_K:(SGXREG) 0x0000CCB4:0x00000000
[115.363456] PVR_K:(SGXREG) 0x0000CE04:0x00000000
[115.369063] PVR_K:(SGXREG) 0x0000C624:0x00000000
[115.374543] PVR_K:(SGXREG) 0x0000C628:0x00000000
[115.380142] PVR_K:(SGXREG) 0x0000C630:0x00000000
[115.385601] PVR_K:(SGXREG) 0x0000C664:0x00000000
[115.391107] PVR_K:(SGXREG) 0x0000C734:0x00000000
[115.396737] PVR_K:(SGXREG) 0x0000CAA4:0x00000000
[115.402223] PVR_K:(SGXREG) 0x0000CAA8:0x00000000
[115.407850] PVR_K:(SGXREG) 0x0000CB08:0x00000000
[115.413331] PVR_K:(SGXREG) 0x0000CB14:0x00000000
[115.418982] PVR_K:(SGXREG) 0x0000CB0C:0x00000000
[115.424511] PVR_K:(SGXREG) 0x0000CB18:0x00000000
[115.430099] PVR_K:(SGXREG) 0x0000CB10:0x00000000
[115.435595] PVR_K:(SGXREG) 0x0000CB1C:0x00000000
[115.441082] PVR_K:(SGXREG) 0x0000CB80:0x00000000
[115.446768] PVR_K:(SGXREG) 0x0000CB84:0x00000000
[115.452268] PVR_K:(SGXREG) 0x0000CB88:0x00000000
[115.457889] PVR_K:(SGXREG) 0x0000CB94:0x00000000
[115.463353] PVR_K:(SGXREG) 0x0000CB8C:0x00000000
[115.468964] PVR_K:(SGXREG) 0x0000CB98:0x00000000
[115.474455] PVR_K:(SGXREG) 0x0000CB90:0x00000000
[115.480064] PVR_K:(SGXREG) 0x0000CB9C:0x00000000
[115.485560] PVR_K:SGX 寄存器转储:
[115.489753] PVR_K:(P0) EUR _CR_CORE_ID:01191201
[115.495837] PVR_K:(P0) EUR _CR_CORE_REVISION:00010106
[115.501805] PVR_K:(P0) EUR _CR_EVENT_STATUS:243C2F80
[115.507863] PVR_K:(P0) EUR _CR_EVENT_STATUS2:000000B0
[115.513784] PVR_K:(P0) EUR _CR_BIF_CTRL:00000000
[115.519934] PVR_K:(P0) EUR _CR_BIF_BANK0:00000007
[115.525889] PVR_K:(P0) EUR_CR_BIF_INT_STAT:00080000
[115.531798] PVR_K:(P0) EUR _CR_BIF_FAULT:00000000
[115.537909] PVR_K:(P0) EUR_CR_BIF_MEM_REQ_STAT:00000003
[115.543849] PVR_K:(P0) EUR_CR_CLKGATECTL:002AAAAA
[115.549929] PVR_K:(P1) EUR_CR_EVENT_STATUS:00000000
[115.556149] PVR_K:(P1) EUR_CR_EVENT_STATUS2:00000000
[115.562057] PVR_K:(P1) EUR_CR_BIF_CTRL:00000000
[115.568154] PVR_K:(P1) EUR_CR_BIF_BANK0:00000000
[115.574081] PVR_K:(P1) EUR_CR_BIF_INT_STAT:00000000
[115.580207] PVR_K:(P1) EUR_CR_BIF_FAULT:00000000
[115.586223] PVR_K:(P1) EUR_CR_BIF_MEM_REQ_STAT:00000000
[115.592214] PVR_K:(P1) EUR_CR_CLKGATECTL:00000000
[115.598278] PVR_K:检查 EDM 存储器上下文(索引= 7、PD = 0x9e620000)
[115.605825] PVR_K:找到页面故障0x1139c000的 MMU 上下文
[115.612184] PVR_K:GPU 内存上下文用于 PID=94 (pvrsrvctl)
[115.618821] PVR_K:未找到 PDE
[115.622490] PVR_K:检查 TA 存储器上下文(索引= 0、PD = 0x9e73e000)
[115.629966] PVR_K:找到页面故障0x1139c000的 MMU 上下文
[115.636350] PVR_K:GPU 内存上下文用于 PID=193 (ADAS.exe.back)
[115.643237] PVR_K:PDE 有效:Pte = 0x7cd7c001 (PhysAddr = 0x7cd7c000、有效)
[115.651066] PVR_K:检查3D 存储器上下文(索引= 0、PD = 0x9e73e000)
[115.658523] PVR_K:找到页面故障0x1139c000的 MMU 上下文
[115.66494] PVR_K:GPU 内存上下文用于 PID=193 (ADAS.exe.back)
[115.671889] PVR_K:PDE 有效:Pte = 0x7cd7c001 (PhysAddr = 0x7cd7c000、有效)
[115.679727] PVR_K:检查 PTLA 存储器上下文(索引= 0、PD = 0x9e73e000)
[115.687328] PVR_K:找到页面故障0x1139c000的 MMU 上下文
[115.69369] PVR_K:GPU 内存上下文用于 PID=193 (ADAS.exe.back)
[115.700731] PVR_K:PDE 有效:Pte = 0x7cd7c001 (PhysAddr = 0x7cd7c000、有效)
[115.708444] PVR_K:主机 CTL 标志= 0000000c
[115.713309] PVR_K:SGX 主机控制:
[115.717539] PVR_K:(HC-0) 0x00000001 0x00000000 0x00000000 0x00000001
[115.724620] PVR_K:(HC-10) 0x00000000 0x0000000A 0x0004A666 0x00000000
[115.731832] PVR_K:(HC-20) 0x00000001 0x00000000 0x00000000
[115.739051] PVR_K:(HC-30) 0x0002E229 0xEE8423B0 0x00000000 0x00000000
[115.746271] PVR_K:(HC-40) 0x00000000 0x00000000 0x00000000 0x00000000
[115.753493] PVR_K:(HC-50) 0x00000000 0x00000000 0x00000000 0x00000000
[115.760945] PVR_K:(HC-60) 0x00000000 0x00000000 0x00000000 0x00000000
[115.768756] PVR_K:(HC-70) 0x00000000 0x00000000 0x00000000 0x00000000
[115.776043] PVR_K:(HC-80) 0x00000000 0x00000000 0x00001A5B 0x00000000
[115.783244] PVR_K:SGX TA/3D 控制:
[115.787497] PVR_K:(T3C-0) 0xF4003000 0xF40031A0 0xF4002000 0x00000000
[115.794978] PVR_K:(T3C-10) 0x00000000 0x00000002 0x00000000 0x00000000
[115.802180] PVR_K:(T3C-20) 0x00000000 0x00000000 0x00000000 0x00000000
[115.809624] PVR_K:(T3C-30) 0x00000000 0x00000000 0x00000000 0x00000000
[115.816859] PVR_K:(T3C-40) 0x00000000 0x00000000 0x00000000 0x00000000
[115.824090] PVR_K:(T3C-50) 0x00000000 0x00000000 0x00000000 0x00000000
[115.831422] PVR_K:(T3C-60) 0x00000000 0x00000000 0x00000000 0x00000000
[115.838727] PVR_K:(T3C-70) 0x00000000 0x00000000 0x00000000 0x00000000
[115.846061] PVR_K:(T3C-80) 0x00000000 0x00000000 0x00000000 0x00000000
[115.853382] PVR_K:(T3C-90) 0x00000000 0x00000000 0x00000000 0x00000000
[115.860689] PVR_K:(T3C-A0) 0x00000000 0x00000000 0x00000000 0xF4156420
[115.867973] PVR_K:(T3C-B0) 0x00000000 0xF4000000 0x9E620000 0x00000000
[115.875332] PVR_K:(T3C-C0) 0x00000000 0xF4125F80 0xF4156420 0xF41214A0
[115.882611] PVR_K:(T3C-D0) 0xF400FF80 0x00000000 0x00000000 0xF4002AC0
[115.889929] PVR_K:(T3C-E0) 0xF411DA20 0x0048322E 0x00000000 0x00000000
[115.897225] PVR_K:(T3C-F0) 0x00000000 0x00000000 0x00000000 0x00000000
[115.904417] PVR_K:(T3C-100) 0x00000000 0x00000000 0x00000000 0x00000000
[115.91191] PVR_K:(T3C-110) 0x00000000 0x00000000 0x00000000 0x00000000
[115.919272] PVR_K:(T3C-120) 0x00000000 0x000000A3 0x00000161 0x00000000
[115.926708] PVR_K:(T3C-130) 0xF2016010 0xF2016014 0xF2016034 0xF2016030
[115.933978] PVR_K:(T3C-140) 0xF4004000 0xF400F820 0xF4002020 0xF411D000
[115.941471] PVR_K:(T3C-150) 0xF411D000 0x00000000 0x00000000 0x000000C1
[115.948759] PVR_K:(T3C-160) 0x000000C1 0x00000000 0x00000000 0x00000000
[115.956301] PVR_K:(T3C-170) 0x00000002 0x00000000 0x494102ED 0x00000000
[115.963554] PVR_K:(T3C-180) 0xA55198BF 0x00000000 0x00000000 0x00000000
[115.971127] PVR_K:(T3C-190) 0x00000000 0x00000000 0xF400FF80 0xF4125F80
[115.978510] PVR_K:SGX 内核 CCB WO:0xA7 RO:0xA7
[115.983777] PVR_K:活动同步
[115.987585] PVR_K:SyncInfo 4331:
[115.991514(XV) PVR_K:写入操作(0xef00175c):P/C = 1/0 (0x00000001/0x00000000)
[115.999422] PVR_K:读取操作(0xef001764):P/C = 0/0 (0x00000000/0x00000000)
[116.007139] PVR_K:读取操作2 (0xef00176c):P/C = 0/0 (0x000000000000/0x00000000)
[116.015274] PVR_K:SyncInfo 931:
[116.019074] PVR_K:写入操作(0xef0017fc):P/C = 55/54 (0x00000037/0x00000036)
[116.027136] PVR_K:读取操作数(0xef001804):P/C = 0/0 (0x000000000000/0x00000000)
[116.034936] PVR_K:读取操作2 (0xef00180c):P/C = 0/0 (0x000000000000/0x00000000)
[116.042824] PVR_K:SyncInfo 270:
[116.046894] PVR_K:写入操作(0xef0014b4):P/C = 39/38 (0x00000027/0x00000026)
[116.055208] PVR_K:读取操作(0xef0014bc):P/C = 0/0 (0x000000000000/0x00000000)
[116.062892] PVR_K:读取操作数2 (0xef0014c4):P/C = 0/0 (0x000000000000/0x00000000)
[116.070944] PVR_K:SyncInfo 3:
[116.074607] PVR_K:写入操作(0xef00107c):P/C = 119/118 (0x00000077/0x00000076)
[116.082842] PVR_K:读取操作数(0xef001084):P/C = 0/0 (0x000000000000/0x00000000)
[116.090545] PVR_K:读取操作2 (0xef00108c):P/C = 0/0 (0x000000000000/0x00000000)
[116.098482] PVR_K:SyncInfo 2:
[116.102150] PVR_K:写入操作(0xef001054):P/C = 1670/1669 (0x00000686/0x00000685)
[116.110582] PVR_K:读取操作数(0xef00105c):P/C = 636/633 (0x0000027c/0x00000279)
[116.118599] PVR_K:读取操作2 (0xef001064):P/C = 0/0 (0x00000000/0x00000000)
[116.126580] PVR_K:SyncInfo 1:
[116.130224] PVR_K:写入操作(0xef00102c):P/C = 1670/1669 (0x00000686/0x00000685)
[116.138649] PVR_K:读取操作数(0xef001034):P/C = 0/0 (0x000000000000/0x00000000)
[116.146403] PVR_K:读取操作2 (0xef00103c):P/C = 0/0 (0x00000000/0x00000000)
[116.154262] PVR_K:SyncInfo 0:
[116.158114] PVR_K:写入操作(0xef001004):P/C = 636/633 (0x0000027c/0x00000279)
[116.166309] PVR_K:读取操作(0xef00100c):P/C = 0/0 (0x00000000/0x00000000)
[116.173981] PVR_K:读取操作2 (0xef001014):P/C = 0/0 (0x000000000000/0x00000000)

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Lin:

    是否有办法快速重现 PSDKLA3.04文件系统上任何示例应用程序的问题?

    自 PSDKLA3.04以来、对 SGX_UM 二进制文件进行了一些更新。  

    请将 omap5-SGX-DDK-um-Linux 更新为最新版本。

    PSDKLA3.04中 omap5-SGX-DDK-um-Linux 的提交 ID 为 02b1c54

    此 commit-id 有两个 SGX-HW 恢复修复程序

    https://git.ti.com/cgit/graphics/omap5-sgx-ddk-um-linux/commit/?h=ti-img-sgx/1.14.3699939_k4.4&id=07b5f98d2af8de4dcf076d470dd6c817f389c8c0

    请升级到此提交 ID 或标题、然后检查问题是否出现。

    谢谢

    RamPrasad

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、RamPrasad

    我们将 omap5-SGX-DDK-um-Linux 更新为版本 02b1c54。

    但问题仍然存在。

    此问题的可能原因是什么?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Lin:

    02b1c54 commit 是 psdkla3.04中的 commit。

    我要求您更改此内容并使用 HEAD 7ea8b3。

    谢谢

    RamPrasad

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、RamPrasad

    它适用于7ea8b3版 。

    非常感谢!