| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/tests/src/test_amdpmfreqvolt.cpp`/ |
| 2 | // Copyright 2021 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #include <catch2/catch_all.hpp> |
| 5 | #include <catch2/trompeloeil.hpp> |
| 6 | |
| 7 | #include "common/commandqueuestub.h"cxx . . $ `<file>/tests/src/common/commandqueuestub.h`/ |
| 8 | #include "common/ppdpmhandlermock.h"cxx . . $ `<file>/tests/src/common/ppdpmhandlermock.h`/ |
| 9 | #include "common/stringdatasourcestub.h"cxx . . $ `<file>/tests/src/common/stringdatasourcestub.h`/ |
| 10 | #include "common/vectorstringdatasourcestub.h"cxx . . $ `<file>/tests/src/common/vectorstringdatasourcestub.h`/ |
| 11 | #include "core/components/controls/amd/pm/advanced/overdrive/freqvolt/pmfreqvolt.h"cxx . . $ `<file>/src/core/components/controls/amd/pm/advanced/overdrive/freqvolt/pmfreqvolt.h`/ |
| 12 | |
| 13 | extern template struct trompeloeilcxx . . $ trompeloeil/::reportercxx . . $ trompeloeil/reporter#<trompeloeilcxx . . $ trompeloeil/::specializedcxx . . $ trompeloeil/specialized#>; |
| 14 | |
| 15 | namespace Testscxx . . $ Tests/::AMDcxx . . $ Tests/AMD/::PMFreqVoltcxx . . $ Tests/AMD/PMFreqVolt/ { |
| 16 | |
| 17 | class PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# : public ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt# |
| 18 | { |
| 19 | public: |
| 20 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::PMFreqVoltcxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#PMFreqVoltTestAdapter(3c384f231574f66).; |
| 21 | |
| 22 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::cleanControlcxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#cleanControl(151e9138769f295e).; |
| 23 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::controlCmdIdcxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#controlCmdId(f4fff0029955a25f).; |
| 24 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::controlNamecxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#controlName(f4fff0029955a25f).; |
| 25 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::exportControlcxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#exportControl(40299682ab9c8676).; |
| 26 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::freqRangecxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#freqRange(390537b45843c910).; |
| 27 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::importControlcxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#importControl(4f796e3ecd5dcd94).; |
| 28 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::statecxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#state(65f201914f91b2e6).; |
| 29 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::statescxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#states(3d1965fc94c5aed1).; |
| 30 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::syncControlcxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#syncControl(151e9138769f295e).; |
| 31 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::voltModecxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#voltMode(f4fff0029955a25f).; |
| 32 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::voltModescxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#voltModes(f5f2959be38ccc08).; |
| 33 | using ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::voltRangecxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter#voltRange(5cf67883e8f6f3e1).; |
| 34 | }; |
| 35 | |
| 36 | class PMFreqVoltImporterStubcxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub# final : public ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::Importercxx . . $ AMD/PMFreqVolt#Importer# |
| 37 | { |
| 38 | public: |
| 39 | PMFreqVoltImporterStubcxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#PMFreqVoltImporterStub(553594da43e33725).( |
| 40 | stdcxx . . $ std/::stringcxx . . $ std/string# const &voltMode, |
| 41 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::tuplecxx . . $ std/tuple#<unsigned int, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#, |
| 42 | unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#>> const &states, |
| 43 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<unsigned int> const &activeStates) |
| 44 | : voltMode_cxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#voltMode_.(voltMode) |
| 45 | , states_cxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#states_.(states) |
| 46 | , activeStates_cxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#activeStates_.(activeStates) |
| 47 | { |
| 48 | } |
| 49 | |
| 50 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 51 | provideImportercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &) override |
| 52 | { |
| 53 | return {cxx . . $ std/optional#optional(ced63f7c635d850d).}; |
| 54 | } |
| 55 | |
| 56 | bool provideActivecxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#provideActive(50ce9a9e25b4a850).() const override |
| 57 | { |
| 58 | return false; |
| 59 | } |
| 60 | |
| 61 | stdcxx . . $ std/::stringcxx . . $ std/string# const &providePMFreqVoltVoltModecxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#providePMFreqVoltVoltMode(f4fff0029955a25f).() const override |
| 62 | { |
| 63 | return voltMode_cxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#voltMode_.; |
| 64 | } |
| 65 | |
| 66 | stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#, unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#> |
| 67 | providePMFreqVoltStatecxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#providePMFreqVoltState(e15f35b3f7cebd06).(unsigned int index) const override |
| 68 | { |
| 69 | auto stateIt = stdcxx . . $ std/::find_ifcxx . . $ std/find_if(f0a0a4f94ee5cb00).( |
| 70 | states_cxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#states_..cbegincxx . . $ std/vector#cbegin(d1e1699016b9d7e6).(), states_cxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#states_..cendcxx . . $ std/vector#cend(d1e1699016b9d7e6).(), |
| 71 | [=](auto const &state) { return stdcxx . . $ std/::getcxx . . $ std/get(5aabc72a970aa7ce).<0>(state) == index; }); |
| 72 | |
| 73 | return {cxx . . $ std/pair#pair(f3676cfe6d3aa9fc).stdcxx . . $ std/::getcxx . . $ std/get(6c68b51b79f97de2).<1>(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).stateIt), stdcxx . . $ std/::getcxx . . $ std/get(6c68b51b79f97de2).<2>(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).stateIt)}; |
| 74 | } |
| 75 | |
| 76 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<unsigned int> providePMFreqVoltActiveStatescxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#providePMFreqVoltActiveStates(cbc2ec29021c2cc).() const override |
| 77 | { |
| 78 | return activeStates_cxx . . $ std/vector#vector(a1201200cf0efa42).; |
| 79 | } |
| 80 | |
| 81 | private: |
| 82 | stdcxx . . $ std/::stringcxx . . $ std/string# const voltMode_cxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#voltMode_.; |
| 83 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::tuplecxx . . $ std/tuple#<unsigned int, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#, |
| 84 | unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#>> const states_cxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#states_.; |
| 85 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<unsigned int> const activeStates_cxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#activeStates_.; |
| 86 | }; |
| 87 | |
| 88 | class PMFreqVoltExporterMockcxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltExporterMock# : public ::AMDcxx . . $ AMD/::PMFreqVoltcxx . . $ AMD/PMFreqVolt#::Exportercxx . . $ AMD/PMFreqVolt#Exporter# |
| 89 | { |
| 90 | public: |
| 91 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!(takePMFreqVoltControlName, void(std::string const &), override); |
| 92 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!(takePMFreqVoltVoltModes, void(std::vector<std::string> const &), |
| 93 | override); |
| 94 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!(takePMFreqVoltVoltMode, void(std::string const &), override); |
| 95 | MAKE_MOCK2cxx . . $ `<external>/1068432606165018960/mock.hpp:4224:9`!(takePMFreqVoltVoltRange, |
| 96 | void(units::voltage::millivolt_t, units::voltage::millivolt_t), |
| 97 | override); |
| 98 | MAKE_MOCK2cxx . . $ `<external>/1068432606165018960/mock.hpp:4224:9`!(takePMFreqVoltFreqRange, |
| 99 | void(units::frequency::megahertz_t, units::frequency::megahertz_t), |
| 100 | override); |
| 101 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!(takePMFreqVoltStates, |
| 102 | void(std::vector<std::tuple<unsigned int, units::frequency::megahertz_t, |
| 103 | units::voltage::millivolt_t>> const &), |
| 104 | override); |
| 105 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!(takePMFreqVoltActiveStates, |
| 106 | void(std::vector<unsigned int> const &), override); |
| 107 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!(takeActive, void(bool), override); |
| 108 | MAKE_MOCK1cxx . . $ `<external>/1068432606165018960/mock.hpp:4223:9`!( |
| 109 | provideExporter, |
| 110 | std::optional<std::reference_wrapper<Exportable::Exporter>>(Item const &), |
| 111 | override); |
| 112 | }; |
| 113 | |
| 114 | TEST_CASEcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:144:11`!("AMD PMFreqVolt tests", |
| 115 | "[GPU][AMD][PM][PMAdvanced][PMOverdrive][PMFreqVolt]") |
| 116 | { |
| 117 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<unsigned int, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#>> statescxx . . $ std/vector#vector(9619226211e5a241).{ |
| 118 | {0, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#(300)}, |
| 119 | {1, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#(2000)}}; |
| 120 | |
| 121 | auto ppDpmMock = stdcxx . . $ std/::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<PpDpmHandlerMockcxx . . $ Tests/AMD/PpDpmHandlerMock#>(states); |
| 122 | |
| 123 | // clang-format off |
| 124 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> ppOdClkVoltageDatacxx . . $ std/vector#vector(9619226211e5a241). { |
| 125 | "OD_MCLK:", |
| 126 | "0: 300MHz 800mV", |
| 127 | "1: 3000MHz 900mV", |
| 128 | "OD_RANGE:", |
| 129 | "MCLK: 300MHz 3000MHz", |
| 130 | "VDDC: 800mV 900mV" }; |
| 131 | // clang-format on |
| 132 | CommandQueueStubcxx . . $ CommandQueueStub# ctlCmds; |
| 133 | |
| 134 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Has PMFreqVolt ID") |
| 135 | { |
| 136 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 137 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>(), |
| 138 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 139 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.ID() == ::AMD::PMFreqVolt::ItemID); |
| 140 | } |
| 141 | |
| 142 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Is active by default") |
| 143 | { |
| 144 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 145 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>(), |
| 146 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 147 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.active()); |
| 148 | } |
| 149 | |
| 150 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Has overdrive control name") |
| 151 | { |
| 152 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 153 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>(), |
| 154 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 155 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.controlName() == "MCLK"); |
| 156 | } |
| 157 | |
| 158 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Has overdrive control command id") |
| 159 | { |
| 160 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 161 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>(), |
| 162 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 163 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.controlCmdId() == "m"); |
| 164 | } |
| 165 | |
| 166 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Has 'auto' volt mode by default") |
| 167 | { |
| 168 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 169 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>(), |
| 170 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 171 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.voltMode() == "auto"); |
| 172 | } |
| 173 | |
| 174 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!( |
| 175 | "Resets dpm handler on pre-init but does not generates control commands") |
| 176 | { |
| 177 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*ppDpmMock, saveState()); |
| 178 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*ppDpmMock, reset(trompeloeil::_)); |
| 179 | |
| 180 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 181 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 182 | "pp_od_clk_voltage", ppOdClkVoltageData), |
| 183 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 184 | ts.preInitcxx . . $ AMD/PMFreqVolt#preInit(151e9138769f295e).(ctlCmds); |
| 185 | |
| 186 | auto &commands = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 187 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(commands.empty()); |
| 188 | } |
| 189 | |
| 190 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Generates post-init control commands") |
| 191 | { |
| 192 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*ppDpmMock, saveState()); |
| 193 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*ppDpmMock, reset(trompeloeil::_)); |
| 194 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*ppDpmMock, restoreState(trompeloeil::_)); |
| 195 | |
| 196 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 197 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 198 | "pp_od_clk_voltage", ppOdClkVoltageData), |
| 199 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 200 | ts.preInitcxx . . $ AMD/PMFreqVolt#preInit(151e9138769f295e).(ctlCmds); |
| 201 | ctlCmds.clearcxx . . $ CommandQueueStub#clear(49f6e7a06ebc5aa8).(); |
| 202 | ts.postInitcxx . . $ AMD/PMFreqVolt#postInit(151e9138769f295e).(ctlCmds); |
| 203 | |
| 204 | auto &commands = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 205 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(commands.size() == 2); |
| 206 | |
| 207 | auto &[cmd0Path, cmd0Value] = commands.atcxx . . $ std/vector#at(b61e45a10b63f40a).(0); |
| 208 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmd0Path == "pp_od_clk_voltage"); |
| 209 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmd0Value == "m 0 300 800"); |
| 210 | |
| 211 | auto &[cmd1Path, cmd1Value] = commands.atcxx . . $ std/vector#at(b61e45a10b63f40a).(1); |
| 212 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmd1Path == "pp_od_clk_voltage"); |
| 213 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmd1Value == "m 1 3000 900"); |
| 214 | } |
| 215 | |
| 216 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Initializes states and range from pp_od_clk_voltage data source") |
| 217 | { |
| 218 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 219 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 220 | "pp_od_clk_voltage", ppOdClkVoltageData), |
| 221 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 222 | ts.initcxx . . $ AMD/PMFreqVolt#init(49f6e7a06ebc5aa8).(); |
| 223 | |
| 224 | auto states = ts.statescxx . . $ AMD/PMFreqVolt#states(3d1965fc94c5aed1).(); |
| 225 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(states.size() == 2); |
| 226 | |
| 227 | auto &[s0Index, s0Freq, s0Volt] = states.atcxx . . $ std/vector#at(428bb168810b9e52).(0); |
| 228 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s0Index == 0); |
| 229 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s0Freq == units::frequency::megahertz_t(300)); |
| 230 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s0Volt == units::voltage::millivolt_t(800)); |
| 231 | |
| 232 | auto &[s1Index, s1Freq, s1Volt] = states.atcxx . . $ std/vector#at(428bb168810b9e52).(1); |
| 233 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s1Index == 1); |
| 234 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s1Freq == units::frequency::megahertz_t(3000)); |
| 235 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s1Volt == units::voltage::millivolt_t(900)); |
| 236 | |
| 237 | auto &[freqMin, freqMax] = ts.freqRangecxx . . $ AMD/PMFreqVolt#freqRange(390537b45843c910).(); |
| 238 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(freqMin == units::frequency::megahertz_t(300)); |
| 239 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(freqMax == units::frequency::megahertz_t(3000)); |
| 240 | |
| 241 | auto &[voltMin, voltMax] = ts.voltRangecxx . . $ AMD/PMFreqVolt#voltRange(5cf67883e8f6f3e1).(); |
| 242 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(voltMin == units::voltage::millivolt_t(800)); |
| 243 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(voltMax == units::voltage::millivolt_t(900)); |
| 244 | } |
| 245 | |
| 246 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Clamps state frequency and voltage values in range") |
| 247 | { |
| 248 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 249 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 250 | "pp_od_clk_voltage", ppOdClkVoltageData), |
| 251 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 252 | ts.initcxx . . $ AMD/PMFreqVolt#init(49f6e7a06ebc5aa8).(); |
| 253 | |
| 254 | // min |
| 255 | ts.statecxx . . $ AMD/PMFreqVolt#state(65f201914f91b2e6).(0, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#(0), unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#(0)); |
| 256 | // max |
| 257 | ts.statecxx . . $ AMD/PMFreqVolt#state(65f201914f91b2e6).(1, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#(10000), |
| 258 | unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#(10000)); |
| 259 | |
| 260 | auto states = ts.statescxx . . $ AMD/PMFreqVolt#states(3d1965fc94c5aed1).(); |
| 261 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(states.size() == 2); |
| 262 | |
| 263 | // min |
| 264 | auto &[s0Index, s0Freq, s0Volt] = states.atcxx . . $ std/vector#at(428bb168810b9e52).(0); |
| 265 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s0Index == 0); |
| 266 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s0Freq == units::frequency::megahertz_t(300)); |
| 267 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s0Volt == units::voltage::millivolt_t(800)); |
| 268 | |
| 269 | // max |
| 270 | auto &[s1Index, s1Freq, s1Volt] = states.atcxx . . $ std/vector#at(428bb168810b9e52).(1); |
| 271 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s1Index == 1); |
| 272 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s1Freq == units::frequency::megahertz_t(3000)); |
| 273 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(s1Volt == units::voltage::millivolt_t(900)); |
| 274 | } |
| 275 | |
| 276 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Imports its state") |
| 277 | { |
| 278 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<unsigned int> activeStatescxx . . $ std/vector#vector(9619226211e5a241).{0}; |
| 279 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*ppDpmMock, activate(trompeloeil::_)).LR_WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4345:9`!(_1 == activeStates); |
| 280 | |
| 281 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 282 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 283 | "pp_od_clk_voltage", ppOdClkVoltageData), |
| 284 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 285 | ts.initcxx . . $ AMD/PMFreqVolt#init(49f6e7a06ebc5aa8).(); |
| 286 | |
| 287 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::tuplecxx . . $ std/tuple#<unsigned int, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#, |
| 288 | unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#>> |
| 289 | statescxx . . $ std/vector#vector(49f6e7a06ebc5aa8).; |
| 290 | states.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(0, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#(301), |
| 291 | unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#(801)); |
| 292 | states.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(1, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#(2000), |
| 293 | unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#(800)); |
| 294 | |
| 295 | PMFreqVoltImporterStubcxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub# icxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltImporterStub#PMFreqVoltImporterStub(553594da43e33725).("manual"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., states, activeStates); |
| 296 | |
| 297 | ts.importControlcxx . . $ AMD/PMFreqVolt#importControl(4f796e3ecd5dcd94).(i); |
| 298 | |
| 299 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.voltMode() == "manual"); |
| 300 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ts.states() == states); |
| 301 | } |
| 302 | |
| 303 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Exports its state") |
| 304 | { |
| 305 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<unsigned int> activeStatescxx . . $ std/vector#vector(9619226211e5a241).{0, 1}; |
| 306 | ALLOW_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4337:9`!(*ppDpmMock, active()).LR_RETURNcxx . . $ `<external>/1068432606165018960/mock.hpp:4349:9`!(activeStates); |
| 307 | |
| 308 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 309 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 310 | "pp_od_clk_voltage", ppOdClkVoltageData), |
| 311 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 312 | ts.initcxx . . $ AMD/PMFreqVolt#init(49f6e7a06ebc5aa8).(); |
| 313 | |
| 314 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> modescxx . . $ std/vector#vector(9619226211e5a241).{"auto", "manual"}; |
| 315 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::tuplecxx . . $ std/tuple#<unsigned int, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#, |
| 316 | unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#>> |
| 317 | statescxx . . $ std/vector#vector(49f6e7a06ebc5aa8).; |
| 318 | states.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(0, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#(300), |
| 319 | unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#(800)); |
| 320 | states.emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(1, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#(3000), |
| 321 | unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#(900)); |
| 322 | |
| 323 | trompeloeilcxx . . $ trompeloeil/::sequencecxx . . $ trompeloeil/sequence# seq; |
| 324 | PMFreqVoltExporterMockcxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltExporterMock# e; |
| 325 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takePMFreqVoltControlName("MCLK")).IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 326 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takePMFreqVoltVoltModes(trompeloeil::_)) |
| 327 | .LR_WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4345:9`!(_1 == modes) |
| 328 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 329 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takePMFreqVoltVoltMode("auto")).IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 330 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takePMFreqVoltFreqRange( |
| 331 | trompeloeil::eq(units::frequency::megahertz_t(300)), |
| 332 | trompeloeil::eq(units::frequency::megahertz_t(3000)))) |
| 333 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 334 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takePMFreqVoltVoltRange( |
| 335 | trompeloeil::eq(units::voltage::millivolt_t(800)), |
| 336 | trompeloeil::eq(units::voltage::millivolt_t(900)))) |
| 337 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 338 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takePMFreqVoltStates(trompeloeil::_)) |
| 339 | .LR_WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4345:9`!(_1 == states) |
| 340 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 341 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(e, takePMFreqVoltActiveStates(trompeloeil::_)) |
| 342 | .LR_WITHcxx . . $ `<external>/1068432606165018960/mock.hpp:4345:9`!(_1 == activeStates) |
| 343 | .IN_SEQUENCEcxx . . $ `<external>/3750106516996543135/sequence.hpp:394:9`!(seq); |
| 344 | |
| 345 | ts.exportControlcxx . . $ AMD/PMFreqVolt#exportControl(40299682ab9c8676).(e); |
| 346 | } |
| 347 | |
| 348 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Resets dpm handler but does not generates clean control commands") |
| 349 | { |
| 350 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*ppDpmMock, reset(trompeloeil::_)); |
| 351 | |
| 352 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 353 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 354 | "pp_od_clk_voltage", ppOdClkVoltageData), |
| 355 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 356 | ts.initcxx . . $ AMD/PMFreqVolt#init(49f6e7a06ebc5aa8).(); |
| 357 | ts.cleanControlcxx . . $ AMD/PMFreqVolt#cleanControl(151e9138769f295e).(ctlCmds); |
| 358 | |
| 359 | auto &commands = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 360 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(commands.empty()); |
| 361 | } |
| 362 | |
| 363 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Does not generate sync control commands when is synced") |
| 364 | { |
| 365 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*ppDpmMock, sync(trompeloeil::_)); |
| 366 | |
| 367 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 368 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 369 | "pp_od_clk_voltage", ppOdClkVoltageData), |
| 370 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 371 | ts.initcxx . . $ AMD/PMFreqVolt#init(49f6e7a06ebc5aa8).(); |
| 372 | ts.syncControlcxx . . $ AMD/PMFreqVolt#syncControl(151e9138769f295e).(ctlCmds); |
| 373 | |
| 374 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(ctlCmds.commands().empty()); |
| 375 | } |
| 376 | |
| 377 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("Generates sync control commands when...") |
| 378 | { |
| 379 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("states are out of sync...") |
| 380 | { |
| 381 | REQUIRE_CALLcxx . . $ `<external>/1068432606165018960/mock.hpp:4335:9`!(*ppDpmMock, sync(trompeloeil::_)); |
| 382 | |
| 383 | PMFreqVoltTestAdaptercxx . . $ Tests/AMD/PMFreqVolt/PMFreqVoltTestAdapter# ts("MCLK"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., "m"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)., |
| 384 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::make_uniquecxx . . $ std/make_unique(5cd499e8540a10bb).<VectorStringDataSourceStubcxx . . $ VectorStringDataSourceStub#>( |
| 385 | "pp_od_clk_voltage", ppOdClkVoltageData), |
| 386 | stdcxx . . $ std/unique_ptr#unique_ptr(8bcafd3b0b660df8).::movecxx . . $ std/move(e35c19a1ba7baa26).(ppDpmMock)); |
| 387 | ts.initcxx . . $ AMD/PMFreqVolt#init(49f6e7a06ebc5aa8).(); |
| 388 | |
| 389 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("and volt mode is 'auto'") |
| 390 | { |
| 391 | ts.voltModecxx . . $ AMD/PMFreqVolt#voltMode(9c546c94e5fcce4e).("auto"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 392 | ts.statecxx . . $ AMD/PMFreqVolt#state(65f201914f91b2e6).(0, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#(301), |
| 393 | unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#(801)); // not used in the command |
| 394 | ts.syncControlcxx . . $ AMD/PMFreqVolt#syncControl(151e9138769f295e).(ctlCmds); |
| 395 | |
| 396 | auto &commands = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 397 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(commands.size() == 1); |
| 398 | |
| 399 | auto &[cmd0Path, cmd0Value] = commands.atcxx . . $ std/vector#at(b61e45a10b63f40a).(0); |
| 400 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmd0Path == "pp_od_clk_voltage"); |
| 401 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmd0Value == "m 0 301 800"); |
| 402 | } |
| 403 | |
| 404 | SECTIONcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:149:11`!("and volt mode is 'manual'") |
| 405 | { |
| 406 | ts.voltModecxx . . $ AMD/PMFreqVolt#voltMode(9c546c94e5fcce4e).("manual"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).); |
| 407 | ts.statecxx . . $ AMD/PMFreqVolt#state(65f201914f91b2e6).(0, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#(301), |
| 408 | unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#(801)); |
| 409 | ts.syncControlcxx . . $ AMD/PMFreqVolt#syncControl(151e9138769f295e).(ctlCmds); |
| 410 | |
| 411 | auto &commands = ctlCmds.commandscxx . . $ CommandQueueStub#commands(f070559094366392).(); |
| 412 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(commands.size() == 1); |
| 413 | |
| 414 | auto &[cmd0Path, cmd0Value] = commands.atcxx . . $ std/vector#at(b61e45a10b63f40a).(0); |
| 415 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmd0Path == "pp_od_clk_voltage"); |
| 416 | REQUIREcxx . . $ `<external>/1821973855936310166/catch_test_macros.hpp:127:11`!(cmd0Value == "m 0 301 801"); |
| 417 | } |
| 418 | } |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | } // namespace Tests::AMD::PMFreqVolt |