SWDEV-463399: amdsmi_get_gpu_vram_info() adds bit-width

Driver info `amdgpu_gpu_info.vram_bit_width` is exposed through amdsmi_get_gpu_vram_info().

Code changes related to the following:
  * API
  * CLI
  * Unit tests
  * Examples

Change-Id: I8abd8db7a603078b2b1c008b2685cecf35caf3d2
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com>
Tento commit je obsažen v:
Oliveira, Daniel
2024-08-05 17:15:42 -05:00
odevzdal Maisam Arif
rodič af3670d758
revize 893f13ab98
7 změnil soubory, kde provedl 36 přidání a 5 odebrání
+3 -1
Zobrazit soubor
@@ -953,7 +953,9 @@ struct_amdsmi_vram_info_t._fields_ = [
('vram_type', amdsmi_vram_type_t),
('vram_vendor', amdsmi_vram_vendor_type_t),
('vram_size', ctypes.c_uint64),
('reserved', ctypes.c_uint64 * 6),
('vram_bit_width', ctypes.c_uint32),
('PADDING_0', ctypes.c_ubyte * 4),
('reserved', ctypes.c_uint64 * 5),
]
amdsmi_vram_info_t = struct_amdsmi_vram_info_t