add hiopt table for gpu undervolt

This commit is contained in:
hanabbi
2023-05-26 13:46:30 +09:00
parent f3303152b7
commit 3bbcbdae95
7 changed files with 62 additions and 27 deletions

View File

@@ -305,7 +305,20 @@ Result FileUtils::CustParser(const char* filepath, size_t filesize) {
}
cpu_dvfs_table = &table.marikoCpuDvfsTable;
gpu_dvfs_table = table.marikoGpuUV ? &table.marikoGpuDvfsTableUV : &table.marikoGpuDvfsTable;
switch (table.marikoGpuUV) {
case 0:
gpu_dvfs_table = table.marikoGpuDvfsTable;
break;
case 1:
gpu_dvfs_table = table.marikoGpuDvfsTableSLT;
break;
case 2:
gpu_dvfs_table = table.marikoGpuDvfsTableHiOPT;
break;
default:
gpu_dvfs_table = table.marikoGpuDvfsTable;
break;
}
} else {
if (table.eristaEmcMaxClock)
Clocks::maxMemFreq = table.eristaEmcMaxClock * 1000;

View File

@@ -61,7 +61,8 @@ typedef struct CustTable {
CustomizeCpuDvfsTable marikoCpuDvfsTable;
CustomizeGpuDvfsTable eristaGpuDvfsTable;
CustomizeGpuDvfsTable marikoGpuDvfsTable;
CustomizeGpuDvfsTable marikoGpuDvfsTableUV;
CustomizeGpuDvfsTable marikoGpuDvfsTableSLT;
CustomizeGpuDvfsTable marikoGpuDvfsTableHiOPT;
void* eristaMtcTable;
void* marikoMtcTable;
} CustTable;