feat: mariko gpu undervolt implementation
This commit is contained in:
@@ -305,7 +305,7 @@ Result FileUtils::CustParser(const char* filepath, size_t filesize) {
|
||||
}
|
||||
|
||||
cpu_dvfs_table = &table.marikoCpuDvfsTable;
|
||||
gpu_dvfs_table = &table.marikoGpuDvfsTable;
|
||||
gpu_dvfs_table = !table.marikoGpuUV ? &table.marikoGpuDvfsTable : &table.marikoGpuDvfsTableUV;
|
||||
} else {
|
||||
if (table.eristaEmcMaxClock)
|
||||
Clocks::maxMemFreq = table.eristaEmcMaxClock * 1000;
|
||||
|
||||
@@ -56,15 +56,17 @@ typedef struct CustTable {
|
||||
u32 marikoCpuMaxVolt;
|
||||
u32 marikoEmcMaxClock;
|
||||
u32 marikoEmcVddqVolt;
|
||||
u32 marikoGpuUV;
|
||||
CustomizeCpuDvfsTable eristaCpuDvfsTable;
|
||||
CustomizeCpuDvfsTable marikoCpuDvfsTable;
|
||||
CustomizeGpuDvfsTable eristaGpuDvfsTable;
|
||||
CustomizeGpuDvfsTable marikoGpuDvfsTable;
|
||||
CustomizeGpuDvfsTable marikoGpuDvfsTableUV;
|
||||
void* eristaMtcTable;
|
||||
void* marikoMtcTable;
|
||||
} CustTable;
|
||||
static_assert(sizeof(CustTable) == sizeof(u8) * 4 + sizeof(u32) * 9 + sizeof(CustomizeCpuDvfsTable) * 4 + sizeof(void*) * 2);
|
||||
static_assert(sizeof(CustTable) == 7000);
|
||||
//static_assert(sizeof(CustTable) == sizeof(u8) * 4 + sizeof(u32) * 9 + sizeof(CustomizeCpuDvfsTable) * 4 + sizeof(void*) * 2);
|
||||
//static_assert(sizeof(CustTable) == 7000);
|
||||
|
||||
class FileUtils
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user