Commit Graph

43 Commits (master)

Author SHA1 Message Date
FlightlessMango 45671161c4 gpu_fan: rewrite rpm/% indication 3 months ago
flightlessmango c33ce2b734 amdgpu: hwmon: check for power1_input
Some GPUs don't support power1_average and only power1_input.
Some GPUs support both. We check if power1_average exists first, then
fallback to power1_input
4 months ago
flightlessmango f351515265 Fix gpu_fan for AMD
It was incorrectly checking deviceID instead of vendorID.
We also use hwmon for fan reading just in case.
7 months ago
andrefsagh@gmail.com 5054f6ceff Show amdgpu voltage from hwmon
Added config parameter 'gpu_voltage'
10 months ago
FlightlessMango 6abc794b42 amdgpu: use hwmon for core clock
gpu_metrics currently reports the wrong value, so until that's fixed
we'll rely in hwmon
11 months ago
Bill Li 9b0aec0540 nvml: Do not include header nvctrl.h if not build with xnvctrl support 1 year ago
Bill Li 2101090f00 nvml: Use #ifdef HAVE_XNVCTRL to check if xnvctrl is available 1 year ago
FlightlessMango cbf531e6c8 nvml: use xnvctrl if available to get fan speed 1 year ago
Arvind Doobary d41a74ca1a
Show amdgpu junction and memory temp, if available
Added config parameter `gpu_junction_temp` and `gpu_mem_temp`

Closes #841
1 year ago
FlightlessMango 1093de8c44 nvml: fan: get rpm instead of percentage 1 year ago
FlightlessMango 7eea724f37 amdgpu: hwmon fan: fix typo 1 year ago
FlightlessMango 016728b450 nvctrl: fan speed 1 year ago
FlightlessMango 2df384cdd7 nvml: fan speed 1 year ago
FlightlessMango 4b69f23fb5 Add gpu_fan param and hwmon fan reading
Co-authored-by: Andreas Rachev <andreasratchev@gmail.com>
1 year ago
FlightlessMango 05444cb021 gpu: amdgpuinfo: ifdef linux for windows build 1 year ago
jackun d73932ad17
Clean up getAmdGpuInfo_actual 2 years ago
FlightlessMango 17d4c1dd4a amdgpu: use gtt_used for APUs 2 years ago
FlightlessMango 19fbd9bf9b Nvidia: only do throttling checks if enabled 2 years ago
FlightlessMango b30302c889 amdgpu: prefer hwmon over gpu_metrics for gpu temp
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2 years ago
FlightlessMango f9cfdeb080 Add gpu throttling status
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2 years ago
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