Commit Graph

23 Commits (68ce8f81cc767ee5e7adfb38a9fb2e3388e21633)

Author SHA1 Message Date
Emil Velikov 68ce8f81cc Remove libdrm_amdgpu metrics
There are two alternatives - hwmon entries and gpu_metrics sysfs file.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
Emil Velikov abbe5233ee Remove unused X11/drm auth code
The code was added back in 2020 and seemingly never built. Just drop it
- if needed it can be git reverted at some point.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2 years ago
FlightlessMango 30ee0b770d Don't use all sysfs files if metrics_path 2 years ago
FlightlessMango 6983c2ec39 Use gpu_metrics instead of libdrm when available 2 years ago
FlightlessMango 8e2c7e8524 mangoapp: disable amdgpu_handles 2 years ago
jackun a431c092eb
Separate libdrm and libdrm_amdgpu loader 3 years ago
jackun a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time 3 years ago
jackun d41ad84260
Poll amdgpu regs at 120ticks/s regardless of sampling period 3 years ago
jackun 2f807a4c0d
Add `spdlog` wrap and logging 3 years ago
jackun c093f9823e
Use libdrm_amdgpu for amdgpu sensor info, if available
Using plain `open` as `drmOpen` needs bus id check which needs interface 1.4 ioctl which gives EPERM cause only DRM_MASTER can call it :(

https://github.com/clbr/radeontop/issues/48#issuecomment-493792404
3 years ago
Witold Baryluk e712a26eff
Perform updates of gpuInfo struct in more atomic way
The issue is that value might be set to 0, or original miliC (i.e. 35000),
while the other thread is reading it from the memory.

Instead using single writes to the target location,
only with intended end value.

This is a not a full proper fix (like using mutex between overlay and the thread
doing hw info update), but should alleviate issue of logging sometimes
having value 0, or original value of miliC for temperature.
4 years ago
FlightlessMango fde20cac81 Collect total vram for Nvidia 4 years ago
jackun c15133b82f
Add `checkNvidia` for nvml/xnvctrl/nvapi checks, for header cleanup 4 years ago
FlightlessMango bf9132bba1 Win32 nvapi gpu usage 4 years ago
jackun 1495b1e88f
ifdef guard nvml header 4 years ago
jackun 953c8d0e0f
Add meson option `with_nvml` 4 years ago
jackun ff48525313
Consolidated amdgpu file handles to a struct and add `gpu_power` param to show power usage for amdgpu/nvml 4 years ago
jackun 768297b430
[editorconfig] Apply whitespace rules 4 years ago
FlightlessMango bff9958284 Changed pthreads to std::thread 4 years ago
jackun 049e960589
Add 'use_xnvctrl' feature to allow building without libXNVCtrl support 4 years ago
jackun fbae1dfcc0
More checks for XNVCtrl support. Favor NVML but fallback to XNVCtrl if supported. 4 years ago
FlightlessMango e7b5a18d87 If NVML fails fallback to NVctrl 4 years ago
FlightlessMango a2735693ba Merge opengl into develop 4 years ago