425 Commits

Author SHA1 Message Date
Maxime Schmitt
0316ce1958 Update Docker image base to ubuntu 20.04 2024-02-26 17:55:16 +01:00
Maxime Schmitt
f61ee5019c Merge pull request #272 from hmaarrfk/patch-2
Remove import of kcmp
2024-02-26 17:31:43 +01:00
Maxime Schmitt
fb9ef11db1 amgdpu: video code engine version extraction 2024-02-26 17:11:10 +01:00
Maxime Schmitt
3a5eb17c80 Update readme's supported targets paragraph 2024-02-25 22:09:17 +01:00
Maxime Schmitt
a7a00275f1 Support for recent NVML API 2024-02-25 21:51:08 +01:00
Maxime Schmitt
4989f31328 Video encode/decode shared by static instance
Fixes #232
2024-02-25 21:29:01 +01:00
Maxime Schmitt
f86b74b3aa AppImage script update 2024-02-25 14:50:14 +01:00
Maxime Schmitt
3a69c2d060 AppImage build instruction & script 2024-02-24 15:18:41 +01:00
Mark Harfouche
b4679db71a Remove import of kcmp 2024-02-23 13:18:13 -05:00
Maxime Schmitt
7906a062c7 Bump version 3.1.0 3.1.0 2024-02-23 15:41:56 +01:00
Maxime Schmitt
8c63384eab Merge pull request #254 from caseylai/master
Add support for Huawei Ascend NPU
2024-02-23 14:50:37 +01:00
Maxime Schmitt
50196930e3 Merge master into ascend branch 2024-02-23 14:49:10 +01:00
Maxime Schmitt
e86438be4b Remove unnecessary code for Mac 2024-02-23 14:43:22 +01:00
Maxime Schmitt
05122d3827 Merge pull request #260 from SamRaymond/master
Updated to fix errors in build to run on M2 Air
2024-02-23 14:40:20 +01:00
Maxime Schmitt
74157b8abf Merge pull request #263 from Sonicadvance1/a750
MSM: Add support for a750 and ignore speed-bin
2024-02-23 14:35:23 +01:00
Ryan Houdek
f1474236c1 MSM: Ignore speedbin in id if exact id isn't found
Speedbin of the chip is in the first 16-bits of the top half of the
64-bit ID. If we don't find a marketing name with the speed bin then
mask it off and try again. Will fix IDs for GPUs that are just binned.
2024-01-09 13:23:37 -08:00
Ryan Houdek
2360a3e76f Add support for Adreno 750
IDs from Mesa, it has up to three different ids.
2024-01-09 13:23:02 -08:00
SamRaymond
4dd8b3cecb Updated to fix errors in build to run on M2 Air 2023-12-26 21:20:37 -05:00
Maxime Schmitt
eb56ee86ae Merge pull request #235 from larunbe/panfrost
ARM Mali GPU Panfrost support
2023-11-28 16:54:43 +01:00
Maxime Schmitt
52b26b5bc1 Merge pull request #255 from larunbe/unset-home-fix
interface_options: handle both XDG_CONFIG_HOME and HOME being unset
2023-11-28 16:53:59 +01:00
Maxime Schmitt
557d7651c5 Fix save w/o config location path 2023-11-28 16:50:56 +01:00
Adrián Larumbe
9e55f4c400 interface_options: handle both XDG_CONFIG_HOME and HOME being unset
When HOME was unset, nvtop would segfault as in the following trace:

Process terminating with default action of signal 11 (SIGSEGV)
 Access not within mapped region at address 0x0
   at 0x488B298: strlen (in /usr/libexec/valgrind/vgpreload_memcheck-arm64-linux.so)
   by 0x119F33: default_config_path (interface_options.c:48)
   by 0x11A5F3: alloc_interface_options_internals (interface_options.c:138)
   by 0x10FEBF: main (nvtop.c:209)

We need to handle the unlikely case in which HOME is also unset.  On top of
that, default_config_path()'s return value has to be checked in the calling
function to make sure a default config file's path string is only allocated
when != NULL.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
2023-11-28 15:11:03 +00:00
Maxime Schmitt
8661d4e241 Prevent potential Ascend device name buffer overflow 2023-11-27 12:21:25 +01:00
k
6bdc385a58 remove temp file 2023-11-27 15:12:00 +08:00
k
1dfeb6305e fix issues for PR 2023-11-27 15:00:33 +08:00
Maxime Schmitt
ddc9a03f69 Merge pull request #253 from Jun0922/feature/upgrade_cmake_3.18
cmake version upgrade docker script. 3.10 to 3.18
2023-11-26 12:42:59 +01:00
Maxime Schmitt
97f08595ae CMake dependency install for docker script 2023-11-26 12:41:00 +01:00
Adrián Larumbe
a398ede0ac Toggle Panfrost's sysfs profiling hook after DRM handle is retrieved
Otherwise nvtop will attempt to toggle them even on systems for which
nvtop was built with Panfrost support, but which possess no Mali GPUs.

