| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/components/amdutils.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <cstdint> |
| 7 | #include <libdrm/amdgpu_drm.h> |
| 8 | #include <libdrm/radeon_drm.h> |
| 9 | #include <optional> |
| 10 | #include <string> |
| 11 | #include <string_view> |
| 12 | #include <sys/ioctl.h> |
| 13 | #include <tuple> |
| 14 | #include <units.h> |
| 15 | #include <utility> |
| 16 | #include <vector> |
| 17 | |
| 18 | namespace Utilscxx . . $ Utils/::AMDcxx . . $ Utils/AMD/ { |
| 19 | |
| 20 | template<typename Data> |
| 21 | bool readAMDGPUInfoSensorcxx . . $ Utils/AMD/readAMDGPUInfoSensor(c31f62a8d5920fae).(int deviceFD, Data *value, stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# sensor) |
| 22 | { |
| 23 | #if defined(AMDGPU_INFO_SENSORcxx . . $ `<external>/2199370782417513470/amdgpu_drm.h:1140:9`!) && defined(DRM_IOCTL_AMDGPU_INFOcxx . . $ `<external>/2199370782417513470/amdgpu_drm.h:66:9`!) |
| 24 | struct drm_amdgpu_info buffer = {}; |
| 25 | |
| 26 | buffer.query = AMDGPU_INFO_SENSORcxx . . $ `<external>/2199370782417513470/amdgpu_drm.h:1140:9`!; |
| 27 | buffer.return_pointer = reinterpret_cast<stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#>(value); |
| 28 | buffer.return_size = sizeof(*value); |
| 29 | buffer.sensor_info.type = sensor; |
| 30 | |
| 31 | return ioctl(deviceFD, DRM_IOCTL_AMDGPU_INFOcxx . . $ `<external>/2199370782417513470/amdgpu_drm.h:66:9`!, &buffer) >= 0; |
| 32 | #else |
| 33 | return false; |
| 34 | #endif |
| 35 | } |
| 36 | |
| 37 | template<typename Data> |
| 38 | bool readAMDGPUInfocxx . . $ Utils/AMD/readAMDGPUInfo(c31f62a8d5920fae).(int deviceFD, Data *value, stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# query) |
| 39 | { |
| 40 | #if defined(DRM_IOCTL_AMDGPU_INFOcxx . . $ `<external>/2199370782417513470/amdgpu_drm.h:66:9`!) |
| 41 | struct drm_amdgpu_info buffer = {}; |
| 42 | |
| 43 | buffer.query = query; |
| 44 | buffer.return_pointer = reinterpret_cast<stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#>(value); |
| 45 | buffer.return_size = sizeof(*value); |
| 46 | |
| 47 | return ioctl(deviceFD, DRM_IOCTL_AMDGPU_INFOcxx . . $ `<external>/2199370782417513470/amdgpu_drm.h:66:9`!, &buffer) >= 0; |
| 48 | #else |
| 49 | return false; |
| 50 | #endif |
| 51 | } |
| 52 | |
| 53 | bool readAMDGPUVRamSizecxx . . $ Utils/AMD/readAMDGPUVRamSize(468db659280385bd).(int deviceFD, unitscxx . . $ units/::datacxx . . $ units/data/::megabyte_tcxx . . $ units/data/megabyte_t# *size); |
| 54 | |
| 55 | template<typename Data> |
| 56 | bool readRadeonInfoSensorcxx . . $ Utils/AMD/readRadeonInfoSensor(c31f62a8d5920fae).(int deviceFD, Data *value, stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# sensor) |
| 57 | { |
| 58 | #if defined(DRM_IOCTL_RADEON_INFOcxx . . $ `<external>/13690409949326740378/radeon_drm.h:556:9`!) |
| 59 | struct drm_radeon_info buffer = {}; |
| 60 | |
| 61 | buffer.request = sensor; |
| 62 | buffer.value = reinterpret_cast<stdcxx . . $ std/::uint64_tcxx . . $ std/uint64_t#>(value); |
| 63 | |
| 64 | return ioctl(deviceFD, DRM_IOCTL_RADEON_INFOcxx . . $ `<external>/13690409949326740378/radeon_drm.h:556:9`!, &buffer) >= 0; |
| 65 | #else |
| 66 | return false; |
| 67 | #endif |
| 68 | } |
| 69 | |
| 70 | bool readRadeonVRamSizecxx . . $ Utils/AMD/readRadeonVRamSize(468db659280385bd).(int deviceFD, unitscxx . . $ units/::datacxx . . $ units/data/::megabyte_tcxx . . $ units/data/megabyte_t# *size); |
| 71 | |
| 72 | /// Returns DPM states clocks. (4.6+) |
| 73 | /// @param ppDpmLines pp_dpm_sclk / pp_dpm_mclk data source contents |
| 74 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<unsigned int, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#>>> |
| 75 | parseDPMStatescxx . . $ Utils/AMD/parseDPMStates(cdb02b20309ce792).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppDpmLines); |
| 76 | |
| 77 | /// Returns the current state index from pp_dpm_sclk / pp_dpm_mclk. (4.6+) |
| 78 | /// @param ppDpmLines pp_dpm_sclk / pp_dpm_mclk data source contents |
| 79 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<unsigned int> |
| 80 | parseDPMCurrentStateIndexcxx . . $ Utils/AMD/parseDPMCurrentStateIndex(5bd64bb602d44cee).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppDpmLines); |
| 81 | |
| 82 | /// Returns power profile modes. (4.17+) |
| 83 | /// NOTE For use with non-columnar data only. |
| 84 | /// @param ppPowerProfileModeLines pp_power_profile_mode data source contents |
| 85 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, int>>> |
| 86 | parsePowerProfileModeModescxx . . $ Utils/AMD/parsePowerProfileModeModes(8985c67d4d27fa08).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppPowerProfileModeLines); |
| 87 | |
| 88 | /// Returns current power profile mode index. (4.17+) |
| 89 | /// NOTE For use with non-columnar data only. |
| 90 | /// @param ppPowerProfileModeLines pp_power_profile_mode data source contents |
| 91 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<int> parsePowerProfileModeCurrentModeIndexcxx . . $ Utils/AMD/parsePowerProfileModeCurrentModeIndex(8cee9d7a74e8646c).( |
| 92 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppPowerProfileModeLines); |
| 93 | |
| 94 | /// Returns power profile modes on ASICs with columnar data. (6.11+) |
| 95 | /// @param ppPowerProfileModeLines pp_power_profile_mode data source contents |
| 96 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<stdcxx . . $ std/::stringcxx . . $ std/string#, int>>> |
| 97 | parsePowerProfileModeModesColumnarcxx . . $ Utils/AMD/parsePowerProfileModeModesColumnar(8985c67d4d27fa08).( |
| 98 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppPowerProfileModeLines); |
| 99 | |
| 100 | /// Returns current power profile mode index on ASICs with columnar data. (6.11+) |
| 101 | /// @param ppPowerProfileModeLines pp_power_profile_mode data source contents |
| 102 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<int> parsePowerProfileModeCurrentModeIndexColumnarcxx . . $ Utils/AMD/parsePowerProfileModeCurrentModeIndexColumnar(8cee9d7a74e8646c).( |
| 103 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppPowerProfileModeLines); |
| 104 | |
| 105 | /// Returns the available clock + voltage states for a control. (4.17+) |
| 106 | /// @param controlName name of the control |
| 107 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 108 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::tuplecxx . . $ std/tuple#<unsigned int, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#, |
| 109 | unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#>>> |
| 110 | parseOverdriveClksVoltscxx . . $ Utils/AMD/parseOverdriveClksVolts(d26aca23e654d0e2).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# controlName, |
| 111 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 112 | |
| 113 | /// Returns the state's clock range for a control. (4.18+) |
| 114 | /// @param controlName name of the control |
| 115 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 116 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#>> |
| 117 | parseOverdriveClkRangecxx . . $ Utils/AMD/parseOverdriveClkRange(4e35453e7c70f57d).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# controlName, |
| 118 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 119 | |
| 120 | /// Returns the state's voltage range. (4.18+) |
| 121 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 122 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#, unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#>> |
| 123 | parseOverdriveVoltRangecxx . . $ Utils/AMD/parseOverdriveVoltRange(113e4b1ae9456da).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 124 | |
| 125 | /// Returns the available clock states for a control. (4.20+, vega20+) |
| 126 | /// @param controlName name of the control |
| 127 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 128 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<unsigned int, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#>>> |
| 129 | parseOverdriveClkscxx . . $ Utils/AMD/parseOverdriveClks(b2cc1378e72e9acc).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# controlName, |
| 130 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 131 | |
| 132 | /// Returns the voltage curve points for curve voltage ASICs. (4.20+, vega20+) |
| 133 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 134 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::vectorcxx . . $ std/vector#< |
| 135 | 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#>>> |
| 136 | parseOverdriveVoltCurvecxx . . $ Utils/AMD/parseOverdriveVoltCurve(2ccca4df9cb60095).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 137 | |
| 138 | /// Returns voltage range of curve points for curve voltage ASICs. (4.20+, vega20+) |
| 139 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 140 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#< |
| 141 | stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#>, |
| 142 | stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#, unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#>>>> |
| 143 | parseOverdriveVoltCurveRangecxx . . $ Utils/AMD/parseOverdriveVoltCurveRange(8d57ccfd9e24880a).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 144 | |
| 145 | /// Returns the voltage offset. |
| 146 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 147 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#> |
| 148 | parseOverdriveVoltOffsetcxx . . $ Utils/AMD/parseOverdriveVoltOffset(62a94145c9d828aa).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 149 | |
| 150 | /// Returns voltage offset range. (6.14+) |
| 151 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 152 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#, unitscxx . . $ units/::voltagecxx . . $ units/voltage/::millivolt_tcxx . . $ units/voltage/millivolt_t#>> |
| 153 | parseOverdriveVoltOffsetRangecxx . . $ Utils/AMD/parseOverdriveVoltOffsetRange(113e4b1ae9456da).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 154 | |
| 155 | /// Returns a list containing the name of the available CLK controls. |
| 156 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 157 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#>> |
| 158 | parseOverdriveClkControlscxx . . $ Utils/AMD/parseOverdriveClkControls(16615915c492e6b0).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 159 | |
| 160 | /// Translates a CLK control name to the control commit command id. |
| 161 | /// @param controlName name of the control |
| 162 | /// @returns commit command id |
| 163 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> |
| 164 | getOverdriveClkControlCmdIdcxx . . $ Utils/AMD/getOverdriveClkControlCmdId(904f61f3a16c5694).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# controlName); |
| 165 | |
| 166 | /// Translates a CLK offset control name to the control commit command id. |
| 167 | /// @param controlName name of the control |
| 168 | /// @returns commit command id |
| 169 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::stringcxx . . $ std/string#> |
| 170 | getOverdriveClkOffsetControlCmdIdcxx . . $ Utils/AMD/getOverdriveClkOffsetControlCmdId(904f61f3a16c5694).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# controlName); |
| 171 | |
| 172 | /// Returns a list containing the name of the available CLK offset controls (6.14+). |
| 173 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 174 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#>> parseOverdriveClkOffsetControlscxx . . $ Utils/AMD/parseOverdriveClkOffsetControls(16615915c492e6b0).( |
| 175 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 176 | |
| 177 | /// Returns the frequency offset value of a control. (6.14+) |
| 178 | /// @param controlName name of the control |
| 179 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 180 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#> |
| 181 | parseOverdriveClkOffsetcxx . . $ Utils/AMD/parseOverdriveClkOffset(eeedcb8f25e62274).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# controlName, |
| 182 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 183 | |
| 184 | /// Returns the frequency offset range of a control. (6.14+) |
| 185 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 186 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#, unitscxx . . $ units/::frequencycxx . . $ units/frequency/::megahertz_tcxx . . $ units/frequency/megahertz_t#>> |
| 187 | parseOverdriveClkOffsetRangecxx . . $ Utils/AMD/parseOverdriveClkOffsetRange(4e35453e7c70f57d).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# controlName, |
| 188 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 189 | |
| 190 | /// Returns a list containing the indices of all out of range states present on |
| 191 | /// pp_od_clk_voltage for the given control name. |
| 192 | /// @param controlName name of the control |
| 193 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 194 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<unsigned int>> ppOdClkVoltageFreqRangeOutOfRangeStatescxx . . $ Utils/AMD/ppOdClkVoltageFreqRangeOutOfRangeStates(2b5d6ac406ca7b24).( |
| 195 | stdcxx . . $ std/::stringcxx . . $ std/string# const &controlName, |
| 196 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 197 | |
| 198 | /// Returns whether pp_od_clk_voltage has known frequency + voltage control quirks. |
| 199 | /// @param controlName name of the control |
| 200 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 201 | bool ppOdClkVoltageHasKnownFreqVoltQuirkscxx . . $ Utils/AMD/ppOdClkVoltageHasKnownFreqVoltQuirks(937f4a479046c89c).( |
| 202 | stdcxx . . $ std/::stringcxx . . $ std/string# const &controlName, |
| 203 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 204 | |
| 205 | /// Returns whether pp_od_clk_voltage has known voltage curve control quirks. |
| 206 | /// @param ppOdClkVoltageLines pp_od_clk_voltage data source contents |
| 207 | bool ppOdClkVoltageHasKnownVoltCurveQuirkscxx . . $ Utils/AMD/ppOdClkVoltageHasKnownVoltCurveQuirks(93f8d79ff69eedd8).( |
| 208 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &ppOdClkVoltageLines); |
| 209 | |
| 210 | /// Returns the fan curve points for the overdrive based fan control. (6.7+, RDNA3+) |
| 211 | /// @param fanCurveLines fan_curve data source contents |
| 212 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::tuplecxx . . $ std/tuple#<unsigned int, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, |
| 213 | unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>>> |
| 214 | parseOverdriveFanCurvecxx . . $ Utils/AMD/parseOverdriveFanCurve(8a3e65c721ba067a).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &fanCurveLines); |
| 215 | |
| 216 | /// Returns the fan curve temperature range for the overdrive based fan control. (6.7+, RDNA3+) |
| 217 | /// @param fanCurveLines fan_curve data source contents |
| 218 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#>> |
| 219 | parseOverdriveFanCurveTempRangecxx . . $ Utils/AMD/parseOverdriveFanCurveTempRange(702df411cb3cfc02).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &fanCurveLines); |
| 220 | |
| 221 | /// Returns the fan curve speed range for the overdrive based fan control. (6.7+, RDNA3+) |
| 222 | /// @param fanCurveLines fan_curve data source contents |
| 223 | stdcxx . . $ std/::optionalcxx . . $ std/optional#< |
| 224 | stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#, unitscxx . . $ units/::concentrationcxx . . $ units/concentration/::percent_tcxx . . $ units/concentration/percent_t#>> |
| 225 | parseOverdriveFanCurveSpeedRangecxx . . $ Utils/AMD/parseOverdriveFanCurveSpeedRange(7878c50ecf06320a).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &fanCurveLines); |
| 226 | |
| 227 | /// Returns the fan stop value for the overdrive based fan control. (6.13+, RDNA3+) |
| 228 | /// @param fanStopLines fan_zero_rpm_enable data source contents |
| 229 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<bool> |
| 230 | parseOverdriveFanStopcxx . . $ Utils/AMD/parseOverdriveFanStop(b63c64391664ddd3).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &fanStopLines); |
| 231 | |
| 232 | /// Returns the fan stop temperature value for the overdrive based fan control. (6.13+, RDNA3+) |
| 233 | /// @param fanStopTempLines fan_zero_rpm_stop_temperature data source contents |
| 234 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#> |
| 235 | parseOverdriveFanStopTempcxx . . $ Utils/AMD/parseOverdriveFanStopTemp(b5c68bef25393fa5).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &fanStopTempLines); |
| 236 | |
| 237 | /// Returns the fan stop temperature range for the overdrive based fan control. (6.13+, RDNA3+) |
| 238 | /// @param fanStopTempLines fan_zero_rpm_stop_temperature data source contents |
| 239 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::paircxx . . $ std/pair#<unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#, unitscxx . . $ units/::temperaturecxx . . $ units/temperature/::celsius_tcxx . . $ units/temperature/celsius_t#>> |
| 240 | parseOverdriveFanStopTempRangecxx . . $ Utils/AMD/parseOverdriveFanStopTempRange(702df411cb3cfc02).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &fanStopTempLines); |
| 241 | |
| 242 | /// Returns true when pp_power_profile_mode data has columnar format. |
| 243 | bool isPowerProfileModeDataColumnarcxx . . $ Utils/AMD/isPowerProfileModeDataColumnar(93f8d79ff69eedd8).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &data); |
| 244 | |
| 245 | /// Returns true when overdrive clock + voltage state control is available. |
| 246 | bool hasOverdriveClkVoltControlcxx . . $ Utils/AMD/hasOverdriveClkVoltControl(93f8d79ff69eedd8).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &data); |
| 247 | |
| 248 | /// Returns true when overdrive clock control is available. |
| 249 | bool hasOverdriveClkControlcxx . . $ Utils/AMD/hasOverdriveClkControl(93f8d79ff69eedd8).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &data); |
| 250 | |
| 251 | /// Returns true when overdrive clock offset control is available. |
| 252 | bool hasOverdriveClkOffsetControlcxx . . $ Utils/AMD/hasOverdriveClkOffsetControl(93f8d79ff69eedd8).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &data); |
| 253 | |
| 254 | /// Returns true when overdrive voltage curve control is available. |
| 255 | bool hasOverdriveVoltCurveControlcxx . . $ Utils/AMD/hasOverdriveVoltCurveControl(93f8d79ff69eedd8).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &data); |
| 256 | |
| 257 | /// Returns true when overdrive voltage offset control is available. |
| 258 | bool hasOverdriveVoltOffsetControlcxx . . $ Utils/AMD/hasOverdriveVoltOffsetControl(93f8d79ff69eedd8).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &data); |
| 259 | |
| 260 | /// Returns true when overdrive fan target temperature control is available. |
| 261 | bool hasOverdriveFanTargetTempControlcxx . . $ Utils/AMD/hasOverdriveFanTargetTempControl(93f8d79ff69eedd8).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &data); |
| 262 | |
| 263 | /// Returns true when overdrive fan minimum pwm control is available. |
| 264 | bool hasOverdriveFanMinimumPWMControlcxx . . $ Utils/AMD/hasOverdriveFanMinimumPWMControl(93f8d79ff69eedd8).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &data); |
| 265 | |
| 266 | /// Returns true when overdrive fan acoustic target rpm threshold control is |
| 267 | /// available. |
| 268 | bool hasOverdriveFanAcousticTargetControlcxx . . $ Utils/AMD/hasOverdriveFanAcousticTargetControl(93f8d79ff69eedd8).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &data); |
| 269 | |
| 270 | /// Returns true when overdrive fan acoustic limit rpm threshold control is |
| 271 | /// available. |
| 272 | bool hasOverdriveFanAcousticLimitControlcxx . . $ Utils/AMD/hasOverdriveFanAcousticLimitControl(93f8d79ff69eedd8).(stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> const &data); |
| 273 | |
| 274 | } // namespace Utils::AMD |