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.

[FAQ] TDA4VM: PVRTune does not work with PSDK 8.x, how can I fix this?

Part Number: TDA4VM

When I run PVRTune on TDA4VM EVM using PSDK 8.x, I am no longer able to get GPU data. Using PSDK 7.x I was able to get GPU data using PVRTune, but what changed?

  • If the error looks like the following:

    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:

    Ensure that you are using the latest PVRTune downloaded from https://developer.imaginationtech.com/pvrtune/ instead of the one included with the PSDK as this binary has not been updated.

    Alternatively, if the logs look like the following and there are no GPU output:

    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)

    The issue is that the 1.13 version of the GPU driver is incompatible with some changes that were introduced with the 5.10 Linux kernel. There are two different solutions to this issue:

    1. If the latest PVRTune is used and still does not work, patches need to be applied to the GPU driver (please note that this was compiled for 8.0 PSDK Linux):
      1. PVRTune_Patch_Workaround.zip
    2. Alternative would be to update the GPU driver from 1.13 to 1.15 version:
      1. https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1094811/faq-tda4vm-how-do-i-update-the-gpu-driver-to-a-newer-version

    Regards,

    Takuma