This also makes sure the right sysfs profiling hook is touched for every
single Mali GPU in the system, even on SoCs with more than one of
these (yes, those do exist).

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
2023-11-25 17:10:26 +00:00
k
5fcef14b12 add ascend build script and README 2023-11-22 13:58:31 +08:00
k
a7c8a93b36 add ascend extract gpu info code 2023-11-20 09:59:05 +08:00
도준혁
9e382b01a2 cmake version upgrade docker script. 3.10 to 3.18 2023-11-16 15:48:43 +09:00
Maxime Schmitt
e9351f7b38 GPU info bar option in F2 menu 2023-10-21 18:14:22 +01:00
Maxime Schmitt
2dd7424704 Save GPU info bar option to config file 2023-10-21 18:14:22 +01:00
Maxime Schmitt
973f529a7b Fix related to pull request #248 2023-10-21 18:14:22 +01:00
Adrián Larumbe
d5360b6673 Refactor Panthor and Panfrost into library of shared code
The level of code reduplication between Panthor and Panfrost backends was
outrageous. Factorise all their shared functions and definitions into a
separate library that is only built for these two backends.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
2023-10-21 18:14:19 +01:00
Adrián Larumbe
87758087ee Add support for Mali CSF GPUs with the Panthor driver.
This targets the new generation of ARM Mali CSF mobile GPUs, which for now
comprise the G310 and G610 models.

Most of the code was reused from the Panfrost backend, so there is plenty
of room for refactorisation, which shall be goal of a later changeset.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
2023-10-21 18:13:16 +01:00
Adrián Larumbe
10bdb8372e Add Panfrost support for manual calculation of engine utilisation
Panfrost can provide an approximation of the GFX engine utiliation rate by
relating the number of total process cycles against the maximum device's
operating frequency and the delta between nvtop samples.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
2023-10-21 18:13:16 +01:00
Adrián Larumbe
d02a6820ad Add support for post-fdinfo processing calculation of utilisation
According to Kernel documentation, in
Documentation/gpu/drm-usage-stats.rst, drm-maxfreq-keystr and
drm-cycles-keystr can be used to perform a manual calculation of the
engine's percentage utilization, in cases where the underlying GPU doesn't
support providing this information through a native hardware interface.

However, for its calculations, all fdinfo drm-cycles values for every
single process that has opened the device file must have been retrieved, so
a new gpu vendor struct callback was added to do this right before
gpuinfo_fix_dynamic_info_from_process_info is invoked.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
2023-10-21 18:13:16 +01:00
Adrián Larumbe
d483c0f78e Add support for Panfrost display of additional GPU properties
Populates L2 Cache size, number of shading cores and number of execution
engines GPU fields with data sourced from the GET_PARAM panfrost ioctl().

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
2023-10-21 18:13:16 +01:00
Adrián Larumbe
f17a488d5d Add display of additional GPU features
Adds a new UI bar with some optional parameters like the number of shader
cores, number of execution engines and size of L2 cache.
Display of this bar is triggered with a program argument.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
2023-10-21 18:13:16 +01:00
Adrián Larumbe
46e641d97c Add support for Mali GPUs with the Panfrost driver
Derived mostly from existing work for MSM.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
2023-10-21 18:13:16 +01:00
Maxime Schmitt
45a1796375 Merge pull request #247 from Syllo/deactivate_callback_for_hidden_gpus
Deactivate callback for hidden gpus
2023-10-21 16:57:54 +02:00
Maxime Schmitt
11abc2caae Merge pull request #248 from jackyyf/hash-fix
Fix cache_entry for Intel and AMD GPU.
2023-10-21 16:56:27 +02:00
Yifu Yu
84c9eeb4fd Fix cache_entry for Intel and AMD GPU.
Commit af1ff03b7b and
d9004a785f has introduced the correct
uniqueness for Intel and AMD, but the HASH_FIND_CLIENT and
HASH_ADD_CLIENT are still using cid only. This commit fixed this, and
fully resolved #196.

Fixes: #196
2023-10-21 04:39:38 +08:00
Maxime Schmitt
d70c8a2efb Fix compilation warnings 2023-10-19 15:26:56 +02:00
Maxime Schmitt
77543bd18e Disable fdinfo callbacks for hidden gpus 2023-10-19 15:22:50 +02:00
Maxime Schmitt
7e94d809c5 Merge pull request #233 from Snektron/apple
Apple platform & GPU support
2023-10-11 10:19:00 +02:00
Robin Voetter
1f4fed6cee readme: add some notes on Apple status 2023-10-08 17:09:08 +02:00
Maxime Schmitt
e6e2edd8c5 Merge pull request #245 from Sonicadvance1/more_adreno_ids
MSM: Adds a couple GPU IDs
2023-10-08 14:05:11 +02:00
Ryan Houdek
605a81cc50 MSM: Adds a couple GPU IDs
Adds a missing A690 "no-speedbin" ID and an A643 ID from the QCM6490.
2023-10-05 10:43:46 -07:00