Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Librem 5] Vivante GC7000 Not showing usage #278

Open
1 task done
CaptainMorgan12 opened this issue Jul 7, 2024 · 12 comments
Open
1 task done

[Librem 5] Vivante GC7000 Not showing usage #278

CaptainMorgan12 opened this issue Jul 7, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@CaptainMorgan12
Copy link

CaptainMorgan12 commented Jul 7, 2024

Is there an existing issue for this?

  • 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 CaptainMorgan12 added the bug Something isn't working label Jul 7, 2024
@nokyan
Copy link
Owner

nokyan commented Jul 7, 2024

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

@CaptainMorgan12
Copy link
Author

CaptainMorgan12 commented Jul 7, 2024

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.

@nokyan
Copy link
Owner

nokyan commented Jul 7, 2024

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?

@CaptainMorgan12
Copy link
Author

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

@nokyan
Copy link
Owner

nokyan commented Jul 7, 2024

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

@CaptainMorgan12
Copy link
Author

devices.txt

drm.txt

@nokyan
Copy link
Owner

nokyan commented Jul 8, 2024

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?

@CaptainMorgan12
Copy link
Author

CaptainMorgan12 commented Jul 8, 2024

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

@nokyan
Copy link
Owner

nokyan commented Jul 8, 2024

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

@CaptainMorgan12
Copy link
Author

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.

@nokyan
Copy link
Owner

nokyan commented Jul 8, 2024

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. :/

@CaptainMorgan12
Copy link
Author

CaptainMorgan12 commented Jul 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants