Commit Graph

43 Commits

Author SHA1 Message Date
flightlessmango
c8c987dadb amdgpu: include gpu_metrics v2_4
But still use v2_3 for now. We need more testing before enabling v2_4
for older kernel versions
2023-12-26 03:54:28 +01:00
flightlessmango
971791d5da amdgpu: use v2_3 for v2_4
In kernel 6.6 v2_4 was added. This causes us to not find a version to use
as we limited by content rev 3.
For now we'll just limit by 4 instead and use the old v2_3 struct
2023-12-23 12:42:15 +01:00
Joshua Ashton
684750158e amdgpu, overlay: Use gpu_metrics for CoreClock on Steam Deck
sysfs path gives 200 or 1040 Mhz always. Don't use that!
2023-12-01 09:24:30 +01:00
FlightlessMango
55c8be5b0b amdgpu: collect throttling data for graph 2023-09-29 15:41:15 +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
FlightlessMango
4161139597 amdgpu: run_thread default to true 2023-05-02 18:52:23 +02:00
FlightlessMango
7853af98d0 mangoapp: amdgpu: pause the polling thread when it's not needed 2023-05-01 13:52:26 +02:00
FlightlessMango
5aec3d817b amdgpu: fan speed 2023-04-20 03:08:25 +02:00
Kira Bruneau
2918b6ef1b amdgpu: fix reading apu power & temperature 2023-04-16 03:32:49 +02:00
Oliver Chang
a155c10df3 Add missing division for fallback AMD CPU power calculation. 2023-04-13 18:37:59 +02:00
sfrcorne
020e8485e2 small fix for average cpu_power 2 2023-04-04 20:53:19 +02:00
sfrcorne
2187b9ef19 small fix for average cpu_power 2023-04-04 02:42:49 +02:00
sfrcorne
a98a402619 Fix for AMD Ryzen 7000 CPU when using the iGPU. 2023-04-04 02:42:49 +02:00
sfrcorne
cd74b27da2 Cleanup cpu.cpp and and support for gpu_metrics_v2_3 2023-04-04 02:42:49 +02:00
FlightlessMango
d59375b0c9 amdgpu: add support for gpu_metrics_v2_3 2023-03-28 22:27:12 +02:00
FlightlessMango
06b46fd5d7 Fix building with mingw 2023-03-12 14:44:40 +01:00
Emil Velikov
047bc2e7f7 tests: make it work aka hide HUDElements
Currently the test is pulling an external reference to HUDElements,
which is unresolved so the test fails to link.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-12 14:08:42 +01:00
FlightlessMango
3190778086 Don't update metrics if we're not logging and not displaying 2023-02-07 12:09:10 +01:00
FlightlessMango
475026a183 amdgpu: move defines to header 2023-02-07 07:27:30 +01:00
FlightlessMango
cb7d2a2447 amdgpu tests 2022-10-27 03:44:00 +02:00
FlightlessMango
3949c6c87f amdgpu: change cpu/gpu temps from max to avg 2022-09-09 22:51:00 +02:00
Alessandro Toia
08431a0221 Fix reporting amdgpu clock speed 2022-08-01 19:47:16 -07:00
FlightlessMango
f81369bd68 amdgpu: average gfx and cpu power as float 2022-05-19 07:40:27 +02:00
FlightlessMango
1447778fd4 amdgpu: improve polling perf by reading with c
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2022-05-16 09:01:13 +02:00
FlightlessMango
5167e72649 gpu_metrics: send v1_0 to sysfs instead 2022-05-11 15:35:23 +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
bcf16a0def amdgpu: fixed incorrect gpu load for centipercent
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2022-05-06 10:20:04 +02:00
FlightlessMango
ec5952d834 amdgpu: changed clocks to average 2022-05-04 05:10:40 +02:00
FlightlessMango
8b7a1995a9 amdgpu: fix cpu temp and watt 2022-05-03 16:08:03 +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
FlightlessMango
ae85730448 Improve amdgpu polling
Co-authored-by: Martin Roukala <martin.roukala@mupuf.org>
2022-05-02 11:45:05 +02:00
FlightlessMango
5349226fa5 amdgpu: average load over .5s 2022-04-23 16:34:35 +02:00
jackun
3ee1048acf Check if amdgpu gpu_metrics can be read and do some sanity-checks 2022-03-31 09:04:11 +03:00
jackun
11142b5b2c
Merge pull request #703 from evelikov/misc-mixes
Remove libdrm_amdgpu and other unnecessary code
2022-03-15 19:47:48 +02:00
FlightlessMango
1940a83566 mangoapp: don't assume APU for temps 2022-03-13 15:51:41 +01: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
30cfe839eb Address signed comparisons warnings
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-06 19:03:35 +00:00
jackun
a029dfaaf2
Don't hide gpu_metrics behind HAVE_LIBDRM_AMDGPU 2022-02-18 17:35:11 +02:00
FlightlessMango
d71dd74685 Fix amdgpu watt and make it more granular 2022-02-07 04:34:17 +01:00
FlightlessMango
d72099d1e7 Fixed issue with amdgpu metrics for APU 2022-02-06 21:56:33 +01:00
FlightlessMango
986f3cc1b3 gpu_metrics: apu: set cpu temp as highest core temp 2022-02-04 21:01:44 +01:00
FlightlessMango
6983c2ec39 Use gpu_metrics instead of libdrm when available 2022-02-04 19:55:00 +01:00
FlightlessMango
37e18279e7 mangoapp: use amdgpu metrics 2022-01-14 22:41:38 +01:00