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.
2023-10-31 15:04:53 +01:00
andrefsagh@gmail.com
5054f6ceff
Show amdgpu voltage from hwmon
...
Added config parameter 'gpu_voltage'
2023-07-21 05:44:38 +02:00
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
2023-06-08 17:58:23 +02:00
Bill Li
9b0aec0540
nvml: Do not include header nvctrl.h if not build with xnvctrl support
2023-05-05 20:15:01 +02:00
Bill Li
2101090f00
nvml: Use #ifdef HAVE_XNVCTRL to check if xnvctrl is available
2023-05-05 20:15:01 +02:00
FlightlessMango
cbf531e6c8
nvml: use xnvctrl if available to get fan speed
2023-05-05 01:48:43 +02:00
Arvind Doobary
d41a74ca1a
Show amdgpu junction and memory temp, if available
...
Added config parameter `gpu_junction_temp` and `gpu_mem_temp`
Closes #841
2023-04-23 17:30:21 +03:00
FlightlessMango
1093de8c44
nvml: fan: get rpm instead of percentage
2023-04-23 07:27:22 +02:00
FlightlessMango
7eea724f37
amdgpu: hwmon fan: fix typo
2023-04-20 03:14:08 +02:00
FlightlessMango
016728b450
nvctrl: fan speed
2023-04-20 03:10:21 +02:00
FlightlessMango
2df384cdd7
nvml: fan speed
2023-04-20 03:09:14 +02:00
FlightlessMango
4b69f23fb5
Add gpu_fan param and hwmon fan reading
...
Co-authored-by: Andreas Rachev <andreasratchev@gmail.com>
2023-04-20 03:07:39 +02:00
FlightlessMango
05444cb021
gpu: amdgpuinfo: ifdef linux for windows build
2023-04-09 19:18:35 +02:00
jackun
d73932ad17
Clean up getAmdGpuInfo_actual
2022-05-14 19:50:57 +03:00
FlightlessMango
17d4c1dd4a
amdgpu: use gtt_used for APUs
2022-05-10 15:39:08 +02:00
FlightlessMango
19fbd9bf9b
Nvidia: only do throttling checks if enabled
2022-05-10 14:02:18 +02:00
FlightlessMango
b30302c889
amdgpu: prefer hwmon over gpu_metrics for gpu temp
...
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2022-05-06 10:21:11 +02:00
FlightlessMango
f9cfdeb080
Add gpu throttling status
...
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2022-05-03 11:00:05 +02:00
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>
2022-03-12 10:28:18 +00:00
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>
2022-03-12 10:28:18 +00:00
FlightlessMango
30ee0b770d
Don't use all sysfs files if metrics_path
2022-02-11 08:53:06 +01:00
FlightlessMango
6983c2ec39
Use gpu_metrics instead of libdrm when available
2022-02-04 19:55:00 +01:00
FlightlessMango
8e2c7e8524
mangoapp: disable amdgpu_handles
2022-01-29 20:29:10 +01:00
jackun
a431c092eb
Separate libdrm and libdrm_amdgpu loader
2021-08-12 16:21:37 +03:00
jackun
a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time
2021-07-27 16:16:39 +03:00
jackun
d41ad84260
Poll amdgpu regs at 120ticks/s regardless of sampling period
2021-07-16 04:06:36 +03:00
jackun
2f807a4c0d
Add spdlog
wrap and logging
2021-07-16 04:06:09 +03:00
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
2021-07-13 19:54:24 +03:00
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.
2020-12-01 05:32:37 +00:00
FlightlessMango
fde20cac81
Collect total vram for Nvidia
2020-11-06 22:04:10 +01:00
jackun
c15133b82f
Add checkNvidia
for nvml/xnvctrl/nvapi checks, for header cleanup
2020-09-09 11:24:24 +03:00
FlightlessMango
bf9132bba1
Win32 nvapi gpu usage
2020-09-07 04:38:55 +02:00
jackun
1495b1e88f
ifdef guard nvml header
2020-06-09 14:16:02 +03:00
jackun
953c8d0e0f
Add meson option with_nvml
2020-06-09 13:44:41 +03:00
jackun
ff48525313
Consolidated amdgpu file handles to a struct and add gpu_power
param to show power usage for amdgpu/nvml
2020-05-22 15:44:34 +03:00
jackun
768297b430
[editorconfig] Apply whitespace rules
2020-05-10 15:18:59 +03:00
FlightlessMango
bff9958284
Changed pthreads to std::thread
2020-05-01 23:55:21 +02:00
jackun
049e960589
Add 'use_xnvctrl' feature to allow building without libXNVCtrl support
2020-03-30 22:48:56 +03:00
jackun
fbae1dfcc0
More checks for XNVCtrl support. Favor NVML but fallback to XNVCtrl if supported.
2020-03-20 16:36:00 +02:00
FlightlessMango
e7b5a18d87
If NVML fails fallback to NVctrl
2020-03-20 12:54:54 +01:00
FlightlessMango
a2735693ba
Merge opengl into develop
2020-03-10 06:19:18 +01:00