[Lima] Can I read GPU usage with Streamline(DS-5) on Lima driver?
Erico Nunes
nunes.erico at gmail.com
Tue Jun 7 08:39:27 UTC 2022
Hello,
On Tue, Jun 7, 2022 at 5:21 AM 조영준 (YoungJun Jo) <youngjun at telechips.com> wrote:
> I am preparing to migrate Mali-400 GPU device driver to Lima driver. One important point for me here is, can I use the Streamline (DS-5 CE) tool I've been using in Lima to check the GPU usage in the same way?
No, not with Streamline.
> So my guess is that if I change the device driver to Lima, I won't be able to check GPU usage with Streamline anymore, right? If yes, How can I check Lima's real-time GPU usage?
GALLIUM_HUD works for the simplest cases.
As Vasily pointed out, for the performance counters there is this MR
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6077 and
associated kernel patch.
It uses a different approach as it exposes
https://www.khronos.org/registry/OpenGL/extensions/AMD/AMD_performance_monitor.txt
apitrace is a tool that implements the extension, so that is an option
to use with traces. To use it with anything else, that application
would also need to implement the AMD_performance_monitor extension
(which unfortunately is not very common).
The MR is stalled mostly because on the kernel side it needs a better
solution for the submit struct, as pointed out in
https://gitlab.freedesktop.org/enunes/linux/-/commit/2a5d90ac4f4c97b7e25f94497398794d5f0206f4#note_581894
. But I never really continued that work since then.
Erico
More information about the lima
mailing list