amdgpu: add max_memory_clock for interface query
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>main
parent
745081395e
commit
fc9fc7dd11
|
@ -478,6 +478,8 @@ struct amdgpu_gpu_info {
|
|||
uint64_t ids_flags;
|
||||
/** max engine clock*/
|
||||
uint64_t max_engine_clk;
|
||||
/** max memory clock */
|
||||
uint64_t max_memory_clk;
|
||||
/** number of shader engines */
|
||||
uint32_t num_shader_engines;
|
||||
/** number of shader arrays per engine */
|
||||
|
|
|
@ -149,6 +149,7 @@ int amdgpu_query_gpu_info_init(amdgpu_device_handle dev)
|
|||
dev->info.chip_external_rev = dev->dev_info.external_rev;
|
||||
dev->info.family_id = dev->dev_info.family;
|
||||
dev->info.max_engine_clk = dev->dev_info.max_engine_clock;
|
||||
dev->info.max_memory_clk = dev->dev_info.max_memory_clock;
|
||||
dev->info.gpu_counter_freq = dev->dev_info.gpu_counter_freq;
|
||||
dev->info.enabled_rb_pipes_mask = dev->dev_info.enabled_rb_pipes_mask;
|
||||
dev->info.rb_pipes = dev->dev_info.num_rb_pipes;
|
||||
|
|
|
@ -553,6 +553,7 @@ struct drm_amdgpu_info_device {
|
|||
uint32_t num_shader_arrays_per_engine;
|
||||
uint32_t gpu_counter_freq; /* in KHz */
|
||||
uint64_t max_engine_clock; /* in KHz */
|
||||
uint64_t max_memory_clock; /* in KHz */
|
||||
/* cu information */
|
||||
uint32_t cu_active_number;
|
||||
uint32_t cu_ao_mask;
|
||||
|
|
Loading…
Reference in New Issue