add hiopt table for gpu undervolt

This commit is contained in:
hanabbi committed 2023-05-26 19:03:56 +09:00
1 parent f3303152b7
commit 3bbcbdae95
7 files changed
+62 -27

No files matched your search

+14 -1
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;
+2 -1
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;