mirror of
https://github.com/rawhide-kobayashi/ryzen-smu-cli.git
synced 2025-04-16 12:51:51 -05:00
Merge 056a3add8f21698fd55980bbc16ed81b0e12f1a8 into 3ecb82affab9d9d2de6e9eb405e661c280910c7e
This commit is contained in:
commit
ee6b912db3
@ -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 += ",";
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user