Skip to content

Commit

Permalink
Add experimental support for 7020 and 7040 series APUs
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCJ60 committed Feb 20, 2023
1 parent 3f9c428 commit b1bb42b
Show file tree
Hide file tree
Showing 7 changed files with 196 additions and 133 deletions.
4 changes: 2 additions & 2 deletions Pages/CustomPresets.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
<CheckBox x:Name="cbVRMGFXMax" Content="VRM GFX Current Max (EDC A):" HorizontalAlignment="Left" Margin="33,449,0,0" VerticalAlignment="Top" Foreground="White" BorderBrush="White" FontSize="16" Width="284" BorderThickness="0,1,1,1" Padding="8,-4,0,0" Height="18"/>
<Controls:NumericSpinner Step="1" x:Name="nudVRMGFXMax" Width="95" Height="22" Margin="314,447,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" MinValue="0" Value="0"/>

<CheckBox x:Name="cbVRMCVIP" Content="VRM CVIP Current (TDC A):" HorizontalAlignment="Left" Margin="33,473,0,0" VerticalAlignment="Top" Foreground="White" BorderBrush="White" FontSize="16" Width="284" BorderThickness="0,1,1,1" Padding="8,-4,0,0" Height="18"/>
<Controls:NumericSpinner Step="1" x:Name="nudVRMCVIP" Width="95" Height="22" Margin="314,471,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" MinValue="0" Value="0"/>
<CheckBox x:Name="cbVRMCVIP" Content="VRM CVIP Current (TDC A):" HorizontalAlignment="Left" Margin="33,473,0,0" VerticalAlignment="Top" Foreground="White" BorderBrush="White" FontSize="16" Width="284" BorderThickness="0,1,1,1" Padding="8,-4,0,0" Height="18" Visibility="Collapsed"/>
<Controls:NumericSpinner Step="1" x:Name="nudVRMCVIP" Width="95" Height="22" Margin="314,471,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" MinValue="0" Value="0" Visibility="Collapsed"/>

<CheckBox x:Name="cbRampTime" Content="Prochot Deassertion Ramp (s):" HorizontalAlignment="Left" Margin="33,266,0,0" VerticalAlignment="Top" Foreground="White" BorderBrush="White" FontSize="16" Width="283" BorderThickness="0,1,1,1" Padding="8,-4,0,0" Height="18"/>
<Controls:NumericSpinner Step="1" x:Name="nudRampTime" Width="95" Height="22" Margin="314,265,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" MinValue="0" Value="0"/>
Expand Down
2 changes: 1 addition & 1 deletion Pages/HomeMenu.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<RadioButton Style="{DynamicResource ButtonWithIcon}" Tag="{DynamicResource GitHub}" Margin="440,397,160,33" FontSize="20" Foreground="White" Content="Latest Releases" Height="70" Width="250" Click="Releases_Click"/>
<TextBlock Foreground="White" FontSize="16" Margin="1,0,0,-1.5" HorizontalAlignment="Left" VerticalAlignment="Bottom">

<Run Text="Universal x86 Tuning Utility - V1.1.0 Beta 2"/>
<Run Text="Universal x86 Tuning Utility - V1.1.0 Beta 3"/>
<LineBreak/>
<Run Text="Created by JamesCJ, sbski, and ProjectSBC"/>
</TextBlock>
Expand Down
264 changes: 135 additions & 129 deletions Pages/Info.xaml.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Scripts/SMU Backend Scripts/Addresses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static void SetAddresses()
RyzenSmu.Smu.PSMU_ADDR_RSP = 0x3B10A80;
RyzenSmu.Smu.PSMU_ADDR_ARG = 0x3B10A88;
}
else if (FAMID == 5 || FAMID == 8 || FAMID == 9)
else if (FAMID == 5 || FAMID == 8 || FAMID == 9 || FAMID == 11)
{
RyzenSmu.Smu.MP1_ADDR_MSG = 0x3B10528;
RyzenSmu.Smu.MP1_ADDR_RSP = 0x3B10578;
Expand Down
5 changes: 5 additions & 0 deletions Scripts/SMU Backend Scripts/Families.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ internal class Families
//REMBRANDT - 8
//PHEONIX - 9
//RAPHAEL/DRAGON RANGE - 10
//MENDOCINO - 11

public static void SetFam()
{
Expand Down Expand Up @@ -93,6 +94,10 @@ public static void SetFam()
FAMID = 10; //RAPHAEL/DRAGON RANGE
}

if (CPUModel.Contains("Model " + Convert.ToString(160)))
{
FAMID = 11; //PHEONIX
}

Addresses.SetAddresses();
}
Expand Down
50 changes: 50 additions & 0 deletions Scripts/SMU Backend Scripts/SendCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public static void set_stapm_limit(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x14, ref Args);
RyzenAccess.SendPsmu(0x31, ref Args);
break;
Expand All @@ -67,6 +69,8 @@ public static void set_stapm2_limit(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendPsmu(0x31, ref Args);
break;
default:
Expand All @@ -92,6 +96,8 @@ public static void set_fast_limit(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x15, ref Args);
break;
default:
Expand All @@ -118,6 +124,8 @@ public static void set_slow_limit(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x16, ref Args);
break;
default:
Expand All @@ -144,6 +152,8 @@ public static void set_slow_time(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x17, ref Args);
break;
default:
Expand All @@ -170,6 +180,8 @@ public static void set_stapm_time(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x18, ref Args);
break;
default:
Expand Down Expand Up @@ -199,6 +211,8 @@ public static void set_tctl_temp(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x19, ref Args);
break;
case 4:
Expand Down Expand Up @@ -233,6 +247,8 @@ public static void set_cHTC_temp(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendPsmu(0x37, ref Args);
break;
default:
Expand All @@ -252,6 +268,8 @@ public static void set_apu_skin_temp_limit(uint value)
{
case 5:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x33, ref Args);
break;
case 3:
Expand Down Expand Up @@ -282,6 +300,8 @@ public static void set_vrm_current(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x1a, ref Args);
break;
default:
Expand All @@ -308,6 +328,8 @@ public static void set_vrmsoc_current(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x1b, ref Args);
break;
default:
Expand Down Expand Up @@ -372,6 +394,8 @@ public static void set_vrmmax_current(uint value)
case 3:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x1c, ref Args);
break;
default:
Expand Down Expand Up @@ -416,6 +440,8 @@ public static void set_vrmsocmax_current(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x1d, ref Args);
break;
default:
Expand Down Expand Up @@ -644,6 +670,8 @@ public static void set_prochot_deassertion_ramp(uint value)
RyzenAccess.SendMp1(0x20, ref Args);
break;
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x1f, ref Args);
break;
default:
Expand All @@ -663,6 +691,8 @@ public static void set_gfx_clk(uint value)
{
case 3:
case 8:
case 9:
case 11:
RyzenAccess.SendPsmu(0x89, ref Args);
break;
default:
Expand All @@ -685,6 +715,8 @@ public static void set_dGPU_skin(uint value)
RyzenAccess.SendMp1(0x37, ref Args);
break;
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x32, ref Args);
break;
default:
Expand All @@ -711,6 +743,8 @@ public static void set_power_saving(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x12, ref Args);
break;
default:
Expand All @@ -737,6 +771,8 @@ public static void set_max_performance(uint value)
case 5:
case 7:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x11, ref Args);
break;
default:
Expand Down Expand Up @@ -773,6 +809,8 @@ public static void set_oc_clk(uint value)
RyzenAccess.SendPsmu(0x5c, ref Args);
break;
case 8:
case 9:
case 11:
RyzenAccess.SendPsmu(0x19, ref Args);
break;
case 10:
Expand Down Expand Up @@ -812,6 +850,8 @@ public static void set_per_core_oc_clk(uint value)
RyzenAccess.SendPsmu(0x5d, ref Args);
break;
case 8:
case 9:
case 11:
RyzenAccess.SendPsmu(0x1a, ref Args);
break;
case 10:
Expand Down Expand Up @@ -880,6 +920,8 @@ public static void set_coall(uint value)
break;
case 5:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x4c, ref Args);
RyzenAccess.SendPsmu(0x5D, ref Args);
break;
Expand Down Expand Up @@ -911,6 +953,8 @@ public static void set_coper(uint value)
break;
case 5:
case 8:
case 9:
case 11:
RyzenAccess.SendMp1(0x4b, ref Args);
break;
case 10:
Expand Down Expand Up @@ -938,6 +982,8 @@ public static void set_cogfx(uint value)
break;
case 5:
case 8:
case 9:
case 11:
RyzenAccess.SendPsmu(0xb7, ref Args);
break;
default:
Expand Down Expand Up @@ -975,6 +1021,8 @@ public static void set_disable_oc()
RyzenAccess.SendPsmu(0x5b, ref Args);
break;
case 8:
case 9:
case 11:
RyzenAccess.SendPsmu(0x18, ref Args);
break;
case 10:
Expand Down Expand Up @@ -1015,6 +1063,8 @@ public static void set_enable_oc()
RyzenAccess.SendPsmu(0x5a, ref Args);
break;
case 8:
case 9:
case 11:
RyzenAccess.SendPsmu(0x17, ref Args);
break;
case 10:
Expand Down
2 changes: 2 additions & 0 deletions Windows/OverlayWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ void AutoReapply_Tick(object sender, EventArgs e)
RyzenAdj_To_UXTU.Translate(Settings.Default.ChargingPreset);
Settings.Default.RyzenAdjArguments = Settings.Default.ChargingPreset;
Settings.Default.Save();
BasicExeBackend.ApplySettings("\\bin\\Notification.exe", "1 Charging-Preset-Applied! Your-settings-have-been-applied-successfully.", false);
}
}
else
Expand All @@ -224,6 +225,7 @@ void AutoReapply_Tick(object sender, EventArgs e)
RyzenAdj_To_UXTU.Translate(Settings.Default.BatteryPreset);
Settings.Default.RyzenAdjArguments = Settings.Default.BatteryPreset;
Settings.Default.Save();
BasicExeBackend.ApplySettings("\\bin\\Notification.exe", "1 Battery-Preset-Applied! Your-settings-have-been-applied-successfully.", false);
}
}
}
Expand Down

0 comments on commit b1bb42b

Please sign in to comment.