Searched refs:gpu_metrics (Results 1 – 11 of 11) sorted by relevance
/drivers/gpu/drm/amd/pm/swsmu/smu12/ |
D | renoir_ppt.c | 1085 struct gpu_metrics_v2_0 *gpu_metrics = in renoir_get_gpu_metrics() local 1094 smu_v12_0_init_gpu_metrics_v2_0(gpu_metrics); in renoir_get_gpu_metrics() 1096 gpu_metrics->temperature_gfx = metrics.GfxTemperature; in renoir_get_gpu_metrics() 1097 gpu_metrics->temperature_soc = metrics.SocTemperature; in renoir_get_gpu_metrics() 1098 memcpy(&gpu_metrics->temperature_core[0], in renoir_get_gpu_metrics() 1101 gpu_metrics->temperature_l3[0] = metrics.L3Temperature[0]; in renoir_get_gpu_metrics() 1102 gpu_metrics->temperature_l3[1] = metrics.L3Temperature[1]; in renoir_get_gpu_metrics() 1104 gpu_metrics->average_gfx_activity = metrics.AverageGfxActivity; in renoir_get_gpu_metrics() 1105 gpu_metrics->average_mm_activity = metrics.AverageUvdActivity; in renoir_get_gpu_metrics() 1107 gpu_metrics->average_socket_power = metrics.CurrentSocketPower; in renoir_get_gpu_metrics() [all …]
|
D | smu_v12_0.c | 282 void smu_v12_0_init_gpu_metrics_v2_0(struct gpu_metrics_v2_0 *gpu_metrics) in smu_v12_0_init_gpu_metrics_v2_0() argument 284 memset(gpu_metrics, 0xFF, sizeof(struct gpu_metrics_v2_0)); in smu_v12_0_init_gpu_metrics_v2_0() 286 gpu_metrics->common_header.structure_size = in smu_v12_0_init_gpu_metrics_v2_0() 288 gpu_metrics->common_header.format_revision = 2; in smu_v12_0_init_gpu_metrics_v2_0() 289 gpu_metrics->common_header.content_revision = 0; in smu_v12_0_init_gpu_metrics_v2_0() 291 gpu_metrics->system_clock_counter = ktime_get_boottime_ns(); in smu_v12_0_init_gpu_metrics_v2_0()
|
/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | navi10_ppt.c | 2552 struct gpu_metrics_v1_0 *gpu_metrics = in navi10_get_gpu_metrics() local 2575 smu_v11_0_init_gpu_metrics_v1_0(gpu_metrics); in navi10_get_gpu_metrics() 2577 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in navi10_get_gpu_metrics() 2578 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in navi10_get_gpu_metrics() 2579 gpu_metrics->temperature_mem = metrics.TemperatureMem; in navi10_get_gpu_metrics() 2580 gpu_metrics->temperature_vrgfx = metrics.TemperatureVrGfx; in navi10_get_gpu_metrics() 2581 gpu_metrics->temperature_vrsoc = metrics.TemperatureVrSoc; in navi10_get_gpu_metrics() 2582 gpu_metrics->temperature_vrmem = metrics.TemperatureVrMem0; in navi10_get_gpu_metrics() 2584 gpu_metrics->average_gfx_activity = metrics.AverageGfxActivity; in navi10_get_gpu_metrics() 2585 gpu_metrics->average_umc_activity = metrics.AverageUclkActivity; in navi10_get_gpu_metrics() [all …]
|
D | arcturus_ppt.c | 2272 struct gpu_metrics_v1_0 *gpu_metrics = in arcturus_get_gpu_metrics() local 2283 smu_v11_0_init_gpu_metrics_v1_0(gpu_metrics); in arcturus_get_gpu_metrics() 2285 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in arcturus_get_gpu_metrics() 2286 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in arcturus_get_gpu_metrics() 2287 gpu_metrics->temperature_mem = metrics.TemperatureHBM; in arcturus_get_gpu_metrics() 2288 gpu_metrics->temperature_vrgfx = metrics.TemperatureVrGfx; in arcturus_get_gpu_metrics() 2289 gpu_metrics->temperature_vrsoc = metrics.TemperatureVrSoc; in arcturus_get_gpu_metrics() 2290 gpu_metrics->temperature_vrmem = metrics.TemperatureVrMem; in arcturus_get_gpu_metrics() 2292 gpu_metrics->average_gfx_activity = metrics.AverageGfxActivity; in arcturus_get_gpu_metrics() 2293 gpu_metrics->average_umc_activity = metrics.AverageUclkActivity; in arcturus_get_gpu_metrics() [all …]
|
D | sienna_cichlid_ppt.c | 2686 struct gpu_metrics_v1_0 *gpu_metrics = in sienna_cichlid_get_gpu_metrics() local 2697 smu_v11_0_init_gpu_metrics_v1_0(gpu_metrics); in sienna_cichlid_get_gpu_metrics() 2699 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in sienna_cichlid_get_gpu_metrics() 2700 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in sienna_cichlid_get_gpu_metrics() 2701 gpu_metrics->temperature_mem = metrics.TemperatureMem; in sienna_cichlid_get_gpu_metrics() 2702 gpu_metrics->temperature_vrgfx = metrics.TemperatureVrGfx; in sienna_cichlid_get_gpu_metrics() 2703 gpu_metrics->temperature_vrsoc = metrics.TemperatureVrSoc; in sienna_cichlid_get_gpu_metrics() 2704 gpu_metrics->temperature_vrmem = metrics.TemperatureVrMem0; in sienna_cichlid_get_gpu_metrics() 2706 gpu_metrics->average_gfx_activity = metrics.AverageGfxActivity; in sienna_cichlid_get_gpu_metrics() 2707 gpu_metrics->average_umc_activity = metrics.AverageUclkActivity; in sienna_cichlid_get_gpu_metrics() [all …]
|
D | smu_v11_0.c | 2006 void smu_v11_0_init_gpu_metrics_v1_0(struct gpu_metrics_v1_0 *gpu_metrics) in smu_v11_0_init_gpu_metrics_v1_0() argument 2008 memset(gpu_metrics, 0xFF, sizeof(struct gpu_metrics_v1_0)); in smu_v11_0_init_gpu_metrics_v1_0() 2010 gpu_metrics->common_header.structure_size = in smu_v11_0_init_gpu_metrics_v1_0() 2012 gpu_metrics->common_header.format_revision = 1; in smu_v11_0_init_gpu_metrics_v1_0() 2013 gpu_metrics->common_header.content_revision = 0; in smu_v11_0_init_gpu_metrics_v1_0() 2015 gpu_metrics->system_clock_counter = ktime_get_boottime_ns(); in smu_v11_0_init_gpu_metrics_v1_0()
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega12_hwmgr.c | 2829 static void vega12_init_gpu_metrics_v1_0(struct gpu_metrics_v1_0 *gpu_metrics) in vega12_init_gpu_metrics_v1_0() argument 2831 memset(gpu_metrics, 0xFF, sizeof(struct gpu_metrics_v1_0)); in vega12_init_gpu_metrics_v1_0() 2833 gpu_metrics->common_header.structure_size = in vega12_init_gpu_metrics_v1_0() 2835 gpu_metrics->common_header.format_revision = 1; in vega12_init_gpu_metrics_v1_0() 2836 gpu_metrics->common_header.content_revision = 0; in vega12_init_gpu_metrics_v1_0() 2838 gpu_metrics->system_clock_counter = ktime_get_boottime_ns(); in vega12_init_gpu_metrics_v1_0() 2846 struct gpu_metrics_v1_0 *gpu_metrics = in vega12_get_gpu_metrics() local 2856 vega12_init_gpu_metrics_v1_0(gpu_metrics); in vega12_get_gpu_metrics() 2858 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in vega12_get_gpu_metrics() 2859 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in vega12_get_gpu_metrics() [all …]
|
D | vega20_hwmgr.c | 4296 static void vega20_init_gpu_metrics_v1_0(struct gpu_metrics_v1_0 *gpu_metrics) in vega20_init_gpu_metrics_v1_0() argument 4298 memset(gpu_metrics, 0xFF, sizeof(struct gpu_metrics_v1_0)); in vega20_init_gpu_metrics_v1_0() 4300 gpu_metrics->common_header.structure_size = in vega20_init_gpu_metrics_v1_0() 4302 gpu_metrics->common_header.format_revision = 1; in vega20_init_gpu_metrics_v1_0() 4303 gpu_metrics->common_header.content_revision = 0; in vega20_init_gpu_metrics_v1_0() 4305 gpu_metrics->system_clock_counter = ktime_get_boottime_ns(); in vega20_init_gpu_metrics_v1_0() 4313 struct gpu_metrics_v1_0 *gpu_metrics = in vega20_get_gpu_metrics() local 4323 vega20_init_gpu_metrics_v1_0(gpu_metrics); in vega20_get_gpu_metrics() 4325 gpu_metrics->temperature_edge = metrics.TemperatureEdge; in vega20_get_gpu_metrics() 4326 gpu_metrics->temperature_hotspot = metrics.TemperatureHotspot; in vega20_get_gpu_metrics() [all …]
|
/drivers/gpu/drm/amd/pm/inc/ |
D | smu_v12_0.h | 63 void smu_v12_0_init_gpu_metrics_v2_0(struct gpu_metrics_v2_0 *gpu_metrics);
|
D | smu_v11_0.h | 278 void smu_v11_0_init_gpu_metrics_v1_0(struct gpu_metrics_v1_0 *gpu_metrics);
|
/drivers/gpu/drm/amd/pm/ |
D | amdgpu_pm.c | 1984 void *gpu_metrics; in amdgpu_get_gpu_metrics() local 1998 size = smu_sys_get_gpu_metrics(&adev->smu, &gpu_metrics); in amdgpu_get_gpu_metrics() 2000 size = amdgpu_dpm_get_gpu_metrics(adev, &gpu_metrics); in amdgpu_get_gpu_metrics() 2008 memcpy(buf, gpu_metrics, size); in amdgpu_get_gpu_metrics() 2040 AMDGPU_DEVICE_ATTR_RO(gpu_metrics, ATTR_FLAG_BASIC), 2090 } else if (DEVICE_ATTR_IS(gpu_metrics)) { in default_attr_update()
|