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.

PROCESSOR-SDK-J721E: PVRTune can't get GPU data in ProcessorSDK 8.0

Part Number: PROCESSOR-SDK-J721E

Hi,

I want to measure GPU data with ProcessorSDK 8.0's vision apps.
I made custom apps using OpenGL.(Capture → LDC → OpenGL → Display)

After running VisionApp(Custom App using OpenGL) for GPU measurement, PVRPerfServerDeveloper is run.

1. PVRPerfServerDeveloper v14.151: Segmentation fault (core dumped)
- It worked well in Processor SDK 7.0, 7.3.
- However, in Processor SDK 8.0, Segmentation fault occurs at the same time as the custom app run.
- It's the same if run PVRPerfServerDeveloper  again.

root@j7-evm:~# ./PVRPerfServerDeveloper
PVRPerfServerDeveloper v14.151 64-bits - Build 21.1@5986312.
Copyright (C) Imagination Technologies Ltd. All rights reserved.
* Support:            DevTech@imgtec.com
* OS:                 Linux version 5.10.41-g4c2eade9f7 (oe-user@oe-host) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #1 SMP PREEMPT Wed Aug 4 22:47:28 UTC 2021
* Time (local):       Thu, 04 Nov 2021 06:14:14 +0000 (06:14:14)
* Time (UTC):         Thu, 04 Nov 2021 06:14:14 +0000 (06:14:14)
* System Perf Events: Available (Unrestricted)
PVRSSInit_ConnectServices: dlopen attempt: "libsrv_um.so" success. dlsym results: success
* GPU driver build:   1.13@5776728
* NNA driver:         Not connected! (driver support not found)
Cleaned up after previous run.
Cleaned up after previous run.
* Processor count:    2
This server is j7-evm:6520 (lo:127.0.0.1,eth0:192.168.1.94,docker0:172.17.0.1)...
Waiting for connection (press q to quit)...
* GPU device:         PowerVR Series8XE, GE8430

Accepted 192.168.1.70... PVRTune connected.
Connection info PID 1510 is "./vx_app_multi_cam_gl.out"
Connection info PID 1554 is "./PVRPerfServerDeveloper"
Segmentation fault (core dumped)

2. PVRPerfServerDeveloper v14.143: GPU data unavailable!
- It's the PVRPerfServerDeveloper included in the Processor SDK. (rootfs
/opt/img-powervr-sdk/PVRHub/PVRPerfServer)
- This version can't get GPU data.
- Also PVRPerfServer doesn't catch vision app is running. show this log.

root@j7-evm:/opt/img-powervr-sdk/PVRHub/PVRPerfServer# ./PVRPerfServerDeveloper
PVRPerfServerDeveloper v14.143 64-bits - Build 17.1@4676419.
Copyright (C) Imagination Technologies Ltd. All rights reserved.
* Support:            DevTech@imgtec.com
* OS:                 Linux version 5.10.41-g4c2eade9f7 (oe-user@oe-host) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #1 SMP PREEMPT Wed Aug 4 22:47:28 UTC 2021
* Time (local):       Thu, 04 Nov 2021 06:24:51 +0000 (06:24:51)
* Time (UTC):         Thu, 04 Nov 2021 06:24:51 +0000 (06:24:51)
PVRSSInit_ConnectServices: dlopen attempt: "libsrv_um.so" success. dlsym results: success
Error: failed to initialise services connection (driver support query info failed).
* Not connected to PowerVR driver.
* Processor count:    2
This server is j7-evm:6520 (lo:127.0.0.1,eth0:192.168.1.94,docker0:172.17.0.1)...
Waiting for connection (press q to quit)...
200.0ps [GPU data unavailable!] : 00/00,Tu
Accepted 192.168.1.70... PVRTune connected.
Connection info PID 1523 is "./PVRPerfServerDeveloper"
200.0ps [GPU data unavailable!] : 00/00,TU
Quit!
root@j7-evm:/opt/img-powervr-sdk/PVRHub/PVRPerfServer# ps -a
    PID TTY          TIME CMD
   1215 ttyS2    00:00:00 sh
   1222 ttyS2    00:00:00 vx_app_arm_remo
   1512 ttyS2    00:00:01 vx_app_multi_ca
   1524 pts/0    00:00:00 ps

3. PVRPerfServerDeveloper v14.151: It works on wayland
- I tested glmakr2-wayland on linux side (not installed RTOS), it works.

root@j7-evm:~# ./PVRPerfServerDeveloper
PVRPerfServerDeveloper v14.151 64-bits - Build 21.1@5986312.
Copyright (C) Imagination Technologies Ltd. All rights reserved.
* Support:            DevTech@imgtec.com
* OS:                 Linux version 5.4.106-g023faefa70 (oe-user@oe-host) (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 SMP PREEMPT Sat Apr 10 00:18:09 UTC 2021
* Time (local):       Thu, 04 Nov 2021 07:29:32 +0000 (07:29:32)
* Time (UTC):         Thu, 04 Nov 2021 07:29:32 +0000 (07:29:32)
* System Perf Events: Available (Unrestricted)
PVRSSInit_ConnectServices: dlopen attempt: "libsrv_um.so" success. dlsym results: success
* GPU driver build:   1.13@5776728
* NNA driver:         Not connected! (driver support not found)
* Processor count:    2
This server is j7-evm:6520 (lo:127.0.0.1,eth0:192.168.1.94,docker0:172.17.0.1)...
Waiting for connection (press q to quit)...
* GPU device:         PowerVR Series8XE, GE8430

Accepted 192.168.1.70... PVRTune connected.
Connection info PID 1495 is "/usr/bin/weston"
Connection info PID 1531 is "./PVRPerfServerDeveloper"
Connection info PID 1532 is "glmark2-es2-wayland"
200.0ps 221206t [no NNA] : 00/00,TU
Connection closed.
This server is j7-evm:6520 (lo:127.0.0.1,eth0:192.168.1.94,docker0:172.17.0.1)...
Waiting for connection (press q to quit)...
  0.1ps 233588t [no NNA] : 00/00,Tu
Quit!

So, I think there is a conflict between PVRTune and VisionApps.
How can I measure GPU data in Processor SDK 8.0's vision apps? 

Regards,
Lee.