SWDEV-436533 - Cache Info Struct Update

Signed-off-by: Maisam Arif <maisarif@amd.com>
Change-Id: Ic640fa657cdcc32d7b00ff78fc9452ec7e05dd07
This commit is contained in:
Maisam Arif
2024-02-05 10:33:47 -06:00
committed by Maisam Arif
parent 9683fc26ca
commit 88192d8b6b
7 changed files with 89 additions and 73 deletions
+9 -9
View File
@@ -538,22 +538,22 @@ typedef struct {
} amdsmi_vbios_info_t;
/**
* @brief cache flags
* @brief cache properties
*/
typedef enum {
CACHE_FLAGS_ENABLED = 0x00000001,
CACHE_FLAGS_DATA_CACHE = 0x00000002,
CACHE_FLAGS_INST_CACHE = 0x00000004,
CACHE_FLAGS_CPU_CACHE = 0x00000008,
CACHE_FLAGS_SIMD_CACHE = 0x00000010,
} amdsmi_cache_flags_type_t;
CACHE_PROPERTIES_ENABLED = 0x00000001,
CACHE_PROPERTIES_DATA_CACHE = 0x00000002,
CACHE_PROPERTIES_INST_CACHE = 0x00000004,
CACHE_PROPERTIES_CPU_CACHE = 0x00000008,
CACHE_PROPERTIES_SIMD_CACHE = 0x00000010,
} amdsmi_cache_properties_type_t;
typedef struct {
uint32_t num_cache_types;
struct cache_ {
uint32_t cache_size_kb; /* In KB */
uint32_t cache_size; /* In KB */
uint32_t cache_level;
uint32_t flags; // amdsmi_cache_flags_type_t which is a bitmask
uint32_t properties; // amdsmi_cache_properties_type_t which is a bitmask
uint32_t max_num_cu_shared; /* Indicates how many Compute Units share this cache instance */
uint32_t num_cache_instance; /* total number of instance of this cache type */
uint32_t reserved[3];