Change AMD overclocking to simply be setting the power_dpm_force_performance_level file for now

This covers the MVP for now, and simply allows pinning the power level to "high"

	Full overclocking set up is somewhat more complicated, and it'll be better to implement that at the same time as the same for Nvidia, where we're currently only really setting the top end power level
This commit is contained in:
Marc Di Luzio
2019-03-07 18:51:20 +00:00
committed by Alex Smith
parent 20efaaa33f
commit 9ade4481c3
9 changed files with 156 additions and 106 deletions

View File

@@ -30,6 +30,7 @@ POSSIBILITY OF SUCH DAMAGE.
*/
#pragma once
#include "daemon_config.h"
/* Enums for GPU vendors */
enum GPUVendor {
@@ -45,10 +46,11 @@ enum GPUVendor {
/* Storage for GPU info*/
struct GameModeGPUInfo {
long vendor;
long device; /* path to device, ie. /sys/class/drm/card#/ */
long nv_core; /* Core clock to apply */
long nv_mem; /* Mem clock to apply */
long device; /* path to device, ie. /sys/class/drm/card#/ */
long nv_perf_level; /* The Nvidia Performance Level to adjust */
long nv_core; /* Nvidia core clock */
long nv_mem; /* Nvidia mem clock */
char amd_performance_level[CONFIG_VALUE_MAX]; /* The AMD performance level set to */
};