VF and FB partitioning queries#
VF and FB partitioning queries
Functions | |
amdsmi_status_t | amdsmi_get_num_vf (amdsmi_processor_handle processor_handle, uint32_t *num_vf_enabled, uint32_t *num_vf_supported) |
Returns the number of VFs enabled by gpuv in the ASIC. More... | |
amdsmi_status_t | amdsmi_set_num_vf (amdsmi_processor_handle processor_handle, uint32_t num_vf) |
Enable a given number of VF. More... | |
amdsmi_status_t | amdsmi_get_vf_partition_info (amdsmi_processor_handle processor_handle, unsigned int vf_buffer_num, amdsmi_partition_info_t *info) |
Returns the current framebuffer partitioning structure as currently configured by the driver. More... | |
Detailed Description
Function Documentation
◆ amdsmi_get_num_vf()
amdsmi_status_t amdsmi_get_num_vf | ( | amdsmi_processor_handle | processor_handle, |
uint32_t * | num_vf_enabled, | ||
uint32_t * | num_vf_supported | ||
) |
Returns the number of VFs enabled by gpuv in the ASIC.
- Parameters
-
[in] processor_handle PF of a processor for which to query [out] num_vf_enabled Reference to number of VF enabled. Must be allocated by user. [out] num_vf_supported Reference to number of VF supported. Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_set_num_vf()
amdsmi_status_t amdsmi_set_num_vf | ( | amdsmi_processor_handle | processor_handle, |
uint32_t | num_vf | ||
) |
Enable a given number of VF.
- Parameters
-
[in] processor_handle PF of a processor for which to query [in] num_vf - Number of VFs to enable.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail
◆ amdsmi_get_vf_partition_info()
amdsmi_status_t amdsmi_get_vf_partition_info | ( | amdsmi_processor_handle | processor_handle, |
unsigned int | vf_buffer_num, | ||
amdsmi_partition_info_t * | info | ||
) |
Returns the current framebuffer partitioning structure as currently configured by the driver.
- Parameters
-
[in] processor_handle PF of a processor for which to query [in] vf_buffer_num Size of the buffer where the library will copy the data in units of VF [out] info Reference to structure with the current partitioning information. Must be allocated by user.
- Returns
- amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail