Added support for configuring PPT1 power cap
- Updated python integration test to account for PPT1 support changes - Updated set/reset power-cap input format - Adjusted python API and updated C++ API test Signed-off-by: gabrpham_amdeng <Gabriel.Pham@amd.com> Change-Id: Ia9d02868b6e91c88c10a9772d9e2d9f37c3c352f
This commit is contained in:
committed by
Arif, Maisam
parent
4dfe74eb72
commit
18faddf6f3
@@ -833,6 +833,16 @@ typedef struct {
|
||||
uint64_t reserved[3];
|
||||
} amdsmi_power_cap_info_t;
|
||||
|
||||
/**
|
||||
* @brief Power Cap Package Power Tracking (PPT) type
|
||||
*
|
||||
* @cond @tag{gpu_bm_linux} @tag{host} @endcond
|
||||
*/
|
||||
typedef enum {
|
||||
AMDSMI_POWER_CAP_TYPE_PPT0, //!< PPT0 power cap; lower limit, filtered input
|
||||
AMDSMI_POWER_CAP_TYPE_PPT1, //!< PPT1 power cap; higher limit, raw input
|
||||
} amdsmi_power_cap_type_t;
|
||||
|
||||
/**
|
||||
* @brief VBios Information
|
||||
*
|
||||
@@ -3277,6 +3287,29 @@ amdsmi_status_t
|
||||
amdsmi_set_gpu_power_profile(amdsmi_processor_handle processor_handle, uint32_t reserved,
|
||||
amdsmi_power_profile_preset_masks_t profile);
|
||||
|
||||
/**
|
||||
* @brief Query the supported power cap sensors and their types for a device.
|
||||
*
|
||||
* @ingroup tagPowerControl
|
||||
*
|
||||
* @platform{gpu_bm_linux} @platform{host}
|
||||
*
|
||||
* @details This function returns the list of supported power cap sensors for the given device,
|
||||
* including their sensor indices and types (e.g., PPT0, PPT1).
|
||||
*
|
||||
* @param[in] processor_handle A processor handle.
|
||||
* @param[out] sensor_count Pointer to a uint32_t that will be set to the number of supported sensors.
|
||||
* @param[out] sensor_inds Pointer to an array of uint32_t to be filled with sensor indices.
|
||||
* The array must be allocated by the caller with enough space.
|
||||
* @param[out] sensor_types Pointer to an array of amdsmi_power_cap_type_t to be filled with sensor types.
|
||||
* The array must be allocated by the caller with enough space.
|
||||
*
|
||||
* @return ::amdsmi_status_t | ::AMDSMI_STATUS_SUCCESS on success, non-zero on fail.
|
||||
*/
|
||||
amdsmi_status_t
|
||||
amdsmi_get_supported_power_cap(amdsmi_processor_handle processor_handle, uint32_t *sensor_count,
|
||||
uint32_t *sensor_inds, amdsmi_power_cap_type_t *sensor_types);
|
||||
|
||||
/**
|
||||
* @brief Get the socket power.
|
||||
*
|
||||
|
||||
@@ -45,7 +45,7 @@ extern "C" {
|
||||
|
||||
amdsmi_status_t smi_amdgpu_find_hwmon_dir(amd::smi::AMDSmiGPUDevice* device, std::string* full_path);
|
||||
amdsmi_status_t smi_amdgpu_get_board_info(amd::smi::AMDSmiGPUDevice* device, amdsmi_board_info_t *info);
|
||||
amdsmi_status_t smi_amdgpu_get_power_cap(amd::smi::AMDSmiGPUDevice* device, int *cap);
|
||||
amdsmi_status_t smi_amdgpu_get_power_cap(amd::smi::AMDSmiGPUDevice* device, uint32_t sensor_ind, int *cap);
|
||||
amdsmi_status_t smi_amdgpu_get_ranges(amd::smi::AMDSmiGPUDevice* device, amdsmi_clk_type_t domain, int *max_freq, int *min_freq, int *num_dpm, int *sleep_state_freq);
|
||||
amdsmi_status_t smi_amdgpu_get_enabled_blocks(amd::smi::AMDSmiGPUDevice* device, uint64_t *enabled_blocks);
|
||||
amdsmi_status_t smi_amdgpu_get_bad_page_info(amd::smi::AMDSmiGPUDevice* device, uint32_t *num_pages, amdsmi_retired_page_record_t *info);
|
||||
|
||||
Reference in New Issue
Block a user