[Openpvrsgx-devgroup] old am3517 version

Jeroen Hofstee jeroen at myspectrum.nl
Wed Dec 18 22:14:18 CET 2019


Hi ,

I am looking at the old ~/Graphics_SDK_4_09_00_01 + linux 5.4 for an old 
am3517

+ some patches and I don't reparent this one:
don't clk_set_parent(psSysSpecData->psSGX_FCK, psSysSpecData->psCORE_CK);

since it fails..

probing that module works now:

[29973.162880] pvrsrvkm: loading out-of-tree module taints kernel.
[29973.194943] PVR: PVRCore_Init
[29973.219580] PVR: PVRSRVDriverProbe(pDevice=51e8d31a)
[29973.220696] PVR: EnableSystemClocks: Enabling System Clocks
[29973.220989] PVR: Setting GPTIMER11 parent to System Clock
[29973.221369] PVR: GPTIMER11 clock is 13MHz
[29973.221460] PVR: Setting GPTIMER11 mode to posted (currently is 
non-posted)
[29973.236835] PVR: PVRCore_Init: major device 246

Using it won't work:

root at ccgx:/opt/gfxlibraries/gfx_dbg_es3.x# pvrsrvctl --no-module --start
PVR:(Error): PVRSRVBridgeCall: Failed to access device.  Function 
ID:3223086916 (Bad address). [232, /pvr_bridge_u.c]
PVR:(Error): PVRSRVInitSrvConnect: BridgeCall failed [2479, 
/bridged_pvr_glue.c]
PVR:(Error): PVRSRVBridgeCall: Failed to access device.  Function 
ID:3223086861 (Bad address). [232, /pvr_bridge_u.c]
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 0 bytes
PVR:(Error): SrvInit: PVRSRVInitSrvConnect failed (34) [37, /srvinit.c]
pvrsrvctl: SrvInit failed (already initialized?) (err=34)


trying to use it fails horribly:

[30004.141288] PVR_K:(Error): GetHandleStructure: Handle index out of 
range (463 >= 4) [736, 
home/jeroen/Graphics_SDK_4_09_00_01/GFX_Linux_KM/services4/srvkm/common/handle.c]
[30004.141339] ------------[ cut here ]------------
[30004.142073] WARNING: CPU: 0 PID: 17207 at 
/home/jeroen/Graphics_SDK_4_09_00_01/GFX_Linux_KM/services4/srvkm/common/handle.c:737 
GetHandleStructure+0xa8/0x1a0 [pvrsrvkm]
[30004.142387] not good
[30004.142396] Modules linked in: pvrsrvkm(O) aes_generic cmac 
ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_tcpudp 
ip6table_filter ip6_tables xt_conntrack nf_conntrack nf_defrag_ipv6 
libcrc32c nf_defrag_ipv4 iptable_filter ip_tables x_tables btusb btrtl 
btbcm btintel bluetooth ecdh_generic ecc rfkill libaes
[30004.142556] CPU: 0 PID: 17207 Comm: pvrsrvctl Tainted: G           
O      5.4.0 #1
[30004.142578] Hardware name: Generic AM3517 (Flattened Device Tree)
[30004.142644] [<c010e1ac>] (unwind_backtrace) from [<c010c438>] 
(show_stack+0x10/0x14)
[30004.142680] [<c010c438>] (show_stack) from [<c0129734>] 
(__warn+0xdc/0xf4)
[30004.142713] [<c0129734>] (__warn) from [<c01297c0>] 
(warn_slowpath_fmt+0x74/0xb8)
[30004.143140] [<c01297c0>] (warn_slowpath_fmt) from [<bf126eb8>] 
(GetHandleStructure+0xa8/0x1a0 [pvrsrvkm])
[30004.143741] [<bf126eb8>] (GetHandleStructure [pvrsrvkm]) from 
[<bf129210>] (PVRSRVLookupHandle+0x68/0xe0 [pvrsrvkm])
[30004.144272] [<bf129210>] (PVRSRVLookupHandle [pvrsrvkm]) from 
[<bf14092c>] (PVRSRV_BridgeDispatchKM+0xf8/0x5a0 [pvrsrvkm])
[30004.144958] [<bf14092c>] (PVRSRV_BridgeDispatchKM [pvrsrvkm]) from 
[<c0289cfc>] (do_vfs_ioctl+0xac/0x89c)
[30004.145006] [<c0289cfc>] (do_vfs_ioctl) from [<c028a520>] 
(ksys_ioctl+0x34/0x58)
[30004.145043] [<c028a520>] (ksys_ioctl) from [<c0101000>] 
(ret_fast_syscall+0x0/0x54)
[30004.145068] Exception stack(0xcd563fa8 to 0xcd563ff0)
[30004.145099] 3fa0:                   00008d99 00000000 00000003 
c01c6744 beb3b96c beb3b96c
[30004.145131] 3fc0: 00008d99 00000000 000087d5 00000036 00000000 
00000000 b6f18fac 00000000
[30004.145157] 3fe0: b6d86084 beb3b94c b6d4e6a5 b6e4c67c
[30004.145184] ---[ end trace 51fd544ec4a40551 ]---
[30004.145238] PVR_K:(Error): PVRSRVLookupHandle: Error looking up 
handle (149) [1995, 
home/jeroen/Graphics_SDK_4_09_00_01/GFX_Linux_KM/services4/srvkm/common/handle.c]
[30004.145283] PVR_K:(Error): PVRSRV_BridgeDispatchKM: Invalid kernel 
services handle (149) [300, 
home/jeroen/Graphics_SDK_4_09_00_01/GFX_Linux_KM/services4/srvkm/env/linux/pvr_bridge_k.c]
[30004.153479] PVR_K:(Error): GetHandleStructure: Handle index out of 
range (463 >= 4) [736, 
home/jeroen/Graphics_SDK_4_09_00_01/GFX_Linux_KM/services4/srvkm/common/handle.c]
[30004.153529] ------------[ cut here ]------------
[30004.154222] WARNING: CPU: 0 PID: 17207 at 
/home/jeroen/Graphics_SDK_4_09_00_01/GFX_Linux_KM/services4/srvkm/common/handle.c:737 
GetHandleStructure+0xa8/0x1a0 [pvrsrvkm]
[30004.154258] not good
[30004.154265] Modules linked in: pvrsrvkm(O) aes_generic cmac 
ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_tcpudp 
ip6table_filter ip6_tables xt_conntrack nf_conntrack nf_defrag_ipv6 
libcrc32c nf_defrag_ipv4 iptable_filter ip_tables x_tables btusb btrtl 
btbcm btintel bluetooth ecdh_generic ecc rfkill libaes
[30004.154426] CPU: 0 PID: 17207 Comm: pvrsrvctl Tainted: G W  O      
5.4.0 #1
[30004.154448] Hardware name: Generic AM3517 (Flattened Device Tree)
[30004.154510] [<c010e1ac>] (unwind_backtrace) from [<c010c438>] 
(show_stack+0x10/0x14)
[30004.154547] [<c010c438>] (show_stack) from [<c0129734>] 
(__warn+0xdc/0xf4)
[30004.154579] [<c0129734>] (__warn) from [<c01297c0>] 
(warn_slowpath_fmt+0x74/0xb8)
[30004.154953] [<c01297c0>] (warn_slowpath_fmt) from [<bf126eb8>] 
(GetHandleStructure+0xa8/0x1a0 [pvrsrvkm])
[30004.155510] [<bf126eb8>] (GetHandleStructure [pvrsrvkm]) from 
[<bf129210>] (PVRSRVLookupHandle+0x68/0xe0 [pvrsrvkm])
[30004.156036] [<bf129210>] (PVRSRVLookupHandle [pvrsrvkm]) from 
[<bf14092c>] (PVRSRV_BridgeDispatchKM+0xf8/0x5a0 [pvrsrvkm])
[30004.156332] [<bf14092c>] (PVRSRV_BridgeDispatchKM [pvrsrvkm]) from 
[<c0289cfc>] (do_vfs_ioctl+0xac/0x89c)
[30004.156372] [<c0289cfc>] (do_vfs_ioctl) from [<c028a520>] 
(ksys_ioctl+0x34/0x58)
[30004.156408] [<c028a520>] (ksys_ioctl) from [<c0101000>] 
(ret_fast_syscall+0x0/0x54)
[30004.156432] Exception stack(0xcd563fa8 to 0xcd563ff0)
[30004.156463] 3fa0:                   00008d99 00000000 00000003 
c01c670d beb3b92c beb3b92c
[30004.156495] 3fc0: 00008d99 00000000 000087d5 00000036 00000000 
00000000 b6f18fac 00000000
[30004.156522] 3fe0: b6d86084 beb3b90c b6d4e6a5 b6e4c67c
[30004.156548] ---[ end trace 51fd544ec4a40552 ]---
[30004.156598] PVR_K:(Error): PVRSRVLookupHandle: Error looking up 
handle (149) [1995, 
home/jeroen/Graphics_SDK_4_09_00_01/GFX_Linux_KM/services4/srvkm/common/handle.c]
[30004.156643] PVR_K:(Error): PVRSRV_BridgeDispatchKM: Invalid kernel 
services handle (149) [300, 
home/jeroen/Graphics_SDK_4_09_00_01/GFX_Linux_KM/services4/srvkm/env/linux/pvr_bridge_k.c]


I will have a look why, but perhaps this rings a bell?

Suggestions are welcome..

Regards,

Jeroen



More information about the openpvrsgx-devgroup mailing list