Support SMU of Vangogh GPU shipped with BIOS 113

This commit is contained in:
Kamil Trzciński 2022-12-20 14:59:02 +01:00
parent 9d4828fdf1
commit 17832841ff
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
using CommonHelpers;
using System.Diagnostics;
using static CommonHelpers.Log;
using Device = System.Tuple<string, ulong, ulong, uint>;
using Device = System.Tuple<string, ulong, ulong, uint[]>;
namespace PowerControl.Helpers.AMD
{
@ -10,7 +10,7 @@ namespace PowerControl.Helpers.AMD
public static readonly Device[] SupportedDevices =
{
// SteamDeck
new Device("AMD Custom GPU 0405", 0x80300000, 0x8037ffff, 0x43F3900)
new Device("AMD Custom GPU 0405", 0x80300000, 0x8037ffff, new uint[] { 0x43F3900, 0x43F3C05 })
};
private static Device? DetectedDevice;
@ -92,7 +92,7 @@ namespace PowerControl.Helpers.AMD
}
var smuVersion = gpu.SMUVersion;
if (smuVersion != device.Item4)
if (!device.Item4.Contains(smuVersion))
{
TraceError("GPU: {0}: {1}: SMU not supported: {2:X8} (IO: {3})", deviceName, devicePNP, smuVersion, expectedRange);
return DetectionStatus.Retryable;

View file

@ -21,3 +21,4 @@
- Bug fixing to handle all known exceptions
- Require to acknowledge when using function that might trigger `Anti-Cheat` protection via top-most window
- GPU detection will log errors to `Sentry.io`
- Support SMU of Vangogh GPU shipped with BIOS 113