resources icon indicating copy to clipboard operation
resources copied to clipboard

[Librem 5] Vivante GC7000 Not showing usage

Open CaptainMorgan12 opened this issue 1 year ago • 12 comments

Is there an existing issue for this?

  • [X] I searched the existing issues and did not find anything similar.

Current Behavior

GPU usage, memory etc shows only 0 and does not update in Process.

Expected Behavior

I would expect at least some GPU usage to be shown.

Steps To Reproduce

  1. use ui, play videos in browser, freetube

Environment

postmarket os edge, wayland, resources 1.5.1, kernel 6.6.32-librem5.2, mesa 24.1.2-r1

Anything else?

No response

CaptainMorgan12 avatar Jul 07 '24 15:07 CaptainMorgan12

Hi, can you please run flatpak run net.nokyan.Resources in a terminal and copy+paste the output here?

nokyan avatar Jul 07 '24 16:07 nokyan

There is no specific warning that GPU wasnt detected. No debug on resources::utils::gpu . Some items of interest below.

DEBUG resources::utils::pci > Successfully parsed pci.ids Gsk-Message: 09:47:17.411: Failed to realize renderer of type 'GskNglRenderer' for surface 'GdkWaylandToplevel': OpenGL ES 3.0 is not supported by this WARN resources::utils::cpu > No sensor for CPU temperature found!

CPU and memory updates correctly.

CaptainMorgan12 avatar Jul 07 '24 16:07 CaptainMorgan12

Do the Processes and Apps pages work correctly? As in are there processes being listed or do you only see "System Processes" in Apps and nothing in Processes?

nokyan avatar Jul 07 '24 20:07 nokyan

System and App processes show correctly with Memory, and Processor %, but no GPU % value.

CaptainMorgan12 avatar Jul 07 '24 20:07 CaptainMorgan12

Could you send me the output of tree /sys/class/drm/card?/device as well as cat /sys/class/drm/card?/device/uevent?

nokyan avatar Jul 07 '24 20:07 nokyan

It looks like the driver for your GPU does not provide usage statistics unfortunately. Not much I can do about it. :/ Do you know about GPU monitoring tools that work for your GPU?

nokyan avatar Jul 08 '24 16:07 nokyan

According to guido.gunther GC7000 and GC7000Lite are using the etnaviv mesa driver and Gallium HUD should provide the performance bits. However as you can see below the GPU-load does not appear. There is also glmark2 which provides performance metrics of the graphics using glmark2-es2-wayland --fullscreen, but metrics are only in FPS, and FrameTime ms, no GPU load.

glxgears

CaptainMorgan12 avatar Jul 08 '24 18:07 CaptainMorgan12

Hm, okay. You could also try the CLI utility nvtop.

nokyan avatar Jul 08 '24 21:07 nokyan

It reports No GPU to monitor, the tool I think is only for NVIDIA GPUs. Thanks for the suggestion. The tools above seems to be the only ones I have come up with that work somewhat.

CaptainMorgan12 avatar Jul 08 '24 21:07 CaptainMorgan12

It reports No GPU to monitor, the tool I think is only for NVIDIA GPUs. Thanks for the suggestion. The tools above seems to be the only ones I have come up with that work somewhat.

Despite its name, nvtop also supports non-NVIDIA GPUs. :)

I'll continue to look around but I think the etnaviv driver just doesn't expose that information unfortunately. :/

nokyan avatar Jul 08 '24 21:07 nokyan

Ok I might have found the only tool called Vivante Analyzer (windows tool). This puts out a .vpd file that has GPU cycles.

Vivante GPU Profiler iMX6. There is nothing on their website about iMX8 as far as I can tell, but maybe it works with iMX8.

Vivante.Tool.Kit.User.Guide-v1.2.pdf

It looks like it requires the kernel to be re-compiled to enable profiler settings.

Screenshot from 2024-07-08 14-55-58

CaptainMorgan12 avatar Jul 08 '24 21:07 CaptainMorgan12