RobertCNelson / bb-kernel

MIT License
130 stars 102 forks source link

PVRSRVConnect error with am33x-v4.4 #51

Closed isaacsutherland closed 6 years ago

isaacsutherland commented 6 years ago

I'm trying to get SGX + EGL working with the am33x-v4.4 kernel on a BBB as per the directions here: http://eewiki.net/display/linuxonarm/BeagleBone+Black. At first the system looks happy:

ubuntu@arm:~$ lsmod | grep omaplfb
omaplfb                12782  0
pvrsrvkm              159235  1 omaplfb
tilcdc                 27951  1 omaplfb
ubuntu@arm:~$ cat /sys/devices/platform/bone_capemgr/slots
 0: P---L-   0 4D 7.0 LCD CAPE - 4DCAPE-70CT,00A1,4D Systems,BB-BONE-4D7C-01
 1: PF----  -1
 2: PF----  -1
 3: PF----  -1

However, the test applications fail as follows:

ubuntu@arm:~$ sgx_init_test
----------------------- Start -----------------------
Try calling PVRSRVConnect with an invalid argument:
 OK
Call PVRSRVConnect with a valid argument:
 FAIL - PVRSRV_ERROR_INIT_FAILURE
ubuntu@arm:~$ services_test
----------------------- Start -----------------------
Try calling PVRSRVConnect with an invalid argument:
 OK
Call PVRSRVConnect with a valid argument:
 FAIL - PVRSRV_ERROR_INIT_FAILURE
ubuntu@arm:~$ pvr2d_test
PowerVR device not found

Not sure if it's relevant, but the last items in my dmesg log are as follows:

[   20.450986] tilcdc 4830e000.fb: timeout waiting for framedone
[  781.350460] tilcdc 4830e000.fb: timeout waiting for framedone

PowerVR seems to be running:

ubuntu@arm:~$ ps -e | grep pvr
  434 ?        00:00:00 pvr_timer
  445 ?        00:00:00 pvr_workqueue

And no surprises if I try to start PVR:

ubuntu@arm:~$ sudo pvrsrvctl --start --no-module
pvrsrvctl: SrvInit failed (already initialized?) (err=129)
RobertCNelson commented 6 years ago

Yeah, that's normal, most users use QT's eglfs stack with sgx.

Closing: For SGX support please contact TI