[SWDEV-534438] Update structure amdsmi_bdf_t (#388)

Signed-off-by: josnarlo <Joseph.Narlo@amd.com>
Signed-off-by: Narlo, Joseph <Joseph.Narlo@amd.com>

[ROCm/amdsmi commit: 7b3c85e970]
Этот коммит содержится в:
Narlo, Joseph
2025-05-28 18:05:43 -05:00
коммит произвёл GitHub
родитель cd71942678
Коммит 268c4e59ed
3 изменённых файлов: 30 добавлений и 12 удалений
+2
Просмотреть файл
@@ -12,6 +12,8 @@ Full documentation for amd_smi_lib is available at [https://rocm.docs.amd.com/pr
### Changed
- **Updated `amdsmi_bdf_t` in `amdsmi.h`.**
- The `amdsmi_bdf_t` union was changed to have an identical unnamed struct for backwards compatiblity
- **The `amdsmi_get_gpu_vram_info` command gets the vendor name from the driver instead of using an emun to identify vendor.**
- `amdsmi_vram_info_t` member named `amdsmi_vram_vendor_type_t` was changed to a character string
- `amdsmi_vram_vendor_type_t` enum structure was removed
+6
Просмотреть файл
@@ -663,6 +663,12 @@ typedef struct {
* @cond @tag{gpu_bm_linux} @tag{host} @endcond
*/
typedef union {
struct bdf_ {
uint64_t function_number : 3;
uint64_t device_number : 5;
uint64_t bus_number : 8;
uint64_t domain_number : 48;
} bdf;
struct {
uint64_t function_number : 3;
uint64_t device_number : 5;
+22 -12
Просмотреть файл
@@ -785,6 +785,17 @@ amdsmi_frequency_range_t = struct_amdsmi_frequency_range_t
class union_amdsmi_bdf_t(Union):
pass
class struct_bdf_(Structure):
pass
struct_bdf_._pack_ = 1 # source:False
struct_bdf_._fields_ = [
('function_number', ctypes.c_uint64, 3),
('device_number', ctypes.c_uint64, 5),
('bus_number', ctypes.c_uint64, 8),
('domain_number', ctypes.c_uint64, 48),
]
class struct_amdsmi_bdf_t(Structure):
pass
@@ -799,6 +810,7 @@ struct_amdsmi_bdf_t._fields_ = [
union_amdsmi_bdf_t._pack_ = 1 # source:False
union_amdsmi_bdf_t._fields_ = [
('bdf', struct_bdf_),
('struct_amdsmi_bdf_t', struct_amdsmi_bdf_t),
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LC_RESTORE_LIST_SRM_MEM',
@@ -3199,8 +3210,7 @@ __all__ = \
'amdsmi_free_name_value_pairs', 'amdsmi_freq_ind_t',
'amdsmi_freq_volt_region_t', 'amdsmi_frequencies_t',
'amdsmi_frequency_range_t', 'amdsmi_fw_block_t',
'amdsmi_fw_info_t', 'amdsmi_get_afids_from_cper',
'amdsmi_get_cpu_affinity_with_scope',
'amdsmi_fw_info_t', 'amdsmi_get_afids_from_cper',
'amdsmi_get_clk_freq', 'amdsmi_get_clock_info',
'amdsmi_get_cpu_affinity_with_scope', 'amdsmi_get_cpu_cclk_limit',
'amdsmi_get_cpu_core_boostlimit',
@@ -3391,8 +3401,8 @@ __all__ = \
'struct_amdsmi_vbios_info_t', 'struct_amdsmi_version_t',
'struct_amdsmi_violation_status_t', 'struct_amdsmi_vram_info_t',
'struct_amdsmi_vram_usage_t', 'struct_amdsmi_xgmi_info_t',
'struct_amdsmi_xgmi_link_status_t', 'struct_cache_',
'struct_engine_usage_', 'struct_fw_info_list_',
'struct_amdsmi_xgmi_link_status_t', 'struct_bdf_',
'struct_cache_', 'struct_engine_usage_', 'struct_fw_info_list_',
'struct_memory_usage_', 'struct_nps_flags_', 'struct_numa_range_',
'struct_pcie_metric_', 'struct_pcie_static_',
'struct_amdsmi_bdf_t', 'struct_valid_bits_', 'uint32_t',