Merge 056a3add8f21698fd55980bbc16ed81b0e12f1a8 into 3ecb82affab9d9d2de6e9eb405e661c280910c7e

This commit is contained in:
sp00n 2025-04-11 03:33:35 -05:00 committed by GitHub
commit ee6b912db3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View File

@ -79,12 +79,18 @@ namespace ryzen_smu_cli
Console.WriteLine("Current PBO offsets:");
string offsetLine = "";
bool flagNotifyDisabledCCD = false;
for (int i = 0; i < mappedCores.Count; i++)
for (int logicalCore = 0; logicalCore < mappedCores.Count; logicalCore++)
{
int mapIndex = i < 8 ? 0 : 1;
int physicalCore = mappedCores[logicalCore];
int ccdIndex = (int)Math.Floor((double)(physicalCore / 8));
int ccdBitMask = ccdIndex << 8;
int coreNumOnCcd = physicalCore % 8;
uint coreBitMask = (uint)((ccdBitMask | (coreNumOnCcd & 0xF)) << 20);
try
{
offsetLine += Convert.ToDecimal((int)ryzen.GetPsmMarginSingleCore((uint)(((mapIndex << 8) | ((mappedCores[i] % 8) & 0xF)) << 20))!);
offsetLine += Convert.ToDecimal((int)ryzen.GetPsmMarginSingleCore(coreBitMask)!);
offsetLine += ",";
}

View File

@ -6,7 +6,7 @@
<RootNamespace>ryzen_smu_cli</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.1.2</Version>
<Version>0.1.3</Version>
</PropertyGroup>
<PropertyGroup>