Removed MSR mod for Bulldozer

It turned out to be useless: https://www.reddit.com/r/MoneroMining/comments/et7s7w/psa_amd_opteronfxa6a8a10_owners_needed_to_test/
This commit is contained in:
SChernykh 2020-01-27 09:39:39 +01:00
parent cd763be05b
commit 4571899664
4 changed files with 2 additions and 10 deletions

View file

@ -47,7 +47,6 @@ public:
MSR_MOD_NONE, MSR_MOD_NONE,
MSR_MOD_RYZEN, MSR_MOD_RYZEN,
MSR_MOD_INTEL, MSR_MOD_INTEL,
MSR_MOD_BULLDOZER,
MSR_MOD_CUSTOM, MSR_MOD_CUSTOM,
MSR_MOD_MAX MSR_MOD_MAX
}; };

View file

@ -145,9 +145,6 @@ xmrig::AdvancedCpuInfo::AdvancedCpuInfo() :
} }
else { else {
m_assembly = Assembly::BULLDOZER; m_assembly = Assembly::BULLDOZER;
if (family == 21) {
m_msrMod = MSR_MOD_BULLDOZER;
}
} }
} }
else if (m_vendor == VENDOR_INTEL) { else if (m_vendor == VENDOR_INTEL) {

View file

@ -192,9 +192,6 @@ xmrig::BasicCpuInfo::BasicCpuInfo() :
} }
else { else {
m_assembly = Assembly::BULLDOZER; m_assembly = Assembly::BULLDOZER;
if (family == 21) {
m_msrMod = MSR_MOD_BULLDOZER;
}
} }
} }
else if (memcmp(vendor, "GenuineIntel", 12) == 0) { else if (memcmp(vendor, "GenuineIntel", 12) == 0) {

View file

@ -60,17 +60,16 @@ static const std::array<const char *, RxConfig::ModeMax> modeNames = { "auto", "
#ifdef XMRIG_FEATURE_MSR #ifdef XMRIG_FEATURE_MSR
constexpr size_t kMsrArraySize = 5; constexpr size_t kMsrArraySize = 4;
static const std::array<MsrItems, kMsrArraySize> msrPresets = { static const std::array<MsrItems, kMsrArraySize> msrPresets = {
MsrItems(), MsrItems(),
MsrItems{{ 0xC0011020, 0x0 }, { 0xC0011021, 0x40, ~0x20ULL }, { 0xC0011022, 0x510000 }, { 0xC001102b, 0x1808cc16 }}, MsrItems{{ 0xC0011020, 0x0 }, { 0xC0011021, 0x40, ~0x20ULL }, { 0xC0011022, 0x510000 }, { 0xC001102b, 0x1808cc16 }},
MsrItems{{ 0x1a4, 0xf }}, MsrItems{{ 0x1a4, 0xf }},
MsrItems{{ 0xc0011022, 0x2010, 0x2010 }, { 0xc001102b, 0x70000, 0x770000 }},
MsrItems() MsrItems()
}; };
static const std::array<const char *, kMsrArraySize> modNames = { "none", "ryzen", "intel", "bulldozer", "custom" }; static const std::array<const char *, kMsrArraySize> modNames = { "none", "ryzen", "intel", "custom" };
static_assert (kMsrArraySize == ICpuInfo::MSR_MOD_MAX, "kMsrArraySize and MSR_MOD_MAX mismatch"); static_assert (kMsrArraySize == ICpuInfo::MSR_MOD_MAX, "kMsrArraySize and MSR_MOD_MAX mismatch");
#endif #endif